Skip to content

Commit

Permalink
feat: workspace dir async watch
Browse files Browse the repository at this point in the history
  • Loading branch information
life2015 committed Oct 24, 2022
1 parent e40bd83 commit 3c46147
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/workspace/src/browser/workspace-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ export class WorkspaceService implements IWorkspaceService {
this._workspace = workspaceStat;
if (this._workspace) {
const uri = new URI(this._workspace.uri);
this.toDisposeOnWorkspace.push(await this.fileServiceClient.watchFileChanges(uri));
this.fileServiceClient.watchFileChanges(uri).then((watcher) => {
this.toDisposeOnWorkspace.push(watcher);
});
}
this.updateTitle();
await this.updateWorkspace();
Expand Down

0 comments on commit 3c46147

Please sign in to comment.