more adoption of IWorkspace2

This commit is contained in:
Benjamin Pasero
2017-06-19 10:49:29 +02:00
parent 77bf512f0e
commit f2e1911761
33 changed files with 213 additions and 224 deletions

View File

@@ -49,13 +49,13 @@ export class MainThreadWorkspace extends MainThreadWorkspaceShape {
// --- search ---
$startSearch(include: string, exclude: string, maxResults: number, requestId: number): Thenable<URI[]> {
const workspace = this._contextService.getWorkspace();
const workspace = this._contextService.getWorkspace2();
if (!workspace) {
return undefined;
}
const search = this._searchService.search({
folderResources: [workspace.resource],
folderResources: workspace.roots,
type: QueryType.File,
maxResults,
includePattern: { [include]: true },