interface WorkspaceMain { $findTextInFiles(query,
options,
searchRequestId,
token?): Promise<TextSearchComplete>; $getCanonicalUri(uri,
targetScheme,
token): Promise<undefined | string>; $getWorkspace(): Promise<undefined | FileStat>; $onTextDocumentContentChange(uri,
content): void; $pickWorkspaceFolder(options): Promise<undefined | WorkspaceFolder>; $registerCanonicalUriProvider(scheme): Promise<undefined | void>; $registerTextDocumentContentProvider(scheme): Promise<void>; $requestWorkspaceTrust(options?): Promise<undefined | boolean>; $resolveProxy(url): Promise<undefined | string>; $startFileSearch(includePattern,
includeFolder,
excludePatternOrDisregardExcludes,
maxResults,
token): PromiseLike<UriComponents[]>; $unregisterCanonicalUriProvider(scheme): void; $unregisterTextDocumentContentProvider(scheme): void; $updateWorkspaceFolders(start,
deleteCount?,
...rootsToAdd): Promise<void>; } Methods
$findTextInFiles
- $findTextInFiles(query, options, searchRequestId, token?): Promise<TextSearchComplete>
Returns Promise<TextSearchComplete>
$getCanonicalUri
- $getCanonicalUri(uri, targetScheme, token): Promise<undefined | string>
Returns Promise<undefined | string>
$getWorkspace
- $getWorkspace(): Promise<undefined | FileStat>
Returns Promise<undefined | FileStat>
$onTextDocumentContentChange
- $onTextDocumentContentChange(uri, content): void
Parameters
- uri: string
- content: string
Returns void
$registerCanonicalUriProvider
- $registerCanonicalUriProvider(scheme): Promise<undefined | void>
Returns Promise<undefined | void>
$registerTextDocumentContentProvider
- $registerTextDocumentContentProvider(scheme): Promise<void>
Returns Promise<void>
$requestWorkspaceTrust
- $requestWorkspaceTrust(options?): Promise<undefined | boolean>
Returns Promise<undefined | boolean>
$resolveProxy
- $resolveProxy(url): Promise<undefined | string>
Returns Promise<undefined | string>
$startFileSearch
- $startFileSearch(includePattern, includeFolder, excludePatternOrDisregardExcludes, maxResults, token): PromiseLike<UriComponents[]>
Parameters
- includePattern: string
- includeFolder: undefined | string
- excludePatternOrDisregardExcludes: string | false
- maxResults: undefined | number
- token: CancellationToken
Returns PromiseLike<UriComponents[]>
$unregisterCanonicalUriProvider
- $unregisterCanonicalUriProvider(scheme): void
Returns void
$unregisterTextDocumentContentProvider
- $unregisterTextDocumentContentProvider(scheme): void
Returns void
$updateWorkspaceFolders
- $updateWorkspaceFolders(start, deleteCount?, ...rootsToAdd): Promise<void>
Parameters
- start: number
Optional
deleteCount: numberRest
...rootsToAdd: string[]
Returns Promise<void>