mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
more adoption of IWorkspace2
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user