chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -34,7 +34,7 @@ export interface AutoSaveResourceOptions {
uri: URI;
}
/**
* 资源文件自动保存服务,目前只适用于文本文件
* Resource file auto-save service, currently only available for text files
*/
@injectable()
export abstract class AutoSaveResource<
@@ -155,7 +155,7 @@ export abstract class AutoSaveResource<
return;
}
await this.readContent(false);
// TODO sync 逻辑需要刷新 widget 数据
// TODO sync logic needs to refresh widget data
// if (token.isCancellationRequested || this._dirty) {
// return;
// }
@@ -163,7 +163,7 @@ export abstract class AutoSaveResource<
}
/**
* 自动保存
* auto save
*/
protected doAutoSave(): void {
if (this.autoSave === 'on') {
@@ -323,7 +323,7 @@ export abstract class AutoSaveResource<
}
saveContent(content: CHANGE_SET, patch = false): void {
// 若支持增量改动 (仅一层)
// If incremental changes are supported (only one layer)
let newContent = content;
const preSaveContent =
this.contentChanges[this.contentChanges.length - 1] ?? this.lastContent;
@@ -344,7 +344,7 @@ export abstract class AutoSaveResource<
}
/**
* 获取正在保存中的内容
* Get the content being saved
*/
getPreSaveContent(): CHANGE_SET | undefined {
return (

View File

@@ -23,8 +23,8 @@ import {
import { type URI, type URIHandler } from '../common';
export interface ResourceInfo {
displayName?: string; // 显示标题
lastModification?: number | string; // 最后修改时间
displayName?: string; // Show title
lastModification?: number | string; // Last modification time
version?: number | string;
}
export interface Resource<T = any, INFO extends ResourceInfo = ResourceInfo>
@@ -62,7 +62,7 @@ export const ResourceHandler = Symbol('ResourceHandler');
export interface ResourceHandler<T extends Resource = Resource>
extends URIHandler {
/**
* 创建资源
* Create a resource
* @param uri
*/
resolve: (uri: URI) => T;