提交 04a1b72c 编写于 作者: R Rob Lourens

Fix #29538 - update search viewlet with excludes from first open root folder

上级 bf2bee95
......@@ -150,12 +150,9 @@ export class SearchViewlet extends Viewlet {
}
private onConfigurationUpdated(): void {
// TODO
// const workspace = this.contextService.getWorkspace2();
// workspace.roots.forEach(root => {
// const config = this.configurationService.getConfiguration(undefined, { resource: root });
// })
// this.updateGlobalPatternExclusions(configuration);
const resource = this.contextService.hasWorkspace() ? this.contextService.getWorkspace2().roots[0] : undefined;
const config = this.configurationService.getConfiguration<ISearchConfiguration>(undefined, { resource });
this.updateGlobalPatternExclusions(config);
}
public create(parent: Builder): TPromise<void> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册