Skip to content

Commit

Permalink
整理代码
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Jul 10, 2024
1 parent 348be00 commit 5101835
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/editorTable/editorTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class EditorObject<N extends Table.NameCN> {
return this._data;
}

public get(key: string): any {
private get(key: string): any {
let fieldInfo = this.getFieldInfo(key);
if (!fieldInfo) {
return undefined;
Expand Down Expand Up @@ -192,7 +192,7 @@ export class EditorObject<N extends Table.NameCN> {
}
}

public set(key: string, value: ItemShape): boolean {
private set(key: string, value: ItemShape): boolean {
let fieldInfo = this.getFieldInfo(key);
if (!fieldInfo) {
throw new Error(`未知字段:'${key}'`);
Expand Down
2 changes: 1 addition & 1 deletion src/editorTable/treeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class TreeView extends vscode.Disposable {
if (!value || value === fileNode.object.name) {
return;
}
fileNode.object.set('name', value);
fileNode.object.data.name = value;
});

// 复制对象
Expand Down

0 comments on commit 5101835

Please sign in to comment.