Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • WorkspaceExtImpl

Implements

Index

Constructors

Properties

_trusted?: boolean = undefined
didGrantWorkspaceTrustEmitter: Emitter<void> = ...
documentContentProviders: Map<string, TextDocumentContentProvider> = ...
folders: undefined | WorkspaceFolder[]
onDidChangeWorkspaceFolders: Event<WorkspaceFoldersChangeEvent> = ...
onDidGrantWorkspaceTrust: Event<void> = ...
searchInWorkspaceEmitter: Emitter<{ result?: TextSearchResult; searchId: number }> = ...
workspaceFileUri: undefined | Uri
workspaceFoldersChangedEmitter: Emitter<WorkspaceFoldersChangeEvent> = ...
workspaceSearchSequence: number = 0

Accessors

  • get name(): undefined | string
  • get rootPath(): undefined | string
  • get trusted(): boolean
  • get workspaceFile(): undefined | Uri
  • get workspaceFolders(): undefined | WorkspaceFolder[]

Methods

  • $onWorkspaceLocationChanged(stat: undefined | FileStat): void
  • $onWorkspaceTrustChanged(trust: undefined | boolean): void
  • $provideTextDocumentContent(documentURI: string): Promise<undefined | null | string>
  • $registerEditSessionIdentityProvider(scheme: string, provider: EditSessionIdentityProvider): Disposable
  • deltaFolders(currentFolders?: WorkspaceFolder[], newFolders?: WorkspaceFolder[]): { added: WorkspaceFolder[]; removed: WorkspaceFolder[] }
  • Parameters

    • currentFolders: WorkspaceFolder[] = []
    • newFolders: WorkspaceFolder[] = []

    Returns { added: WorkspaceFolder[]; removed: WorkspaceFolder[] }

    • added: WorkspaceFolder[]
    • removed: WorkspaceFolder[]
  • findFiles(include: GlobPattern, exclude?: null | GlobPattern, maxResults?: number, token?: CancellationToken): PromiseLike<URI[]>
  • findTextInFiles(query: TextSearchQuery, optionsOrCallback: FindTextInFilesOptions | ((result: TextSearchResult) => void), callbackOrToken?: CancellationToken | ((result: TextSearchResult) => void), token?: CancellationToken): Promise<TextSearchComplete>
  • Parameters

    • query: TextSearchQuery
    • optionsOrCallback: FindTextInFilesOptions | ((result: TextSearchResult) => void)
    • Optional callbackOrToken: CancellationToken | ((result: TextSearchResult) => void)
    • Optional token: CancellationToken

    Returns Promise<TextSearchComplete>

  • foldersDiff(folder1?: WorkspaceFolder[], folder2?: WorkspaceFolder[]): WorkspaceFolder[]
  • getRelativePath(pathOrUri: string | Uri, includeWorkspace?: boolean): undefined | string
  • getWorkspaceFolder(uri: Uri, resolveParent?: boolean): undefined | WorkspaceFolder
  • hasFolder(uri: URI): boolean
  • pickWorkspaceFolder(options?: WorkspaceFolderPickOptions): PromiseLike<undefined | WorkspaceFolder>
  • refreshWorkspaceFile(): Promise<void>
  • registerTextDocumentContentProvider(scheme: string, provider: TextDocumentContentProvider): Disposable
  • requestWorkspaceTrust(options?: WorkspaceTrustRequestOptions): Promise<undefined | boolean>
  • resolveProxy(url: string): Promise<undefined | string>
  • toWorkspaceFolder(root: string, index: number): WorkspaceFolder
  • updateWorkSpace(workspace: undefined | FileStat): void
  • updateWorkspaceFolders(start: number, deleteCount: number, ...workspaceFoldersToAdd: { name?: string; uri: Uri }[]): boolean