Skip to content

Commit

Permalink
改个名
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Mar 28, 2024
1 parent 093c541 commit a74c998
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ function rePrepare(method: Function, context: ClassMethodDecoratorContext) {
}

class EnvPath {
private reloadEmitter = new vscode.EventEmitter<void>();
public onDidReload = this.reloadEmitter.event;
private envChangeEmitter = new vscode.EventEmitter<void>();
public onDidChange = this.envChangeEmitter.event;

private async searchEditorUriByReg(): Promise<vscode.Uri | undefined> {
let platform = os.platform();
Expand Down Expand Up @@ -265,7 +265,7 @@ class EnvPath {
}
this._timer = setTimeout(() => {
this._timer = undefined;
this.reloadEmitter.fire();
this.envChangeEmitter.fire();
}, 100);
}

Expand Down
2 changes: 1 addition & 1 deletion src/mainMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class MainMenu {
this.refresh();
}
});
env.onDidReload(() => {
env.onDidChange(() => {
this.refresh();
});
}
Expand Down

0 comments on commit a74c998

Please sign in to comment.