A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://code.visualstudio.com/api/references/vscode-api below:

VS Code API | Visual Studio Code Extension API

VS Code API

VS Code API is a set of JavaScript APIs that you can invoke in your Visual Studio Code extension. This page lists all VS Code APIs available to extension authors.

API namespaces and classes

This listing is compiled from the vscode.d.ts file from the VS Code repository.

authentication Events

onDidChangeSessions: Event<AuthenticationSessionsChangeEvent>

Functions

getAccounts(providerId: string): Thenable<readonly AuthenticationSessionAccountInformation[]>

getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & {createIfNone: true | AuthenticationGetSessionPresentationOptions}): Thenable<AuthenticationSession>

getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & {forceNewSession: true | AuthenticationGetSessionPresentationOptions}): Thenable<AuthenticationSession>

getSession(providerId: string, scopes: readonly string[], options?: AuthenticationGetSessionOptions): Thenable<AuthenticationSession | undefined>

registerAuthenticationProvider(id: string, label: string, provider: AuthenticationProvider, options?: AuthenticationProviderOptions): Disposable

chat Functions

createChatParticipant(id: string, handler: ChatRequestHandler): ChatParticipant

commands Functions

executeCommand<T>(command: string, ...rest: any[]): Thenable<T>

Parameter Description command: string ...rest: any[] Returns Description Thenable<T>

getCommands(filterInternal?: boolean): Thenable<string[]>

Parameter Description filterInternal?: boolean Returns Description Thenable<string[]>

registerCommand(command: string, callback: (args: any[]) => any, thisArg?: any): Disposable

Parameter Description command: string callback: (args: any[]) => any thisArg?: any Returns Description Disposable

registerTextEditorCommand(command: string, callback: (textEditor: TextEditor, edit: TextEditorEdit, args: any[]) => void, thisArg?: any): Disposable

Functions

createCommentController(id: string, label: string): CommentController

debug Variables

activeDebugConsole: DebugConsole

activeDebugSession: DebugSession | undefined

activeStackItem: DebugThread | DebugStackFrame | undefined

breakpoints: readonly Breakpoint[]

Events

onDidChangeActiveDebugSession: Event<DebugSession | undefined>

onDidChangeActiveStackItem: Event<DebugThread | DebugStackFrame | undefined>

onDidChangeBreakpoints: Event<BreakpointsChangeEvent>

onDidReceiveDebugSessionCustomEvent: Event<DebugSessionCustomEvent>

onDidStartDebugSession: Event<DebugSession>

onDidTerminateDebugSession: Event<DebugSession>

Functions

addBreakpoints(breakpoints: readonly Breakpoint[]): void

Parameter Description breakpoints: readonly Breakpoint[] Returns Description void

asDebugSourceUri(source: DebugProtocolSource, session?: DebugSession): Uri

registerDebugAdapterDescriptorFactory(debugType: string, factory: DebugAdapterDescriptorFactory): Disposable

registerDebugAdapterTrackerFactory(debugType: string, factory: DebugAdapterTrackerFactory): Disposable

registerDebugConfigurationProvider(debugType: string, provider: DebugConfigurationProvider, triggerKind?: DebugConfigurationProviderTriggerKind): Disposable

removeBreakpoints(breakpoints: readonly Breakpoint[]): void

Parameter Description breakpoints: readonly Breakpoint[] Returns Description void

startDebugging(folder: WorkspaceFolder, nameOrConfiguration: string | DebugConfiguration, parentSessionOrOptions?: DebugSession | DebugSessionOptions): Thenable<boolean>

stopDebugging(session?: DebugSession): Thenable<void>

Parameter Description session?: DebugSession Returns Description Thenable<void> env Variables

appHost: string

appName: string

appRoot: string

clipboard: Clipboard

isNewAppInstall: boolean

isTelemetryEnabled: boolean

language: string

logLevel: LogLevel

machineId: string

remoteName: string | undefined

sessionId: string

shell: string

uiKind: UIKind

uriScheme: string

Events

onDidChangeLogLevel: Event<LogLevel>

onDidChangeShell: Event<string>

onDidChangeTelemetryEnabled: Event<boolean>

Functions

asExternalUri(target: Uri): Thenable<Uri>

Parameter Description target: Uri Returns Description Thenable<Uri>

createTelemetryLogger(sender: TelemetrySender, options?: TelemetryLoggerOptions): TelemetryLogger

openExternal(target: Uri): Thenable<boolean>

Parameter Description target: Uri Returns Description Thenable<boolean> extensions Variables

all: readonly Extension<any>[]

Events

onDidChange: Event<void>

Functions

getExtension<T>(extensionId: string): Extension<T> | undefined

Parameter Description extensionId: string Returns Description Extension<T> | undefined l10n Variables

bundle: | undefined

uri: Uri | undefined

Functions

t(message: string, ...args: Array<string | number | boolean>): string

Parameter Description message: string ...args: Array<string | number | boolean> Returns Description string

t(message: string, args: Record<string, any>): string

Parameter Description message: string args: Record<string, any> Returns Description string

t(options: {args: Array<string | number | boolean> | Record<string, any>, comment: string | string[], message: string}): string

Parameter Description options: {args: Array<string | number | boolean> | Record<string, any>, comment: string | string[], message: string} Returns Description string languages Events

onDidChangeDiagnostics: Event<DiagnosticChangeEvent>

Functions

createDiagnosticCollection(name?: string): DiagnosticCollection

createLanguageStatusItem(id: string, selector: DocumentSelector): LanguageStatusItem

getDiagnostics(resource: Uri): Diagnostic[]

Parameter Description resource: Uri Returns Description Diagnostic[]

getDiagnostics(): Array<[Uri, Diagnostic[]]>

Parameter Description Returns Description Array<[Uri, Diagnostic[]]>

getLanguages(): Thenable<string[]>

Parameter Description Returns Description Thenable<string[]>

match(selector: DocumentSelector, document: TextDocument): number

registerCallHierarchyProvider(selector: DocumentSelector, provider: CallHierarchyProvider): Disposable

registerCodeActionsProvider(selector: DocumentSelector, provider: CodeActionProvider<CodeAction>, metadata?: CodeActionProviderMetadata): Disposable

registerCodeLensProvider(selector: DocumentSelector, provider: CodeLensProvider<CodeLens>): Disposable

registerColorProvider(selector: DocumentSelector, provider: DocumentColorProvider): Disposable

registerCompletionItemProvider(selector: DocumentSelector, provider: CompletionItemProvider<CompletionItem>, ...triggerCharacters: string[]): Disposable

registerDeclarationProvider(selector: DocumentSelector, provider: DeclarationProvider): Disposable

registerDefinitionProvider(selector: DocumentSelector, provider: DefinitionProvider): Disposable

registerDocumentDropEditProvider(selector: DocumentSelector, provider: DocumentDropEditProvider<DocumentDropEdit>, metadata?: DocumentDropEditProviderMetadata): Disposable

registerDocumentFormattingEditProvider(selector: DocumentSelector, provider: DocumentFormattingEditProvider): Disposable

registerDocumentHighlightProvider(selector: DocumentSelector, provider: DocumentHighlightProvider): Disposable

registerDocumentLinkProvider(selector: DocumentSelector, provider: DocumentLinkProvider<DocumentLink>): Disposable

registerDocumentPasteEditProvider(selector: DocumentSelector, provider: DocumentPasteEditProvider<DocumentPasteEdit>, metadata: DocumentPasteProviderMetadata): Disposable

registerDocumentRangeFormattingEditProvider(selector: DocumentSelector, provider: DocumentRangeFormattingEditProvider): Disposable

registerDocumentRangeSemanticTokensProvider(selector: DocumentSelector, provider: DocumentRangeSemanticTokensProvider, legend: SemanticTokensLegend): Disposable

registerDocumentSemanticTokensProvider(selector: DocumentSelector, provider: DocumentSemanticTokensProvider, legend: SemanticTokensLegend): Disposable

registerDocumentSymbolProvider(selector: DocumentSelector, provider: DocumentSymbolProvider, metaData?: DocumentSymbolProviderMetadata): Disposable

registerEvaluatableExpressionProvider(selector: DocumentSelector, provider: EvaluatableExpressionProvider): Disposable

registerFoldingRangeProvider(selector: DocumentSelector, provider: FoldingRangeProvider): Disposable

registerHoverProvider(selector: DocumentSelector, provider: HoverProvider): Disposable

registerImplementationProvider(selector: DocumentSelector, provider: ImplementationProvider): Disposable

registerInlayHintsProvider(selector: DocumentSelector, provider: InlayHintsProvider<InlayHint>): Disposable

registerInlineCompletionItemProvider(selector: DocumentSelector, provider: InlineCompletionItemProvider): Disposable

registerInlineValuesProvider(selector: DocumentSelector, provider: InlineValuesProvider): Disposable

registerLinkedEditingRangeProvider(selector: DocumentSelector, provider: LinkedEditingRangeProvider): Disposable

registerOnTypeFormattingEditProvider(selector: DocumentSelector, provider: OnTypeFormattingEditProvider, firstTriggerCharacter: string, ...moreTriggerCharacter: string[]): Disposable

registerReferenceProvider(selector: DocumentSelector, provider: ReferenceProvider): Disposable

registerRenameProvider(selector: DocumentSelector, provider: RenameProvider): Disposable

registerSelectionRangeProvider(selector: DocumentSelector, provider: SelectionRangeProvider): Disposable

registerSignatureHelpProvider(selector: DocumentSelector, provider: SignatureHelpProvider, ...triggerCharacters: string[]): Disposable

registerSignatureHelpProvider(selector: DocumentSelector, provider: SignatureHelpProvider, metadata: SignatureHelpProviderMetadata): Disposable

registerTypeDefinitionProvider(selector: DocumentSelector, provider: TypeDefinitionProvider): Disposable

registerTypeHierarchyProvider(selector: DocumentSelector, provider: TypeHierarchyProvider): Disposable

registerWorkspaceSymbolProvider(provider: WorkspaceSymbolProvider<SymbolInformation>): Disposable

setLanguageConfiguration(language: string, configuration: LanguageConfiguration): Disposable

setTextDocumentLanguage(document: TextDocument, languageId: string): Thenable<TextDocument>

lm Variables

tools: readonly LanguageModelToolInformation[]

Events

onDidChangeChatModels: Event<void>

Functions

invokeTool(name: string, options: LanguageModelToolInvocationOptions<object>, token?: CancellationToken): Thenable<LanguageModelToolResult>

registerMcpServerDefinitionProvider(id: string, provider: McpServerDefinitionProvider<McpServerDefinition>): Disposable

registerTool<T>(name: string, tool: LanguageModelTool<T>): Disposable

selectChatModels(selector?: LanguageModelChatSelector): Thenable<LanguageModelChat[]>

notebooks Functions

createNotebookController(id: string, notebookType: string, label: string, handler?: (cells: NotebookCell[], notebook: NotebookDocument, controller: NotebookController) => void | Thenable<void>): NotebookController

createRendererMessaging(rendererId: string): NotebookRendererMessaging

registerNotebookCellStatusBarItemProvider(notebookType: string, provider: NotebookCellStatusBarItemProvider): Disposable

scm Variables

inputBox: SourceControlInputBox

Functions

createSourceControl(id: string, label: string, rootUri?: Uri): SourceControl

Parameter Description id: string label: string rootUri?: Uri Returns Description SourceControl tasks Variables

taskExecutions: readonly TaskExecution[]

Events

onDidEndTask: Event<TaskEndEvent>

onDidEndTaskProcess: Event<TaskProcessEndEvent>

onDidStartTask: Event<TaskStartEvent>

onDidStartTaskProcess: Event<TaskProcessStartEvent>

Functions

executeTask(task: Task): Thenable<TaskExecution>

fetchTasks(filter?: TaskFilter): Thenable<Task[]>

Parameter Description filter?: TaskFilter Returns Description Thenable<Task[]>

registerTaskProvider(type: string, provider: TaskProvider<Task>): Disposable

tests Functions

createTestController(id: string, label: string): TestController

Parameter Description id: string label: string Returns Description TestController window Variables

activeColorTheme: ColorTheme

activeNotebookEditor: NotebookEditor | undefined

activeTerminal: Terminal | undefined

activeTextEditor: TextEditor | undefined

state: WindowState

tabGroups: TabGroups

terminals: readonly Terminal[]

visibleNotebookEditors: readonly NotebookEditor[]

visibleTextEditors: readonly TextEditor[]

Events

onDidChangeActiveColorTheme: Event<ColorTheme>

onDidChangeActiveNotebookEditor: Event<NotebookEditor | undefined>

onDidChangeActiveTerminal: Event<Terminal | undefined>

onDidChangeActiveTextEditor: Event<TextEditor | undefined>

onDidChangeNotebookEditorSelection: Event<NotebookEditorSelectionChangeEvent>

onDidChangeNotebookEditorVisibleRanges: Event<NotebookEditorVisibleRangesChangeEvent>

onDidChangeTerminalShellIntegration: Event<TerminalShellIntegrationChangeEvent>

onDidChangeTerminalState: Event<Terminal>

onDidChangeTextEditorOptions: Event<TextEditorOptionsChangeEvent>

onDidChangeTextEditorSelection: Event<TextEditorSelectionChangeEvent>

onDidChangeTextEditorViewColumn: Event<TextEditorViewColumnChangeEvent>

onDidChangeTextEditorVisibleRanges: Event<TextEditorVisibleRangesChangeEvent>

onDidChangeVisibleNotebookEditors: Event<readonly NotebookEditor[]>

onDidChangeVisibleTextEditors: Event<readonly TextEditor[]>

onDidChangeWindowState: Event<WindowState>

onDidCloseTerminal: Event<Terminal>

onDidEndTerminalShellExecution: Event<TerminalShellExecutionEndEvent>

onDidOpenTerminal: Event<Terminal>

onDidStartTerminalShellExecution: Event<TerminalShellExecutionStartEvent>

Functions

createInputBox(): InputBox

Parameter Description Returns Description InputBox

createOutputChannel(name: string, languageId?: string): OutputChannel

Parameter Description name: string languageId?: string Returns Description OutputChannel

createOutputChannel(name: string, options: {log: true}): LogOutputChannel

Parameter Description name: string options: {log: true} Returns Description LogOutputChannel

createQuickPick<T extends QuickPickItem>(): QuickPick<T>

Parameter Description Returns Description QuickPick<T>

createStatusBarItem(id: string, alignment?: StatusBarAlignment, priority?: number): StatusBarItem

createStatusBarItem(alignment?: StatusBarAlignment, priority?: number): StatusBarItem

createTerminal(name?: string, shellPath?: string, shellArgs?: string | readonly string[]): Terminal

Parameter Description name?: string shellPath?: string shellArgs?: string | readonly string[] Returns Description Terminal

createTerminal(options: TerminalOptions): Terminal

createTerminal(options: ExtensionTerminalOptions): Terminal

createTextEditorDecorationType(options: DecorationRenderOptions): TextEditorDecorationType

createTreeView<T>(viewId: string, options: TreeViewOptions<T>): TreeView<T>

createWebviewPanel(viewType: string, title: string, showOptions: ViewColumn | {preserveFocus: boolean, viewColumn: ViewColumn}, options?: WebviewPanelOptions & WebviewOptions): WebviewPanel

registerCustomEditorProvider(viewType: string, provider: CustomTextEditorProvider | CustomReadonlyEditorProvider<CustomDocument> | CustomEditorProvider<CustomDocument>, options?: {supportsMultipleEditorsPerDocument: boolean, webviewOptions: WebviewPanelOptions}): Disposable

registerFileDecorationProvider(provider: FileDecorationProvider): Disposable

registerTerminalLinkProvider(provider: TerminalLinkProvider<TerminalLink>): Disposable

registerTerminalProfileProvider(id: string, provider: TerminalProfileProvider): Disposable

registerTreeDataProvider<T>(viewId: string, treeDataProvider: TreeDataProvider<T>): Disposable

registerUriHandler(handler: UriHandler): Disposable

registerWebviewPanelSerializer(viewType: string, serializer: WebviewPanelSerializer<unknown>): Disposable

registerWebviewViewProvider(viewId: string, provider: WebviewViewProvider, options?: {webviewOptions: {retainContextWhenHidden: boolean}}): Disposable

Parameter Description viewId: string provider: WebviewViewProvider options?: {webviewOptions: {retainContextWhenHidden: boolean}} Returns Description Disposable

setStatusBarMessage(text: string, hideAfterTimeout: number): Disposable

Parameter Description text: string hideAfterTimeout: number Returns Description Disposable

setStatusBarMessage(text: string, hideWhenDone: Thenable<any>): Disposable

Parameter Description text: string hideWhenDone: Thenable<any> Returns Description Disposable

setStatusBarMessage(text: string): Disposable

Parameter Description text: string Returns Description Disposable

showErrorMessage<T extends string>(message: string, ...items: T[]): Thenable<T | undefined>

Parameter Description message: string ...items: T[] Returns Description Thenable<T | undefined>

showErrorMessage<T extends string>(message: string, options: MessageOptions, ...items: T[]): Thenable<T | undefined>

Parameter Description message: string options: MessageOptions ...items: T[] Returns Description Thenable<T | undefined>

showErrorMessage<T extends MessageItem>(message: string, ...items: T[]): Thenable<T | undefined>

Parameter Description message: string ...items: T[] Returns Description Thenable<T | undefined>

showErrorMessage<T extends MessageItem>(message: string, options: MessageOptions, ...items: T[]): Thenable<T | undefined>

Parameter Description message: string options: MessageOptions ...items: T[] Returns Description Thenable<T | undefined>

showInformationMessage<T extends string>(message: string, ...items: T[]): Thenable<T | undefined>

Parameter Description message: string ...items: T[] Returns Description Thenable<T | undefined>

showInformationMessage<T extends string>(message: string, options: MessageOptions, ...items: T[]): Thenable<T | undefined>

Parameter Description message: string options: MessageOptions ...items: T[] Returns Description Thenable<T | undefined>

showInformationMessage<T extends MessageItem>(message: string, ...items: T[]): Thenable<T | undefined>

Parameter Description message: string ...items: T[] Returns Description Thenable<T | undefined>

showInformationMessage<T extends MessageItem>(message: string, options: MessageOptions, ...items: T[]): Thenable<T | undefined>

Parameter Description message: string options: MessageOptions ...items: T[] Returns Description Thenable<T | undefined>

showInputBox(options?: InputBoxOptions, token?: CancellationToken): Thenable<string | undefined>

showNotebookDocument(document: NotebookDocument, options?: NotebookDocumentShowOptions): Thenable<NotebookEditor>

showOpenDialog(options?: OpenDialogOptions): Thenable<Uri[] | undefined>

showQuickPick(items: readonly string[] | Thenable<readonly string[]>, options: QuickPickOptions & {canPickMany: true}, token?: CancellationToken): Thenable<string[] | undefined>

Parameter Description items: readonly string[] | Thenable<readonly string[]> options: QuickPickOptions & {canPickMany: true} token?: CancellationToken Returns Description Thenable<string[] | undefined>

showQuickPick(items: readonly string[] | Thenable<readonly string[]>, options?: QuickPickOptions, token?: CancellationToken): Thenable<string | undefined>

Parameter Description items: readonly string[] | Thenable<readonly string[]> options?: QuickPickOptions token?: CancellationToken Returns Description Thenable<string | undefined>

showQuickPick<T extends QuickPickItem>(items: readonly T[] | Thenable<readonly T[]>, options: QuickPickOptions & {canPickMany: true}, token?: CancellationToken): Thenable<T[] | undefined>

Parameter Description items: readonly T[] | Thenable<readonly T[]> options: QuickPickOptions & {canPickMany: true} token?: CancellationToken Returns Description Thenable<T[] | undefined>

showQuickPick<T extends QuickPickItem>(items: readonly T[] | Thenable<readonly T[]>, options?: QuickPickOptions, token?: CancellationToken): Thenable<T | undefined>

showSaveDialog(options?: SaveDialogOptions): Thenable<Uri | undefined>

showTextDocument(document: TextDocument, column?: ViewColumn, preserveFocus?: boolean): Thenable<TextEditor>

showTextDocument(document: TextDocument, options?: TextDocumentShowOptions): Thenable<TextEditor>

showTextDocument(uri: Uri, options?: TextDocumentShowOptions): Thenable<TextEditor>

showWarningMessage<T extends string>(message: string, ...items: T[]): Thenable<T | undefined>

Parameter Description message: string ...items: T[] Returns Description Thenable<T | undefined>

showWarningMessage<T extends string>(message: string, options: MessageOptions, ...items: T[]): Thenable<T | undefined>

Parameter Description message: string options: MessageOptions ...items: T[] Returns Description Thenable<T | undefined>

showWarningMessage<T extends MessageItem>(message: string, ...items: T[]): Thenable<T | undefined>

Parameter Description message: string ...items: T[] Returns Description Thenable<T | undefined>

showWarningMessage<T extends MessageItem>(message: string, options: MessageOptions, ...items: T[]): Thenable<T | undefined>

Parameter Description message: string options: MessageOptions ...items: T[] Returns Description Thenable<T | undefined>

showWorkspaceFolderPick(options?: WorkspaceFolderPickOptions): Thenable<WorkspaceFolder | undefined>

withProgress<R>(options: ProgressOptions, task: (progress: Progress<{increment: number, message: string}>, token: CancellationToken) => Thenable<R>): Thenable<R>

withScmProgress<R>(task: (progress: Progress<number>) => Thenable<R>): Thenable<R>

Parameter Description task: (progress: Progress<number>) => Thenable<R> Returns Description Thenable<R> workspace Variables

fs: FileSystem

isTrusted: boolean

name: string | undefined

notebookDocuments: readonly NotebookDocument[]

rootPath: string | undefined

textDocuments: readonly TextDocument[]

workspaceFile: Uri | undefined

workspaceFolders: readonly WorkspaceFolder[] | undefined

Events

onDidChangeConfiguration: Event<ConfigurationChangeEvent>

onDidChangeNotebookDocument: Event<NotebookDocumentChangeEvent>

onDidChangeTextDocument: Event<TextDocumentChangeEvent>

onDidChangeWorkspaceFolders: Event<WorkspaceFoldersChangeEvent>

onDidCloseNotebookDocument: Event<NotebookDocument>

onDidCloseTextDocument: Event<TextDocument>

onDidCreateFiles: Event<FileCreateEvent>

onDidDeleteFiles: Event<FileDeleteEvent>

onDidGrantWorkspaceTrust: Event<void>

onDidOpenNotebookDocument: Event<NotebookDocument>

onDidOpenTextDocument: Event<TextDocument>

onDidRenameFiles: Event<FileRenameEvent>

onDidSaveNotebookDocument: Event<NotebookDocument>

onDidSaveTextDocument: Event<TextDocument>

onWillCreateFiles: Event<FileWillCreateEvent>

onWillDeleteFiles: Event<FileWillDeleteEvent>

onWillRenameFiles: Event<FileWillRenameEvent>

onWillSaveNotebookDocument: Event<NotebookDocumentWillSaveEvent>

onWillSaveTextDocument: Event<TextDocumentWillSaveEvent>

Functions

applyEdit(edit: WorkspaceEdit, metadata?: WorkspaceEditMetadata): Thenable<boolean>

asRelativePath(pathOrUri: string | Uri, includeWorkspaceFolder?: boolean): string

Parameter Description pathOrUri: string | Uri includeWorkspaceFolder?: boolean Returns Description string

createFileSystemWatcher(globPattern: GlobPattern, ignoreCreateEvents?: boolean, ignoreChangeEvents?: boolean, ignoreDeleteEvents?: boolean): FileSystemWatcher

Parameter Description globPattern: GlobPattern ignoreCreateEvents?: boolean ignoreChangeEvents?: boolean ignoreDeleteEvents?: boolean Returns Description FileSystemWatcher

decode(content: Uint8Array): Thenable<string>

Parameter Description content: Uint8Array Returns Description Thenable<string>

decode(content: Uint8Array, options: {encoding: string}): Thenable<string>

Parameter Description content: Uint8Array options: {encoding: string} Returns Description Thenable<string>

decode(content: Uint8Array, options: {uri: Uri}): Thenable<string>

Parameter Description content: Uint8Array options: {uri: Uri} Returns Description Thenable<string>

encode(content: string): Thenable<Uint8Array>

Parameter Description content: string Returns Description Thenable<Uint8Array>

encode(content: string, options: {encoding: string}): Thenable<Uint8Array>

Parameter Description content: string options: {encoding: string} Returns Description Thenable<Uint8Array>

encode(content: string, options: {uri: Uri}): Thenable<Uint8Array>

Parameter Description content: string options: {uri: Uri} Returns Description Thenable<Uint8Array>

findFiles(include: GlobPattern, exclude?: GlobPattern, maxResults?: number, token?: CancellationToken): Thenable<Uri[]>

getConfiguration(section?: string, scope?: ConfigurationScope): WorkspaceConfiguration

getWorkspaceFolder(uri: Uri): WorkspaceFolder | undefined

openNotebookDocument(uri: Uri): Thenable<NotebookDocument>

openNotebookDocument(notebookType: string, content?: NotebookData): Thenable<NotebookDocument>

openTextDocument(uri: Uri, options?: {encoding: string}): Thenable<TextDocument>

Parameter Description uri: Uri options?: {encoding: string} Returns Description Thenable<TextDocument>

openTextDocument(path: string, options?: {encoding: string}): Thenable<TextDocument>

Parameter Description path: string options?: {encoding: string} Returns Description Thenable<TextDocument>

openTextDocument(options?: {content: string, encoding: string, language: string}): Thenable<TextDocument>

Parameter Description options?: {content: string, encoding: string, language: string} Returns Description Thenable<TextDocument>

registerFileSystemProvider(scheme: string, provider: FileSystemProvider, options?: {isCaseSensitive: boolean, isReadonly: boolean | MarkdownString}): Disposable

registerNotebookSerializer(notebookType: string, serializer: NotebookSerializer, options?: NotebookDocumentContentOptions): Disposable

registerTaskProvider(type: string, provider: TaskProvider<Task>): Disposable

registerTextDocumentContentProvider(scheme: string, provider: TextDocumentContentProvider): Disposable

save(uri: Uri): Thenable<Uri | undefined>

Parameter Description uri: Uri Returns Description Thenable<Uri | undefined>

saveAll(includeUntitled?: boolean): Thenable<boolean>

Parameter Description includeUntitled?: boolean Returns Description Thenable<boolean>

saveAs(uri: Uri): Thenable<Uri | undefined>

Parameter Description uri: Uri Returns Description Thenable<Uri | undefined>

updateWorkspaceFolders(start: number, deleteCount: number, ...workspaceFoldersToAdd: Array<{name: string, uri: Uri}>): boolean

Parameter Description start: number deleteCount: number ...workspaceFoldersToAdd: Array<{name: string, uri: Uri}> Returns Description boolean AccessibilityInformation Properties

label: string

role?: string

AuthenticationForceNewSessionOptions

AuthenticationForceNewSessionOptions: AuthenticationGetSessionPresentationOptions

AuthenticationGetSessionOptions Properties

account?: AuthenticationSessionAccountInformation

clearSessionPreference?: boolean

createIfNone?: boolean | AuthenticationGetSessionPresentationOptions

forceNewSession?: boolean | AuthenticationGetSessionPresentationOptions

silent?: boolean

AuthenticationGetSessionPresentationOptions Properties

detail?: string

AuthenticationProvider Events

onDidChangeSessions: Event<AuthenticationProviderAuthenticationSessionsChangeEvent>

Methods

createSession(scopes: readonly string[], options: AuthenticationProviderSessionOptions): Thenable<AuthenticationSession>

getSessions(scopes: readonly string[], options: AuthenticationProviderSessionOptions): Thenable<AuthenticationSession[]>

removeSession(sessionId: string): Thenable<void>

Parameter Description sessionId: string Returns Description Thenable<void> AuthenticationProviderAuthenticationSessionsChangeEvent Properties

added: readonly AuthenticationSession[]

changed: readonly AuthenticationSession[]

removed: readonly AuthenticationSession[]

AuthenticationProviderInformation Properties

id: string

label: string

AuthenticationProviderOptions Properties

supportsMultipleAccounts?: boolean

AuthenticationProviderSessionOptions Properties

account?: AuthenticationSessionAccountInformation

AuthenticationSession Properties

accessToken: string

account: AuthenticationSessionAccountInformation

id: string

scopes: readonly string[]

AuthenticationSessionAccountInformation Properties

id: string

label: string

AuthenticationSessionsChangeEvent Properties

provider: AuthenticationProviderInformation

AutoClosingPair Properties

close: string

notIn?: SyntaxTokenType[]

open: string

BranchCoverage Constructors

new BranchCoverage(executed: number | boolean, location?: Range | Position, label?: string): BranchCoverage

Properties

executed: number | boolean

label?: string

location?: Range | Position

Breakpoint Constructors

new Breakpoint(enabled?: boolean, condition?: string, hitCondition?: string, logMessage?: string): Breakpoint

Parameter Description enabled?: boolean condition?: string hitCondition?: string logMessage?: string Returns Description Breakpoint Properties

condition?: string

enabled: boolean

hitCondition?: string

id: string

logMessage?: string

BreakpointsChangeEvent Properties

added: readonly Breakpoint[]

changed: readonly Breakpoint[]

removed: readonly Breakpoint[]

CallHierarchyIncomingCall Constructors

new CallHierarchyIncomingCall(item: CallHierarchyItem, fromRanges: Range[]): CallHierarchyIncomingCall

Properties

from: CallHierarchyItem

fromRanges: Range[]

CallHierarchyItem Constructors

new CallHierarchyItem(kind: SymbolKind, name: string, detail: string, uri: Uri, range: Range, selectionRange: Range): CallHierarchyItem

Properties

detail?: string

kind: SymbolKind

name: string

range: Range

selectionRange: Range

tags?: readonly SymbolTag[]

uri: Uri

CallHierarchyOutgoingCall Constructors

new CallHierarchyOutgoingCall(item: CallHierarchyItem, fromRanges: Range[]): CallHierarchyOutgoingCall

Properties

fromRanges: Range[]

to: CallHierarchyItem

CallHierarchyProvider Methods

prepareCallHierarchy(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<CallHierarchyItem | CallHierarchyItem[]>

provideCallHierarchyIncomingCalls(item: CallHierarchyItem, token: CancellationToken): ProviderResult<CallHierarchyIncomingCall[]>

provideCallHierarchyOutgoingCalls(item: CallHierarchyItem, token: CancellationToken): ProviderResult<CallHierarchyOutgoingCall[]>

CancellationError Constructors

new CancellationError(): CancellationError

CancellationToken Properties

isCancellationRequested: boolean

onCancellationRequested: Event<any>

CancellationTokenSource Constructors

new CancellationTokenSource(): CancellationTokenSource

Properties

token: CancellationToken

Methods

cancel(): void

Parameter Description Returns Description void

dispose(): void

Parameter Description Returns Description void CharacterPair

CharacterPair: [string, string]

ChatContext Properties

history: ReadonlyArray<ChatRequestTurn | ChatResponseTurn>

ChatErrorDetails Properties

message: string

responseIsFiltered?: boolean

ChatFollowup Properties

command?: string

label?: string

participant?: string

prompt: string

ChatFollowupProvider Methods

provideFollowups(result: ChatResult, context: ChatContext, token: CancellationToken): ProviderResult<ChatFollowup[]>

ChatLanguageModelToolReference Properties

name: string

range?: [start: number, end: number]

ChatParticipant Events

onDidReceiveFeedback: Event<ChatResultFeedback>

Properties

followupProvider?: ChatFollowupProvider

iconPath?: IconPath

id: string

requestHandler: ChatRequestHandler

Methods

dispose(): void

Parameter Description Returns Description void ChatParticipantToolToken

ChatParticipantToolToken: never

ChatPromptReference Properties

id: string

modelDescription?: string

range?: [start: number, end: number]

value: unknown

ChatRequest Properties

command: string

model: LanguageModelChat

prompt: string

references: readonly ChatPromptReference[]

toolInvocationToken: never

toolReferences: readonly ChatLanguageModelToolReference[]

ChatRequestHandler

ChatRequestHandler: (request: ChatRequest, context: ChatContext, response: ChatResponseStream, token: CancellationToken) => ProviderResult<ChatResult | void>

ChatRequestTurn Properties

command?: string

participant: string

prompt: string

references: ChatPromptReference[]

toolReferences: readonly ChatLanguageModelToolReference[]

ChatResponseAnchorPart Constructors

new ChatResponseAnchorPart(value: Uri | Location, title?: string): ChatResponseAnchorPart

Properties

title?: string

value: Uri | Location

ChatResponseCommandButtonPart Constructors

new ChatResponseCommandButtonPart(value: Command): ChatResponseCommandButtonPart

Properties

value: Command

ChatResponseFileTree Properties

children?: ChatResponseFileTree[]

name: string

ChatResponseFileTreePart Constructors

new ChatResponseFileTreePart(value: ChatResponseFileTree[], baseUri: Uri): ChatResponseFileTreePart

Properties

baseUri: Uri

value: ChatResponseFileTree[]

ChatResponseMarkdownPart Constructors

new ChatResponseMarkdownPart(value: string | MarkdownString): ChatResponseMarkdownPart

Properties

value: MarkdownString

ChatResponsePart

ChatResponsePart: ChatResponseMarkdownPart | ChatResponseFileTreePart | ChatResponseAnchorPart | ChatResponseProgressPart | ChatResponseReferencePart | ChatResponseCommandButtonPart

ChatResponseProgressPart Constructors

new ChatResponseProgressPart(value: string): ChatResponseProgressPart

Properties

value: string

ChatResponseReferencePart Constructors

new ChatResponseReferencePart(value: Uri | Location, iconPath?: IconPath): ChatResponseReferencePart

Properties

iconPath?: IconPath

value: Uri | Location

ChatResponseStream Methods

anchor(value: Uri | Location, title?: string): void

Parameter Description value: Uri | Location title?: string Returns Description void

button(command: Command): void

Parameter Description command: Command Returns Description void

filetree(value: ChatResponseFileTree[], baseUri: Uri): void

markdown(value: string | MarkdownString): void

Parameter Description value: string | MarkdownString Returns Description void

progress(value: string): void

Parameter Description value: string Returns Description void

push(part: ChatResponsePart): void

reference(value: Uri | Location, iconPath?: IconPath): void

ChatResponseTurn Properties

command?: string

participant: string

response: ReadonlyArray<ChatResponseMarkdownPart | ChatResponseFileTreePart | ChatResponseAnchorPart | ChatResponseCommandButtonPart>

result: ChatResult

ChatResult Properties

errorDetails?: ChatErrorDetails

metadata?:

ChatResultFeedback Properties

kind: ChatResultFeedbackKind

result: ChatResult

ChatResultFeedbackKind Enumeration Members

Unhelpful: 0

Helpful: 1

Clipboard Methods

readText(): Thenable<string>

Parameter Description Returns Description Thenable<string>

writeText(value: string): Thenable<void>

Parameter Description value: string Returns Description Thenable<void> CodeAction Constructors

new CodeAction(title: string, kind?: CodeActionKind): CodeAction

Properties

command?: Command

diagnostics?: Diagnostic[]

disabled?: {reason: string}

Parameter Description reason: string

edit?: WorkspaceEdit

isPreferred?: boolean

kind?: CodeActionKind

title: string

CodeActionContext Properties

diagnostics: readonly Diagnostic[]

only: CodeActionKind

triggerKind: CodeActionTriggerKind

CodeActionKind Static

Empty: CodeActionKind

Notebook: CodeActionKind

QuickFix: CodeActionKind

Refactor: CodeActionKind

RefactorExtract: CodeActionKind

RefactorInline: CodeActionKind

RefactorMove: CodeActionKind

RefactorRewrite: CodeActionKind

Source: CodeActionKind

SourceFixAll: CodeActionKind

SourceOrganizeImports: CodeActionKind

Constructors

new CodeActionKind(value: string): CodeActionKind

Parameter Description value: string Returns Description CodeActionKind Properties

value: string

Methods

append(parts: string): CodeActionKind

Parameter Description parts: string Returns Description CodeActionKind

contains(other: CodeActionKind): boolean

Parameter Description other: CodeActionKind Returns Description boolean

intersects(other: CodeActionKind): boolean

Parameter Description other: CodeActionKind Returns Description boolean CodeActionProvider<T> Methods

provideCodeActions(document: TextDocument, range: Range | Selection, context: CodeActionContext, token: CancellationToken): ProviderResult<Array<Command | T>>

resolveCodeAction(codeAction: T, token: CancellationToken): ProviderResult<T>

CodeActionProviderMetadata Properties

documentation?: ReadonlyArray<{command: Command, kind: CodeActionKind}>

providedCodeActionKinds?: readonly CodeActionKind[]

CodeActionTriggerKind Enumeration Members

Invoke: 1

Automatic: 2

CodeLens Constructors

new CodeLens(range: Range, command?: Command): CodeLens

Properties

command?: Command

isResolved: boolean

range: Range

CodeLensProvider<T> Events

onDidChangeCodeLenses?: Event<void>

Methods

provideCodeLenses(document: TextDocument, token: CancellationToken): ProviderResult<T[]>

resolveCodeLens(codeLens: T, token: CancellationToken): ProviderResult<T>

Color Constructors

new Color(red: number, green: number, blue: number, alpha: number): Color

Parameter Description red: number green: number blue: number alpha: number Returns Description Color Properties

alpha: number

blue: number

green: number

red: number

ColorInformation Constructors

new ColorInformation(range: Range, color: Color): ColorInformation

Properties

color: Color

range: Range

ColorPresentation Constructors

new ColorPresentation(label: string): ColorPresentation

Properties

additionalTextEdits?: TextEdit[]

label: string

textEdit?: TextEdit

ColorTheme Properties

kind: ColorThemeKind

ColorThemeKind Enumeration Members

Light: 1

Dark: 2

HighContrast: 3

HighContrastLight: 4

Command Properties

arguments?: any[]

command: string

title: string

tooltip?: string

Properties

author: CommentAuthorInformation

body: string | MarkdownString

contextValue?: string

label?: string

mode: CommentMode

reactions?: CommentReaction[]

timestamp?: Date

Properties

iconPath?: Uri

name: string

Properties

commentingRangeProvider?: CommentingRangeProvider

id: string

label: string

options?: CommentOptions

reactionHandler?: (comment: Comment, reaction: CommentReaction) => Thenable<void>

Methods

createCommentThread(uri: Uri, range: Range, comments: readonly Comment[]): CommentThread

dispose(): void

Parameter Description Returns Description void Methods

provideCommentingRanges(document: TextDocument, token: CancellationToken): ProviderResult<Range[] | CommentingRanges>

Properties

enableFileComments: boolean

ranges?: Range[]

Enumeration Members

Editing: 0

Preview: 1

Properties

placeHolder?: string

prompt?: string

Properties

authorHasReacted: boolean

count: number

iconPath: string | Uri

label: string

Properties

text: string

thread: CommentThread

Properties

blockComment?: CharacterPair

lineComment?: string

Properties

canReply: boolean | CommentAuthorInformation

collapsibleState: CommentThreadCollapsibleState

comments: readonly Comment[]

contextValue?: string

label?: string

range: Range

state?: CommentThreadState

uri: Uri

Methods

dispose(): void

Parameter Description Returns Description void Enumeration Members

Collapsed: 0

Expanded: 1

Enumeration Members

Unresolved: 0

Resolved: 1

CompletionContext Properties

triggerCharacter: string

triggerKind: CompletionTriggerKind

CompletionItem Constructors

new CompletionItem(label: string | CompletionItemLabel, kind?: CompletionItemKind): CompletionItem

Properties

additionalTextEdits?: TextEdit[]

command?: Command

commitCharacters?: string[]

detail?: string

documentation?: string | MarkdownString

filterText?: string

insertText?: string | SnippetString

keepWhitespace?: boolean

kind?: CompletionItemKind

label: string | CompletionItemLabel

preselect?: boolean

range?: Range | {inserting: Range, replacing: Range}

sortText?: string

tags?: readonly CompletionItemTag[]

textEdit?: TextEdit

CompletionItemKind Enumeration Members

Text: 0

Method: 1

Function: 2

Constructor: 3

Field: 4

Variable: 5

Class: 6

Interface: 7

Module: 8

Property: 9

Unit: 10

Value: 11

Enum: 12

Keyword: 13

Snippet: 14

Color: 15

File: 16

Reference: 17

Folder: 18

EnumMember: 19

Constant: 20

Struct: 21

Event: 22

Operator: 23

TypeParameter: 24

User: 25

Issue: 26

CompletionItemLabel Properties

description?: string

detail?: string

label: string

CompletionItemProvider<T> Methods

provideCompletionItems(document: TextDocument, position: Position, token: CancellationToken, context: CompletionContext): ProviderResult<CompletionList<T> | T[]>

resolveCompletionItem(item: T, token: CancellationToken): ProviderResult<T>

CompletionItemTag Enumeration Members

Deprecated: 1

CompletionList<T> Constructors

new CompletionList<T extends CompletionItem>(items?: T[], isIncomplete?: boolean): CompletionList<T>

Parameter Description items?: T[] isIncomplete?: boolean Returns Description CompletionList<T> Properties

isIncomplete?: boolean

items: T[]

CompletionTriggerKind Enumeration Members

Invoke: 0

TriggerCharacter: 1

TriggerForIncompleteCompletions: 2

ConfigurationChangeEvent Methods

affectsConfiguration(section: string, scope?: ConfigurationScope): boolean

Parameter Description section: string scope?: ConfigurationScope Returns Description boolean ConfigurationScope

ConfigurationScope: Uri | TextDocument | WorkspaceFolder | {languageId: string, uri: Uri}

ConfigurationTarget Enumeration Members

Global: 1

Workspace: 2

WorkspaceFolder: 3

CustomDocument Properties

uri: Uri

Methods

dispose(): void

Parameter Description Returns Description void CustomDocumentBackup Properties

id: string

Methods

delete(): void

Parameter Description Returns Description void CustomDocumentBackupContext Properties

destination: Uri

CustomDocumentContentChangeEvent<T> Properties

document: T

CustomDocumentEditEvent<T> Properties

document: T

label?: string

Methods

redo(): void | Thenable<void>

Parameter Description Returns Description void | Thenable<void>

undo(): void | Thenable<void>

Parameter Description Returns Description void | Thenable<void> CustomDocumentOpenContext Properties

backupId: string

untitledDocumentData: Uint8Array

CustomEditorProvider<T> Events

onDidChangeCustomDocument: Event<CustomDocumentEditEvent<T>> | Event<CustomDocumentContentChangeEvent<T>>

Methods

backupCustomDocument(document: T, context: CustomDocumentBackupContext, cancellation: CancellationToken): Thenable<CustomDocumentBackup>

openCustomDocument(uri: Uri, openContext: CustomDocumentOpenContext, token: CancellationToken): T | Thenable<T>

resolveCustomEditor(document: T, webviewPanel: WebviewPanel, token: CancellationToken): void | Thenable<void>

revertCustomDocument(document: T, cancellation: CancellationToken): Thenable<void>

Parameter Description document: T cancellation: CancellationToken Returns Description Thenable<void>

saveCustomDocument(document: T, cancellation: CancellationToken): Thenable<void>

Parameter Description document: T cancellation: CancellationToken Returns Description Thenable<void>

saveCustomDocumentAs(document: T, destination: Uri, cancellation: CancellationToken): Thenable<void>

Parameter Description document: T destination: Uri cancellation: CancellationToken Returns Description Thenable<void> CustomExecution Constructors

new CustomExecution(callback: (resolvedDefinition: TaskDefinition) => Thenable<Pseudoterminal>): CustomExecution

CustomReadonlyEditorProvider<T> Methods

openCustomDocument(uri: Uri, openContext: CustomDocumentOpenContext, token: CancellationToken): T | Thenable<T>

resolveCustomEditor(document: T, webviewPanel: WebviewPanel, token: CancellationToken): void | Thenable<void>

CustomTextEditorProvider Methods

resolveCustomTextEditor(document: TextDocument, webviewPanel: WebviewPanel, token: CancellationToken): void | Thenable<void>

DataTransfer Constructors

new DataTransfer(): DataTransfer

Methods

[iterator](): IterableIterator<[mimeType: string, item: DataTransferItem]>

Parameter Description Returns Description IterableIterator<[mimeType: string, item: DataTransferItem]>

forEach(callbackfn: (item: DataTransferItem, mimeType: string, dataTransfer: DataTransfer) => void, thisArg?: any): void

Parameter Description callbackfn: (item: DataTransferItem, mimeType: string, dataTransfer: DataTransfer) => void thisArg?: any Returns Description void

get(mimeType: string): DataTransferItem

set(mimeType: string, value: DataTransferItem): void

Parameter Description mimeType: string value: DataTransferItem Returns Description void DataTransferFile Properties

name: string

uri?: Uri

Methods

data(): Thenable<Uint8Array>

Parameter Description Returns Description Thenable<Uint8Array> DataTransferItem Constructors

new DataTransferItem(value: any): DataTransferItem

Properties

value: any

Methods

asFile(): DataTransferFile

asString(): Thenable<string>

Parameter Description Returns Description Thenable<string> DebugAdapter Events

onDidSendMessage: Event<DebugProtocolMessage>

Methods

dispose(): any

Parameter Description Returns Description any

handleMessage(message: DebugProtocolMessage): void

DebugAdapterDescriptor

DebugAdapterDescriptor: DebugAdapterExecutable | DebugAdapterServer | DebugAdapterNamedPipeServer | DebugAdapterInlineImplementation

DebugAdapterDescriptorFactory Methods

createDebugAdapterDescriptor(session: DebugSession, executable: DebugAdapterExecutable): ProviderResult<DebugAdapterDescriptor>

DebugAdapterExecutable Constructors

new DebugAdapterExecutable(command: string, args?: string[], options?: DebugAdapterExecutableOptions): DebugAdapterExecutable

Properties

args: string[]

command: string

options?: DebugAdapterExecutableOptions

DebugAdapterExecutableOptions Properties

cwd?: string

env?:

DebugAdapterInlineImplementation Constructors

new DebugAdapterInlineImplementation(implementation: DebugAdapter): DebugAdapterInlineImplementation

DebugAdapterNamedPipeServer Constructors

new DebugAdapterNamedPipeServer(path: string): DebugAdapterNamedPipeServer

Properties

path: string

DebugAdapterServer Constructors

new DebugAdapterServer(port: number, host?: string): DebugAdapterServer

Properties

host?: string

port: number

DebugAdapterTracker Events

onDidSendMessage(message: any): void

Parameter Description message: any Returns Description void

onWillReceiveMessage(message: any): void

Parameter Description message: any Returns Description void

onWillStartSession(): void

Parameter Description Returns Description void

onWillStopSession(): void

Parameter Description Returns Description void Methods

onError(error: Error): void

Parameter Description error: Error Returns Description void

onExit(code: number, signal: string): void

Parameter Description code: number signal: string Returns Description void DebugAdapterTrackerFactory Methods

createDebugAdapterTracker(session: DebugSession): ProviderResult<DebugAdapterTracker>

DebugConfiguration Properties

name: string

request: string

type: string

DebugConfigurationProvider Methods

provideDebugConfigurations(folder: WorkspaceFolder, token?: CancellationToken): ProviderResult<DebugConfiguration[]>

resolveDebugConfiguration(folder: WorkspaceFolder, debugConfiguration: DebugConfiguration, token?: CancellationToken): ProviderResult<DebugConfiguration>

resolveDebugConfigurationWithSubstitutedVariables(folder: WorkspaceFolder, debugConfiguration: DebugConfiguration, token?: CancellationToken): ProviderResult<DebugConfiguration>

DebugConfigurationProviderTriggerKind Enumeration Members

Initial: 1

Dynamic: 2

DebugConsole Methods

append(value: string): void

Parameter Description value: string Returns Description void

appendLine(value: string): void

Parameter Description value: string Returns Description void DebugConsoleMode Enumeration Members

Separate: 0

MergeWithParent: 1

DebugProtocolBreakpoint DebugProtocolMessage DebugProtocolSource DebugSession Properties

configuration: DebugConfiguration

id: string

name: string

parentSession?: DebugSession

type: string

workspaceFolder: WorkspaceFolder

Methods

customRequest(command: string, args?: any): Thenable<any>

Parameter Description command: string args?: any Returns Description Thenable<any>

getDebugProtocolBreakpoint(breakpoint: Breakpoint): Thenable<DebugProtocolBreakpoint>

DebugSessionCustomEvent Properties

body: any

event: string

session: DebugSession

DebugSessionOptions Properties

compact?: boolean

consoleMode?: DebugConsoleMode

lifecycleManagedByParent?: boolean

noDebug?: boolean

parentSession?: DebugSession

suppressDebugStatusbar?: boolean

suppressDebugToolbar?: boolean

suppressDebugView?: boolean

suppressSaveBeforeStart?: boolean

testRun?: TestRun

DebugStackFrame Properties

frameId: number

session: DebugSession

threadId: number

DebugThread Properties

session: DebugSession

threadId: number

Declaration

Declaration: Location | Location[] | LocationLink[]

DeclarationCoverage Constructors

new DeclarationCoverage(name: string, executed: number | boolean, location: Range | Position): DeclarationCoverage

Properties

executed: number | boolean

location: Range | Position

name: string

DeclarationProvider Methods

provideDeclaration(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<Declaration>

DecorationInstanceRenderOptions Properties

after?: ThemableDecorationAttachmentRenderOptions

before?: ThemableDecorationAttachmentRenderOptions

dark?: ThemableDecorationInstanceRenderOptions

light?: ThemableDecorationInstanceRenderOptions

DecorationOptions Properties

hoverMessage?: MarkdownString | MarkedString | Array<MarkdownString | MarkedString>

range: Range

renderOptions?: DecorationInstanceRenderOptions

DecorationRangeBehavior Enumeration Members

OpenOpen: 0

ClosedClosed: 1

OpenClosed: 2

ClosedOpen: 3

DecorationRenderOptions Properties

after?: ThemableDecorationAttachmentRenderOptions

backgroundColor?: string | ThemeColor

before?: ThemableDecorationAttachmentRenderOptions

border?: string

borderColor?: string | ThemeColor

borderRadius?: string

borderSpacing?: string

borderStyle?: string

borderWidth?: string

color?: string | ThemeColor

cursor?: string

dark?: ThemableDecorationRenderOptions

fontStyle?: string

fontWeight?: string

gutterIconPath?: string | Uri

gutterIconSize?: string

isWholeLine?: boolean

letterSpacing?: string

light?: ThemableDecorationRenderOptions

opacity?: string

outline?: string

outlineColor?: string | ThemeColor

outlineStyle?: string

outlineWidth?: string

overviewRulerColor?: string | ThemeColor

overviewRulerLane?: OverviewRulerLane

rangeBehavior?: DecorationRangeBehavior

textDecoration?: string

Definition

Definition: Location | Location[]

DefinitionLink

DefinitionLink: LocationLink

DefinitionProvider Methods

provideDefinition(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<Definition | LocationLink[]>

Diagnostic Constructors

new Diagnostic(range: Range, message: string, severity?: DiagnosticSeverity): Diagnostic

Properties

code?: string | number | {target: Uri, value: string | number}

message: string

range: Range

relatedInformation?: DiagnosticRelatedInformation[]

severity: DiagnosticSeverity

source?: string

tags?: DiagnosticTag[]

DiagnosticChangeEvent Properties

uris: readonly Uri[]

DiagnosticCollection Properties

name: string

Methods

clear(): void

Parameter Description Returns Description void

delete(uri: Uri): void

Parameter Description uri: Uri Returns Description void

dispose(): void

Parameter Description Returns Description void

forEach(callback: (uri: Uri, diagnostics: readonly Diagnostic[], collection: DiagnosticCollection) => any, thisArg?: any): void

get(uri: Uri): readonly Diagnostic[]

Parameter Description uri: Uri Returns Description readonly Diagnostic[]

has(uri: Uri): boolean

Parameter Description uri: Uri Returns Description boolean

set(uri: Uri, diagnostics: readonly Diagnostic[]): void

Parameter Description uri: Uri diagnostics: readonly Diagnostic[] Returns Description void

set(entries: ReadonlyArray<[Uri, readonly Diagnostic[]]>): void

Parameter Description entries: ReadonlyArray<[Uri, readonly Diagnostic[]]> Returns Description void Constructors

new DiagnosticRelatedInformation(location: Location, message: string): DiagnosticRelatedInformation

Properties

location: Location

message: string

DiagnosticSeverity Enumeration Members

Error: 0

Warning: 1

Information: 2

Hint: 3

DiagnosticTag Enumeration Members

Unnecessary: 1

Deprecated: 2

Disposable Static

from(...disposableLikes: Array<{dispose: () => any}>): Disposable

Parameter Description ...disposableLikes: Array<{dispose: () => any}> Returns Description Disposable Constructors

new Disposable(callOnDispose: () => any): Disposable

Parameter Description callOnDispose: () => any Returns Description Disposable Methods

dispose(): any

Parameter Description Returns Description any DocumentColorProvider Methods

provideColorPresentations(color: Color, context: {document: TextDocument, range: Range}, token: CancellationToken): ProviderResult<ColorPresentation[]>

provideDocumentColors(document: TextDocument, token: CancellationToken): ProviderResult<ColorInformation[]>

DocumentDropEdit Constructors

new DocumentDropEdit(insertText: string | SnippetString, title?: string, kind?: DocumentDropOrPasteEditKind): DocumentDropEdit

Properties

additionalEdit?: WorkspaceEdit

insertText: string | SnippetString

kind?: DocumentDropOrPasteEditKind

title?: string

yieldTo?: readonly DocumentDropOrPasteEditKind[]

DocumentDropEditProvider<T> Methods

provideDocumentDropEdits(document: TextDocument, position: Position, dataTransfer: DataTransfer, token: CancellationToken): ProviderResult<T | T[]>

resolveDocumentDropEdit(edit: T, token: CancellationToken): ProviderResult<T>

DocumentDropEditProviderMetadata Properties

dropMimeTypes: readonly string[]

providedDropEditKinds?: readonly DocumentDropOrPasteEditKind[]

DocumentDropOrPasteEditKind Static

Empty: DocumentDropOrPasteEditKind

Text: DocumentDropOrPasteEditKind

TextUpdateImports: DocumentDropOrPasteEditKind

Constructors

new DocumentDropOrPasteEditKind(value: string): DocumentDropOrPasteEditKind

Properties

value: string

Methods

append(...parts: string[]): DocumentDropOrPasteEditKind

contains(other: DocumentDropOrPasteEditKind): boolean

intersects(other: DocumentDropOrPasteEditKind): boolean

DocumentFilter Properties

language?: string

notebookType?: string

pattern?: GlobPattern

scheme?: string

DocumentFormattingEditProvider Methods

provideDocumentFormattingEdits(document: TextDocument, options: FormattingOptions, token: CancellationToken): ProviderResult<TextEdit[]>

DocumentHighlight Constructors

new DocumentHighlight(range: Range, kind?: DocumentHighlightKind): DocumentHighlight

Properties

kind?: DocumentHighlightKind

range: Range

DocumentHighlightKind Enumeration Members

Text: 0

Read: 1

Write: 2

DocumentHighlightProvider Methods

provideDocumentHighlights(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<DocumentHighlight[]>

DocumentLink Constructors

new DocumentLink(range: Range, target?: Uri): DocumentLink

Properties

range: Range

target?: Uri

tooltip?: string

DocumentLinkProvider<T> Methods

provideDocumentLinks(document: TextDocument, token: CancellationToken): ProviderResult<T[]>

resolveDocumentLink(link: T, token: CancellationToken): ProviderResult<T>

DocumentPasteEdit Constructors

new DocumentPasteEdit(insertText: string | SnippetString, title: string, kind: DocumentDropOrPasteEditKind): DocumentPasteEdit

Properties

additionalEdit?: WorkspaceEdit

insertText: string | SnippetString

kind: DocumentDropOrPasteEditKind

title: string

yieldTo?: readonly DocumentDropOrPasteEditKind[]

DocumentPasteEditContext Properties

only: DocumentDropOrPasteEditKind

triggerKind: DocumentPasteTriggerKind

DocumentPasteEditProvider<T> Methods

prepareDocumentPaste(document: TextDocument, ranges: readonly Range[], dataTransfer: DataTransfer, token: CancellationToken): void | Thenable<void>

provideDocumentPasteEdits(document: TextDocument, ranges: readonly Range[], dataTransfer: DataTransfer, context: DocumentPasteEditContext, token: CancellationToken): ProviderResult<T[]>

resolveDocumentPasteEdit(pasteEdit: T, token: CancellationToken): ProviderResult<T>

DocumentPasteProviderMetadata Properties

copyMimeTypes?: readonly string[]

pasteMimeTypes?: readonly string[]

providedPasteEditKinds: readonly DocumentDropOrPasteEditKind[]

DocumentPasteTriggerKind Enumeration Members

Automatic: 0

PasteAs: 1

DocumentRangeFormattingEditProvider Methods

provideDocumentRangeFormattingEdits(document: TextDocument, range: Range, options: FormattingOptions, token: CancellationToken): ProviderResult<TextEdit[]>

provideDocumentRangesFormattingEdits(document: TextDocument, ranges: Range[], options: FormattingOptions, token: CancellationToken): ProviderResult<TextEdit[]>

DocumentRangeSemanticTokensProvider Methods

provideDocumentRangeSemanticTokens(document: TextDocument, range: Range, token: CancellationToken): ProviderResult<SemanticTokens>

DocumentSelector

DocumentSelector: DocumentFilter | string | ReadonlyArray<DocumentFilter | string>

DocumentSemanticTokensProvider Events

onDidChangeSemanticTokens?: Event<void>

Methods

provideDocumentSemanticTokens(document: TextDocument, token: CancellationToken): ProviderResult<SemanticTokens>

provideDocumentSemanticTokensEdits(document: TextDocument, previousResultId: string, token: CancellationToken): ProviderResult<SemanticTokens | SemanticTokensEdits>

DocumentSymbol Constructors

new DocumentSymbol(name: string, detail: string, kind: SymbolKind, range: Range, selectionRange: Range): DocumentSymbol

Properties

children: DocumentSymbol[]

detail: string

kind: SymbolKind

name: string

range: Range

selectionRange: Range

tags?: readonly SymbolTag[]

DocumentSymbolProvider Methods

provideDocumentSymbols(document: TextDocument, token: CancellationToken): ProviderResult<DocumentSymbol[] | SymbolInformation[]>

DocumentSymbolProviderMetadata Properties

label?: string

EndOfLine Enumeration Members

LF: 1

CRLF: 2

EnterAction Properties

appendText?: string

indentAction: IndentAction

removeText?: number

EnvironmentVariableCollection Properties

description: string | MarkdownString

persistent: boolean

Methods

append(variable: string, value: string, options?: EnvironmentVariableMutatorOptions): void

clear(): void

Parameter Description Returns Description void

delete(variable: string): void

Parameter Description variable: string Returns Description void

forEach(callback: (variable: string, mutator: EnvironmentVariableMutator, collection: EnvironmentVariableCollection) => any, thisArg?: any): void

get(variable: string): EnvironmentVariableMutator

prepend(variable: string, value: string, options?: EnvironmentVariableMutatorOptions): void

replace(variable: string, value: string, options?: EnvironmentVariableMutatorOptions): void

EnvironmentVariableMutator Properties

options: EnvironmentVariableMutatorOptions

type: EnvironmentVariableMutatorType

value: string

EnvironmentVariableMutatorOptions Properties

applyAtProcessCreation?: boolean

applyAtShellIntegration?: boolean

EnvironmentVariableMutatorType Enumeration Members

Replace: 1

Append: 2

Prepend: 3

EnvironmentVariableScope Properties

workspaceFolder?: WorkspaceFolder

EvaluatableExpression Constructors

new EvaluatableExpression(range: Range, expression?: string): EvaluatableExpression

Properties

expression?: string

range: Range

EvaluatableExpressionProvider Methods

provideEvaluatableExpression(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<EvaluatableExpression>

Event<T>

(listener: (e: T) => any, thisArgs?: any, disposables?: Disposable[]): Disposable

Parameter Description listener: (e: T) => any thisArgs?: any disposables?: Disposable[] Returns Description Disposable EventEmitter<T> Constructors

new EventEmitter<T>(): EventEmitter<T>

Properties

event: Event<T>

Methods

dispose(): void

Parameter Description Returns Description void

fire(data: T): void

Parameter Description data: T Returns Description void Extension<T> Properties

exports: T

extensionKind: ExtensionKind

extensionPath: string

extensionUri: Uri

id: string

isActive: boolean

packageJSON: any

Methods

activate(): Thenable<T>

Parameter Description Returns Description Thenable<T> ExtensionContext Properties

environmentVariableCollection: GlobalEnvironmentVariableCollection

extension: Extension<any>

extensionMode: ExtensionMode

extensionPath: string

extensionUri: Uri

globalState: Memento & {setKeysForSync}

globalStoragePath: string

globalStorageUri: Uri

languageModelAccessInformation: LanguageModelAccessInformation

logPath: string

logUri: Uri

secrets: SecretStorage

storagePath: string

storageUri: Uri

subscriptions: Array<{dispose}>

workspaceState: Memento

Methods

asAbsolutePath(relativePath: string): string

Parameter Description relativePath: string Returns Description string ExtensionKind Enumeration Members

UI: 1

Workspace: 2

ExtensionMode Enumeration Members

Production: 1

Development: 2

Test: 3

ExtensionTerminalOptions Properties

color?: ThemeColor

iconPath?: IconPath

isTransient?: boolean

location?: TerminalEditorLocationOptions | TerminalSplitLocationOptions | TerminalLocation

name: string

pty: Pseudoterminal

FileChangeEvent Properties

type: FileChangeType

uri: Uri

FileChangeType Enumeration Members

Changed: 1

Created: 2

Deleted: 3

FileCoverage Static

fromDetails(uri: Uri, details: readonly FileCoverageDetail[]): FileCoverage

Constructors

new FileCoverage(uri: Uri, statementCoverage: TestCoverageCount, branchCoverage?: TestCoverageCount, declarationCoverage?: TestCoverageCount, includesTests?: TestItem[]): FileCoverage

Properties

branchCoverage?: TestCoverageCount

declarationCoverage?: TestCoverageCount

includesTests?: TestItem[]

statementCoverage: TestCoverageCount

uri: Uri

FileCoverageDetail

FileCoverageDetail: StatementCoverage | DeclarationCoverage

FileCreateEvent Properties

files: readonly Uri[]

FileDecoration Constructors

new FileDecoration(badge?: string, tooltip?: string, color?: ThemeColor): FileDecoration

Properties

badge?: string

color?: ThemeColor

propagate?: boolean

tooltip?: string

FileDecorationProvider Events

onDidChangeFileDecorations?: Event<Uri | Uri[]>

Methods

provideFileDecoration(uri: Uri, token: CancellationToken): ProviderResult<FileDecoration>

FileDeleteEvent Properties

files: readonly Uri[]

FilePermission Enumeration Members

Readonly: 1

FileRenameEvent Properties

files: ReadonlyArray<{newUri: Uri, oldUri: Uri}>

FileStat Properties

ctime: number

mtime: number

permissions?: FilePermission

size: number

type: FileType

FileSystem Methods

copy(source: Uri, target: Uri, options?: {overwrite: boolean}): Thenable<void>

Parameter Description source: Uri target: Uri options?: {overwrite: boolean} Returns Description Thenable<void>

createDirectory(uri: Uri): Thenable<void>

Parameter Description uri: Uri Returns Description Thenable<void>

delete(uri: Uri, options?: {recursive: boolean, useTrash: boolean}): Thenable<void>

Parameter Description uri: Uri options?: {recursive: boolean, useTrash: boolean} Returns Description Thenable<void>

isWritableFileSystem(scheme: string): boolean

Parameter Description scheme: string Returns Description boolean

readDirectory(uri: Uri): Thenable<Array<[string, FileType]>>

Parameter Description uri: Uri Returns Description Thenable<Array<[string, FileType]>>

readFile(uri: Uri): Thenable<Uint8Array>

Parameter Description uri: Uri Returns Description Thenable<Uint8Array>

rename(source: Uri, target: Uri, options?: {overwrite: boolean}): Thenable<void>

Parameter Description source: Uri target: Uri options?: {overwrite: boolean} Returns Description Thenable<void>

stat(uri: Uri): Thenable<FileStat>

Parameter Description uri: Uri Returns Description Thenable<FileStat>

writeFile(uri: Uri, content: Uint8Array): Thenable<void>

Parameter Description uri: Uri content: Uint8Array Returns Description Thenable<void> FileSystemError Static

FileExists(messageOrUri?: string | Uri): FileSystemError

FileIsADirectory(messageOrUri?: string | Uri): FileSystemError

FileNotADirectory(messageOrUri?: string | Uri): FileSystemError

FileNotFound(messageOrUri?: string | Uri): FileSystemError

NoPermissions(messageOrUri?: string | Uri): FileSystemError

Unavailable(messageOrUri?: string | Uri): FileSystemError

Constructors

new FileSystemError(messageOrUri?: string | Uri): FileSystemError

Properties

code: string

FileSystemProvider Events

onDidChangeFile: Event<FileChangeEvent[]>

Methods

copy(source: Uri, destination: Uri, options: {overwrite: boolean}): void | Thenable<void>

Parameter Description source: Uri destination: Uri options: {overwrite: boolean} Returns Description void | Thenable<void>

createDirectory(uri: Uri): void | Thenable<void>

Parameter Description uri: Uri Returns Description void | Thenable<void>

delete(uri: Uri, options: {recursive: boolean}): void | Thenable<void>

Parameter Description uri: Uri options: {recursive: boolean} Returns Description void | Thenable<void>

readDirectory(uri: Uri): Array<[string, FileType]> | Thenable<Array<[string, FileType]>>

Parameter Description uri: Uri Returns Description Array<[string, FileType]> | Thenable<Array<[string, FileType]>>

readFile(uri: Uri): Uint8Array | Thenable<Uint8Array>

Parameter Description uri: Uri Returns Description Uint8Array | Thenable<Uint8Array>

rename(oldUri: Uri, newUri: Uri, options: {overwrite: boolean}): void | Thenable<void>

Parameter Description oldUri: Uri newUri: Uri options: {overwrite: boolean} Returns Description void | Thenable<void>

stat(uri: Uri): FileStat | Thenable<FileStat>

watch(uri: Uri, options: {excludes: readonly string[], recursive: boolean}): Disposable

Parameter Description uri: Uri options: {excludes: readonly string[], recursive: boolean} Returns Description Disposable

writeFile(uri: Uri, content: Uint8Array, options: {create: boolean, overwrite: boolean}): void | Thenable<void>

Parameter Description uri: Uri content: Uint8Array options: {create: boolean, overwrite: boolean} Returns Description void | Thenable<void> FileSystemWatcher Events

onDidChange: Event<Uri>

onDidCreate: Event<Uri>

onDidDelete: Event<Uri>

Properties

ignoreChangeEvents: boolean

ignoreCreateEvents: boolean

ignoreDeleteEvents: boolean

Methods

dispose(): any

Parameter Description Returns Description any FileType Enumeration Members

Unknown: 0

File: 1

Directory: 2

SymbolicLink: 64

FileWillCreateEvent Properties

files: readonly Uri[]

token: CancellationToken

Methods

waitUntil(thenable: Thenable<WorkspaceEdit>): void

Parameter Description thenable: Thenable<WorkspaceEdit> Returns Description void

waitUntil(thenable: Thenable<any>): void

Parameter Description thenable: Thenable<any> Returns Description void FileWillDeleteEvent Properties

files: readonly Uri[]

token: CancellationToken

Methods

waitUntil(thenable: Thenable<WorkspaceEdit>): void

Parameter Description thenable: Thenable<WorkspaceEdit> Returns Description void

waitUntil(thenable: Thenable<any>): void

Parameter Description thenable: Thenable<any> Returns Description void FileWillRenameEvent Properties

files: ReadonlyArray<{newUri: Uri, oldUri: Uri}>

token: CancellationToken

Methods

waitUntil(thenable: Thenable<WorkspaceEdit>): void

Parameter Description thenable: Thenable<WorkspaceEdit> Returns Description void

waitUntil(thenable: Thenable<any>): void

Parameter Description thenable: Thenable<any> Returns Description void FoldingContext FoldingRange Constructors

new FoldingRange(start: number, end: number, kind?: FoldingRangeKind): FoldingRange

Properties

end: number

kind?: FoldingRangeKind

start: number

FoldingRangeKind Enumeration Members

Comment: 1

Imports: 2

Region: 3

FoldingRangeProvider Events

onDidChangeFoldingRanges?: Event<void>

Methods

provideFoldingRanges(document: TextDocument, context: FoldingContext, token: CancellationToken): ProviderResult<FoldingRange[]>

FormattingOptions Properties

insertSpaces: boolean

tabSize: number

FunctionBreakpoint Constructors

new FunctionBreakpoint(functionName: string, enabled?: boolean, condition?: string, hitCondition?: string, logMessage?: string): FunctionBreakpoint

Parameter Description functionName: string enabled?: boolean condition?: string hitCondition?: string logMessage?: string Returns Description FunctionBreakpoint Properties

condition?: string

enabled: boolean

functionName: string

hitCondition?: string

id: string

logMessage?: string

GlobalEnvironmentVariableCollection Properties

description: string | MarkdownString

persistent: boolean

Methods

append(variable: string, value: string, options?: EnvironmentVariableMutatorOptions): void

clear(): void

Parameter Description Returns Description void

delete(variable: string): void

Parameter Description variable: string Returns Description void

forEach(callback: (variable: string, mutator: EnvironmentVariableMutator, collection: EnvironmentVariableCollection) => any, thisArg?: any): void

get(variable: string): EnvironmentVariableMutator

getScoped(scope: EnvironmentVariableScope): EnvironmentVariableCollection

prepend(variable: string, value: string, options?: EnvironmentVariableMutatorOptions): void

replace(variable: string, value: string, options?: EnvironmentVariableMutatorOptions): void

GlobPattern

GlobPattern: string | RelativePattern

Hover Constructors

new Hover(contents: MarkdownString | MarkedString | Array<MarkdownString | MarkedString>, range?: Range): Hover

Properties

contents: Array<MarkdownString | MarkedString>

range?: Range

HoverProvider Methods

provideHover(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<Hover>

IconPath

IconPath: Uri | {dark: Uri, light: Uri} | ThemeIcon

ImplementationProvider Methods

provideImplementation(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<Definition | LocationLink[]>

IndentAction Enumeration Members

None: 0

Indent: 1

IndentOutdent: 2

Outdent: 3

IndentationRule Properties

decreaseIndentPattern: RegExp

increaseIndentPattern: RegExp

indentNextLinePattern?: RegExp

unIndentedLinePattern?: RegExp

InlayHint Constructors

new InlayHint(position: Position, label: string | InlayHintLabelPart[], kind?: InlayHintKind): InlayHint

Properties

kind?: InlayHintKind

label: string | InlayHintLabelPart[]

paddingLeft?: boolean

paddingRight?: boolean

position: Position

textEdits?: TextEdit[]

tooltip?: string | MarkdownString

InlayHintKind Enumeration Members

Type: 1

Parameter: 2

InlayHintLabelPart Constructors

new InlayHintLabelPart(value: string): InlayHintLabelPart

Properties

command?: Command

location?: Location

tooltip?: string | MarkdownString

value: string

InlayHintsProvider<T> Events

onDidChangeInlayHints?: Event<void>

Methods

provideInlayHints(document: TextDocument, range: Range, token: CancellationToken): ProviderResult<T[]>

resolveInlayHint(hint: T, token: CancellationToken): ProviderResult<T>

InlineCompletionContext Properties

selectedCompletionInfo: SelectedCompletionInfo

triggerKind: InlineCompletionTriggerKind

InlineCompletionItem Constructors

new InlineCompletionItem(insertText: string | SnippetString, range?: Range, command?: Command): InlineCompletionItem

Properties

command?: Command

filterText?: string

insertText: string | SnippetString

range?: Range

InlineCompletionItemProvider Methods

provideInlineCompletionItems(document: TextDocument, position: Position, context: InlineCompletionContext, token: CancellationToken): ProviderResult<InlineCompletionList | InlineCompletionItem[]>

InlineCompletionList Constructors

new InlineCompletionList(items: InlineCompletionItem[]): InlineCompletionList

Properties

items: InlineCompletionItem[]

InlineCompletionTriggerKind Enumeration Members

Invoke: 0

Automatic: 1

InlineValue

InlineValue: InlineValueText | InlineValueVariableLookup | InlineValueEvaluatableExpression

InlineValueContext Properties

frameId: number

stoppedLocation: Range

InlineValueEvaluatableExpression Constructors

new InlineValueEvaluatableExpression(range: Range, expression?: string): InlineValueEvaluatableExpression

Properties

expression?: string

range: Range

InlineValuesProvider Events

onDidChangeInlineValues?: Event<void>

Methods

provideInlineValues(document: TextDocument, viewPort: Range, context: InlineValueContext, token: CancellationToken): ProviderResult<InlineValue[]>

InlineValueText Constructors

new InlineValueText(range: Range, text: string): InlineValueText

Properties

range: Range

text: string

InlineValueVariableLookup Constructors

new InlineValueVariableLookup(range: Range, variableName?: string, caseSensitiveLookup?: boolean): InlineValueVariableLookup

Properties

caseSensitiveLookup: boolean

range: Range

variableName?: string

InputBox Events

onDidAccept: Event<void>

onDidChangeValue: Event<string>

onDidHide: Event<void>

onDidTriggerButton: Event<QuickInputButton>

Properties

busy: boolean

buttons: readonly QuickInputButton[]

enabled: boolean

ignoreFocusOut: boolean

password: boolean

placeholder: string

prompt: string

step: number

title: string

totalSteps: number

validationMessage: string | InputBoxValidationMessage

value: string

valueSelection: readonly [number, number]

Methods

dispose(): void

Parameter Description Returns Description void

hide(): void

Parameter Description Returns Description void

show(): void

Parameter Description Returns Description void InputBoxOptions Properties

ignoreFocusOut?: boolean

password?: boolean

placeHolder?: string

prompt?: string

title?: string

value?: string

valueSelection?: [number, number]

Methods

validateInput(value: string): string | InputBoxValidationMessage | Thenable<string | InputBoxValidationMessage>

InputBoxValidationMessage Properties

message: string

severity: InputBoxValidationSeverity

InputBoxValidationSeverity Enumeration Members

Info: 1

Warning: 2

Error: 3

LanguageConfiguration Properties

__characterPairSupport?: {autoClosingPairs: Array<{close: string, notIn: string[], open: string}>}

Parameter Description autoClosingPairs: Array<{close: string, notIn: string[], open: string}>

__electricCharacterSupport?: {brackets: any, docComment: {close: string, lineStart: string, open: string, scope: string}}

Parameter Description brackets: any docComment: {close: string, lineStart: string, open: string, scope: string}

autoClosingPairs?: AutoClosingPair[]

brackets?: CharacterPair[]

comments?: CommentRule

indentationRules?: IndentationRule

onEnterRules?: OnEnterRule[]

wordPattern?: RegExp

LanguageModelAccessInformation Events

onDidChange: Event<void>

Methods

canSendRequest(chat: LanguageModelChat): boolean

LanguageModelChat Properties

family: string

id: string

maxInputTokens: number

name: string

vendor: string

version: string

Methods

countTokens(text: string | LanguageModelChatMessage, token?: CancellationToken): Thenable<number>

sendRequest(messages: LanguageModelChatMessage[], options?: LanguageModelChatRequestOptions, token?: CancellationToken): Thenable<LanguageModelChatResponse>

LanguageModelChatMessage Static

Assistant(content: string | Array<LanguageModelTextPart | LanguageModelToolCallPart>, name?: string): LanguageModelChatMessage

User(content: string | Array<LanguageModelTextPart | LanguageModelToolResultPart>, name?: string): LanguageModelChatMessage

Constructors

new LanguageModelChatMessage(role: LanguageModelChatMessageRole, content: string | Array<LanguageModelTextPart | LanguageModelToolResultPart | LanguageModelToolCallPart>, name?: string): LanguageModelChatMessage

Properties

content: Array<LanguageModelTextPart | LanguageModelToolResultPart | LanguageModelToolCallPart>

name: string

role: LanguageModelChatMessageRole

LanguageModelChatMessageRole Enumeration Members

User: 1

Assistant: 2

LanguageModelChatRequestOptions Properties

justification?: string

modelOptions?:

toolMode?: LanguageModelChatToolMode

tools?: LanguageModelChatTool[]

LanguageModelChatResponse Properties

stream: AsyncIterable<unknown>

text: AsyncIterable<string>

LanguageModelChatSelector Properties

family?: string

id?: string

vendor?: string

version?: string

LanguageModelChatTool Properties

description: string

inputSchema?: object

name: string

LanguageModelChatToolMode Enumeration Members

Auto: 1

Required: 2

LanguageModelError Static

Blocked(message?: string): LanguageModelError

NoPermissions(message?: string): LanguageModelError

NotFound(message?: string): LanguageModelError

Constructors

new LanguageModelError(message?: string): LanguageModelError

Properties

code: string

LanguageModelPromptTsxPart Constructors

new LanguageModelPromptTsxPart(value: unknown): LanguageModelPromptTsxPart

Properties

value: unknown

LanguageModelTextPart Constructors

new LanguageModelTextPart(value: string): LanguageModelTextPart

Properties

value: string

LanguageModelTool<T> Methods

invoke(options: LanguageModelToolInvocationOptions<T>, token: CancellationToken): ProviderResult<LanguageModelToolResult>

prepareInvocation(options: LanguageModelToolInvocationPrepareOptions<T>, token: CancellationToken): ProviderResult<PreparedToolInvocation>

LanguageModelToolCallPart Constructors

new LanguageModelToolCallPart(callId: string, name: string, input: object): LanguageModelToolCallPart

Properties

callId: string

input: object

name: string

LanguageModelToolConfirmationMessages Properties

message: string | MarkdownString

title: string

LanguageModelToolInformation Properties

description: string

inputSchema: object

name: string

tags: readonly string[]

LanguageModelToolInvocationOptions<T> Properties

input: T

tokenizationOptions?: LanguageModelToolTokenizationOptions

toolInvocationToken: undefined

LanguageModelToolInvocationPrepareOptions<T> Properties

input: T

LanguageModelToolResult Constructors

new LanguageModelToolResult(content: Array<LanguageModelTextPart | LanguageModelPromptTsxPart>): LanguageModelToolResult

Properties

content: unknown[]

LanguageModelToolResultPart Constructors

new LanguageModelToolResultPart(callId: string, content: unknown[]): LanguageModelToolResultPart

Properties

callId: string

content: unknown[]

LanguageModelToolTokenizationOptions Properties

tokenBudget: number

Methods

countTokens(text: string, token?: CancellationToken): Thenable<number>

Parameter Description text: string token?: CancellationToken Returns Description Thenable<number> LanguageStatusItem Properties

accessibilityInformation?: AccessibilityInformation

busy: boolean

command: Command

detail?: string

id: string

name: string

selector: DocumentSelector

severity: LanguageStatusSeverity

text: string

Methods

dispose(): void

Parameter Description Returns Description void LanguageStatusSeverity Enumeration Members

Information: 0

Warning: 1

Error: 2

LinkedEditingRangeProvider Methods

provideLinkedEditingRanges(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<LinkedEditingRanges>

LinkedEditingRanges Constructors

new LinkedEditingRanges(ranges: Range[], wordPattern?: RegExp): LinkedEditingRanges

Properties

ranges: Range[]

wordPattern: RegExp

Location Constructors

new Location(uri: Uri, rangeOrPosition: Range | Position): Location

Properties

range: Range

uri: Uri

LocationLink Properties

originSelectionRange?: Range

targetRange: Range

targetSelectionRange?: Range

targetUri: Uri

LogLevel Enumeration Members

Off: 0

Trace: 1

Debug: 2

Info: 3

Warning: 4

Error: 5

LogOutputChannel Events

onDidChangeLogLevel: Event<LogLevel>

Properties

logLevel: LogLevel

name: string

Methods

append(value: string): void

Parameter Description value: string Returns Description void

appendLine(value: string): void

Parameter Description value: string Returns Description void

clear(): void

Parameter Description Returns Description void

debug(message: string, ...args: any[]): void

Parameter Description message: string ...args: any[] Returns Description void

dispose(): void

Parameter Description Returns Description void

error(error: string | Error, ...args: any[]): void

Parameter Description error: string | Error ...args: any[] Returns Description void

hide(): void

Parameter Description Returns Description void

info(message: string, ...args: any[]): void

Parameter Description message: string ...args: any[] Returns Description void

replace(value: string): void

Parameter Description value: string Returns Description void

show(preserveFocus?: boolean): void

Parameter Description preserveFocus?: boolean Returns Description void

show(column?: ViewColumn, preserveFocus?: boolean): void

Parameter Description column?: ViewColumn preserveFocus?: boolean Returns Description void

trace(message: string, ...args: any[]): void

Parameter Description message: string ...args: any[] Returns Description void

warn(message: string, ...args: any[]): void

Parameter Description message: string ...args: any[] Returns Description void MarkdownString Constructors

new MarkdownString(value?: string, supportThemeIcons?: boolean): MarkdownString

Parameter Description value?: string supportThemeIcons?: boolean Returns Description MarkdownString Properties

baseUri?: Uri

isTrusted?: boolean | {enabledCommands: readonly string[]}

supportHtml?: boolean

supportThemeIcons?: boolean

value: string

Methods

appendCodeblock(value: string, language?: string): MarkdownString

Parameter Description value: string language?: string Returns Description MarkdownString

appendMarkdown(value: string): MarkdownString

Parameter Description value: string Returns Description MarkdownString

appendText(value: string): MarkdownString

Parameter Description value: string Returns Description MarkdownString MarkedString

MarkedString: string | {language: string, value: string}

McpHttpServerDefinition Constructors

new McpHttpServerDefinition(label: string, uri: Uri, headers?: Record<string, string>, version?: string): McpHttpServerDefinition

Parameter Description label: string uri: Uri headers?: Record<string, string> version?: string Returns Description McpHttpServerDefinition Properties

headers: Record<string, string>

label: string

uri: Uri

version?: string

McpServerDefinition

McpServerDefinition: McpStdioServerDefinition | McpHttpServerDefinition

McpServerDefinitionProvider<T> Events

onDidChangeMcpServerDefinitions?: Event<void>

Methods

provideMcpServerDefinitions(token: CancellationToken): ProviderResult<T[]>

resolveMcpServerDefinition(server: T, token: CancellationToken): ProviderResult<T>

McpStdioServerDefinition Constructors

new McpStdioServerDefinition(label: string, command: string, args?: string[], env?: Record<string, string | number>, version?: string): McpStdioServerDefinition

Parameter Description label: string command: string args?: string[] env?: Record<string, string | number> version?: string Returns Description McpStdioServerDefinition Properties

args: string[]

command: string

cwd?: Uri

env: Record<string, string | number>

label: string

version?: string

Memento Methods

get<T>(key: string): T

Parameter Description key: string Returns Description T

get<T>(key: string, defaultValue: T): T

Parameter Description key: string defaultValue: T Returns Description T

keys(): readonly string[]

Parameter Description Returns Description readonly string[]

update(key: string, value: any): Thenable<void>

Parameter Description key: string value: any Returns Description Thenable<void> MessageItem Properties

isCloseAffordance?: boolean

title: string

MessageOptions Properties

detail?: string

modal?: boolean

NotebookCell Properties

document: TextDocument

executionSummary: NotebookCellExecutionSummary

index: number

kind: NotebookCellKind

metadata:

notebook: NotebookDocument

outputs: readonly NotebookCellOutput[]

NotebookCellData Constructors

new NotebookCellData(kind: NotebookCellKind, value: string, languageId: string): NotebookCellData

Properties

executionSummary?: NotebookCellExecutionSummary

kind: NotebookCellKind

languageId: string

metadata?:

outputs?: NotebookCellOutput[]

value: string

NotebookCellExecution Properties

cell: NotebookCell

executionOrder: number

token: CancellationToken

Methods

appendOutput(out: NotebookCellOutput | readonly NotebookCellOutput[], cell?: NotebookCell): Thenable<void>

appendOutputItems(items: NotebookCellOutputItem | readonly NotebookCellOutputItem[], output: NotebookCellOutput): Thenable<void>

clearOutput(cell?: NotebookCell): Thenable<void>

Parameter Description cell?: NotebookCell Returns Description Thenable<void>

end(success: boolean, endTime?: number): void

Parameter Description success: boolean endTime?: number Returns Description void

replaceOutput(out: NotebookCellOutput | readonly NotebookCellOutput[], cell?: NotebookCell): Thenable<void>

replaceOutputItems(items: NotebookCellOutputItem | readonly NotebookCellOutputItem[], output: NotebookCellOutput): Thenable<void>

start(startTime?: number): void

Parameter Description startTime?: number Returns Description void NotebookCellExecutionSummary Properties

executionOrder?: number

success?: boolean

timing?: {endTime: number, startTime: number}

Parameter Description endTime: number startTime: number NotebookCellKind Enumeration Members

Markup: 1

Code: 2

NotebookCellOutput Constructors

new NotebookCellOutput(items: NotebookCellOutputItem[], metadata?: ): NotebookCellOutput

Properties

items: NotebookCellOutputItem[]

metadata?:

NotebookCellOutputItem Static

error(value: Error): NotebookCellOutputItem

json(value: any, mime?: string): NotebookCellOutputItem

stderr(value: string): NotebookCellOutputItem

stdout(value: string): NotebookCellOutputItem

text(value: string, mime?: string): NotebookCellOutputItem

Constructors

new NotebookCellOutputItem(data: Uint8Array, mime: string): NotebookCellOutputItem

Properties

data: Uint8Array

mime: string

NotebookCellStatusBarAlignment Enumeration Members

Left: 1

Right: 2

NotebookCellStatusBarItem Constructors

new NotebookCellStatusBarItem(text: string, alignment: NotebookCellStatusBarAlignment): NotebookCellStatusBarItem

Properties

accessibilityInformation?: AccessibilityInformation

alignment: NotebookCellStatusBarAlignment

command?: string | Command

priority?: number

text: string

tooltip?: string

NotebookCellStatusBarItemProvider Events

onDidChangeCellStatusBarItems?: Event<void>

Methods

provideCellStatusBarItems(cell: NotebookCell, token: CancellationToken): ProviderResult<NotebookCellStatusBarItem | NotebookCellStatusBarItem[]>

NotebookController Events

onDidChangeSelectedNotebooks: Event<{notebook: NotebookDocument, selected: boolean}>

Properties

description?: string

detail?: string

executeHandler: (cells: NotebookCell[], notebook: NotebookDocument, controller: NotebookController) => void | Thenable<void>

id: string

interruptHandler?: (notebook: NotebookDocument) => void | Thenable<void>

Parameter Description notebook: NotebookDocument Returns Description void | Thenable<void>

label: string

notebookType: string

supportedLanguages?: string[]

supportsExecutionOrder?: boolean

Methods

createNotebookCellExecution(cell: NotebookCell): NotebookCellExecution

dispose(): void

Parameter Description Returns Description void

updateNotebookAffinity(notebook: NotebookDocument, affinity: NotebookControllerAffinity): void

NotebookControllerAffinity Enumeration Members

Default: 1

Preferred: 2

NotebookData Constructors

new NotebookData(cells: NotebookCellData[]): NotebookData

Properties

cells: NotebookCellData[]

metadata?:

NotebookDocument Properties

cellCount: number

isClosed: boolean

isDirty: boolean

isUntitled: boolean

metadata:

notebookType: string

uri: Uri

version: number

Methods

cellAt(index: number): NotebookCell

Parameter Description index: number Returns Description NotebookCell

getCells(range?: NotebookRange): NotebookCell[]

save(): Thenable<boolean>

Parameter Description Returns Description Thenable<boolean> NotebookDocumentCellChange Properties

cell: NotebookCell

document: TextDocument

executionSummary: NotebookCellExecutionSummary

metadata:

outputs: readonly NotebookCellOutput[]

NotebookDocumentChangeEvent Properties

cellChanges: readonly NotebookDocumentCellChange[]

contentChanges: readonly NotebookDocumentContentChange[]

metadata:

notebook: NotebookDocument

NotebookDocumentContentChange Properties

addedCells: readonly NotebookCell[]

range: NotebookRange

removedCells: readonly NotebookCell[]

NotebookDocumentContentOptions Properties

transientCellMetadata?:

transientDocumentMetadata?:

transientOutputs?: boolean

NotebookDocumentShowOptions Properties

preserveFocus?: boolean

preview?: boolean

selections?: readonly NotebookRange[]

viewColumn?: ViewColumn

NotebookDocumentWillSaveEvent Properties

notebook: NotebookDocument

reason: TextDocumentSaveReason

token: CancellationToken

Methods

waitUntil(thenable: Thenable<WorkspaceEdit>): void

Parameter Description thenable: Thenable<WorkspaceEdit> Returns Description void

waitUntil(thenable: Thenable<any>): void

Parameter Description thenable: Thenable<any> Returns Description void NotebookEdit Static

deleteCells(range: NotebookRange): NotebookEdit

insertCells(index: number, newCells: NotebookCellData[]): NotebookEdit

replaceCells(range: NotebookRange, newCells: NotebookCellData[]): NotebookEdit

updateCellMetadata(index: number, newCellMetadata: ): NotebookEdit

Parameter Description index: number newCellMetadata: Returns Description NotebookEdit

updateNotebookMetadata(newNotebookMetadata: ): NotebookEdit

Parameter Description newNotebookMetadata: Returns Description NotebookEdit Constructors

new NotebookEdit(range: NotebookRange, newCells: NotebookCellData[]): NotebookEdit

Properties

newCellMetadata?:

newCells: NotebookCellData[]

newNotebookMetadata?:

range: NotebookRange

NotebookEditor Properties

notebook: NotebookDocument

selection: NotebookRange

selections: readonly NotebookRange[]

viewColumn?: ViewColumn

visibleRanges: readonly NotebookRange[]

Methods

revealRange(range: NotebookRange, revealType?: NotebookEditorRevealType): void

NotebookEditorRevealType Enumeration Members

Default: 0

InCenter: 1

InCenterIfOutsideViewport: 2

AtTop: 3

NotebookEditorSelectionChangeEvent Properties

notebookEditor: NotebookEditor

selections: readonly NotebookRange[]

NotebookEditorVisibleRangesChangeEvent Properties

notebookEditor: NotebookEditor

visibleRanges: readonly NotebookRange[]

NotebookRange Constructors

new NotebookRange(start: number, end: number): NotebookRange

Parameter Description start: number end: number Returns Description NotebookRange Properties

end: number

isEmpty: boolean

start: number

Methods

with(change: {end: number, start: number}): NotebookRange

Parameter Description change: {end: number, start: number} Returns Description NotebookRange NotebookRendererMessaging Events

onDidReceiveMessage: Event<{editor: NotebookEditor, message: any}>

Methods

postMessage(message: any, editor?: NotebookEditor): Thenable<boolean>

Parameter Description message: any editor?: NotebookEditor Returns Description Thenable<boolean> NotebookSerializer Methods

deserializeNotebook(content: Uint8Array, token: CancellationToken): NotebookData | Thenable<NotebookData>

serializeNotebook(data: NotebookData, token: CancellationToken): Uint8Array | Thenable<Uint8Array>

OnEnterRule Properties

action: EnterAction

afterText?: RegExp

beforeText: RegExp

previousLineText?: RegExp

OnTypeFormattingEditProvider Methods

provideOnTypeFormattingEdits(document: TextDocument, position: Position, ch: string, options: FormattingOptions, token: CancellationToken): ProviderResult<TextEdit[]>

OpenDialogOptions Properties

canSelectFiles?: boolean

canSelectFolders?: boolean

canSelectMany?: boolean

defaultUri?: Uri

filters?:

openLabel?: string

title?: string

OutputChannel Properties

name: string

Methods

append(value: string): void

Parameter Description value: string Returns Description void

appendLine(value: string): void

Parameter Description value: string Returns Description void

clear(): void

Parameter Description Returns Description void

dispose(): void

Parameter Description Returns Description void

hide(): void

Parameter Description Returns Description void

replace(value: string): void

Parameter Description value: string Returns Description void

show(preserveFocus?: boolean): void

Parameter Description preserveFocus?: boolean Returns Description void

show(column?: ViewColumn, preserveFocus?: boolean): void

Parameter Description column?: ViewColumn preserveFocus?: boolean Returns Description void OverviewRulerLane Enumeration Members

Left: 1

Center: 2

Right: 4

Full: 7

ParameterInformation Constructors

new ParameterInformation(label: string | [number, number], documentation?: string | MarkdownString): ParameterInformation

Properties

documentation?: string | MarkdownString

label: string | [number, number]

Position Constructors

new Position(line: number, character: number): Position

Parameter Description line: number character: number Returns Description Position Properties

character: number

line: number

Methods

compareTo(other: Position): number

Parameter Description other: Position Returns Description number

isAfter(other: Position): boolean

Parameter Description other: Position Returns Description boolean

isAfterOrEqual(other: Position): boolean

Parameter Description other: Position Returns Description boolean

isBefore(other: Position): boolean

Parameter Description other: Position Returns Description boolean

isBeforeOrEqual(other: Position): boolean

Parameter Description other: Position Returns Description boolean

isEqual(other: Position): boolean

Parameter Description other: Position Returns Description boolean

translate(lineDelta?: number, characterDelta?: number): Position

Parameter Description lineDelta?: number characterDelta?: number Returns Description Position

translate(change: {characterDelta: number, lineDelta: number}): Position

Parameter Description change: {characterDelta: number, lineDelta: number} Returns Description Position

with(line?: number, character?: number): Position

Parameter Description line?: number character?: number Returns Description Position

with(change: {character: number, line: number}): Position

Parameter Description change: {character: number, line: number} Returns Description Position PreparedToolInvocation Properties

confirmationMessages?: LanguageModelToolConfirmationMessages

invocationMessage?: string | MarkdownString

ProcessExecution Constructors

new ProcessExecution(process: string, options?: ProcessExecutionOptions): ProcessExecution

new ProcessExecution(process: string, args: string[], options?: ProcessExecutionOptions): ProcessExecution

Properties

args: string[]

options?: ProcessExecutionOptions

process: string

ProcessExecutionOptions Properties

cwd?: string

env?:

Progress<T> Methods

report(value: T): void

Parameter Description value: T Returns Description void ProgressLocation Enumeration Members

SourceControl: 1

Window: 10

Notification: 15

ProgressOptions Properties

cancellable?: boolean

location: ProgressLocation | {viewId: string}

title?: string

ProviderResult<T>

ProviderResult: T | undefined | null | Thenable<T | undefined | null>

Pseudoterminal Events

onDidChangeName?: Event<string>

onDidClose?: Event<number | void>

onDidOverrideDimensions?: Event<TerminalDimensions>

onDidWrite: Event<string>

Methods

close(): void

Parameter Description Returns Description void

handleInput(data: string): void

Parameter Description data: string Returns Description void

open(initialDimensions: TerminalDimensions): void

setDimensions(dimensions: TerminalDimensions): void

QuickDiffProvider Methods

provideOriginalResource(uri: Uri, token: CancellationToken): ProviderResult<Uri>

QuickInput Events

onDidHide: Event<void>

Properties

busy: boolean

enabled: boolean

ignoreFocusOut: boolean

step: number

title: string

totalSteps: number

Methods

dispose(): void

Parameter Description Returns Description void

hide(): void

Parameter Description Returns Description void

show(): void

Parameter Description Returns Description void QuickInputButton Properties

iconPath: IconPath

tooltip?: string

QuickInputButtons Static

Back: QuickInputButton

QuickPick<T> Events

onDidAccept: Event<void>

onDidChangeActive: Event<readonly T[]>

onDidChangeSelection: Event<readonly T[]>

onDidChangeValue: Event<string>

onDidHide: Event<void>

onDidTriggerButton: Event<QuickInputButton>

onDidTriggerItemButton: Event<QuickPickItemButtonEvent<T>>

Properties

activeItems: readonly T[]

busy: boolean

buttons: readonly QuickInputButton[]

canSelectMany: boolean

enabled: boolean

ignoreFocusOut: boolean

items: readonly T[]

keepScrollPosition?: boolean

matchOnDescription: boolean

matchOnDetail: boolean

placeholder: string

selectedItems: readonly T[]

step: number

title: string

totalSteps: number

value: string

Methods

dispose(): void

Parameter Description Returns Description void

hide(): void

Parameter Description Returns Description void

show(): void

Parameter Description Returns Description void QuickPickItem Properties

alwaysShow?: boolean

buttons?: readonly QuickInputButton[]

description?: string

detail?: string

iconPath?: IconPath

kind?: QuickPickItemKind

label: string

picked?: boolean

QuickPickItemButtonEvent<T> Properties

button: QuickInputButton

item: T

QuickPickItemKind Enumeration Members

Separator: -1

Default: 0

QuickPickOptions Events

onDidSelectItem(item: string | QuickPickItem): any

Parameter Description item: string | QuickPickItem Returns Description any Properties

canPickMany?: boolean

ignoreFocusOut?: boolean

matchOnDescription?: boolean

matchOnDetail?: boolean

placeHolder?: string

title?: string

Range Constructors

new Range(start: Position, end: Position): Range

new Range(startLine: number, startCharacter: number, endLine: number, endCharacter: number): Range

Parameter Description startLine: number startCharacter: number endLine: number endCharacter: number Returns Description Range Properties

end: Position

isEmpty: boolean

isSingleLine: boolean

start: Position

Methods

contains(positionOrRange: Range | Position): boolean

Parameter Description positionOrRange: Range | Position Returns Description boolean

intersection(range: Range): Range

Parameter Description range: Range Returns Description Range

isEqual(other: Range): boolean

Parameter Description other: Range Returns Description boolean

union(other: Range): Range

Parameter Description other: Range Returns Description Range

with(start?: Position, end?: Position): Range

with(change: {end: Position, start: Position}): Range

ReferenceContext Properties

includeDeclaration: boolean

ReferenceProvider Methods

provideReferences(document: TextDocument, position: Position, context: ReferenceContext, token: CancellationToken): ProviderResult<Location[]>

RelativePattern Constructors

new RelativePattern(base: string | Uri | WorkspaceFolder, pattern: string): RelativePattern

Properties

base: string

baseUri: Uri

pattern: string

RenameProvider Methods

prepareRename(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<Range | {placeholder: string, range: Range}>

provideRenameEdits(document: TextDocument, position: Position, newName: string, token: CancellationToken): ProviderResult<WorkspaceEdit>

RunOptions Properties

reevaluateOnRerun?: boolean

SaveDialogOptions Properties

defaultUri?: Uri

filters?:

saveLabel?: string

title?: string

SecretStorage Events

onDidChange: Event<SecretStorageChangeEvent>

Methods

delete(key: string): Thenable<void>

Parameter Description key: string Returns Description Thenable<void>

get(key: string): Thenable<string>

Parameter Description key: string Returns Description Thenable<string>

store(key: string, value: string): Thenable<void>

Parameter Description key: string value: string Returns Description Thenable<void> SecretStorageChangeEvent Properties

key: string

SelectedCompletionInfo Properties

range: Range

text: string

Selection Constructors

new Selection(anchor: Position, active: Position): Selection

new Selection(anchorLine: number, anchorCharacter: number, activeLine: number, activeCharacter: number): Selection

Parameter Description anchorLine: number anchorCharacter: number activeLine: number activeCharacter: number Returns Description Selection Properties

active: Position

anchor: Position

end: Position

isEmpty: boolean

isReversed: boolean

isSingleLine: boolean

start: Position

Methods

contains(positionOrRange: Range | Position): boolean

Parameter Description positionOrRange: Range | Position Returns Description boolean

intersection(range: Range): Range

Parameter Description range: Range Returns Description Range

isEqual(other: Range): boolean

Parameter Description other: Range Returns Description boolean

union(other: Range): Range

Parameter Description other: Range Returns Description Range

with(start?: Position, end?: Position): Range

with(change: {end: Position, start: Position}): Range

SelectionRange Constructors

new SelectionRange(range: Range, parent?: SelectionRange): SelectionRange

Properties

parent?: SelectionRange

range: Range

SelectionRangeProvider Methods

provideSelectionRanges(document: TextDocument, positions: readonly Position[], token: CancellationToken): ProviderResult<SelectionRange[]>

SemanticTokens Constructors

new SemanticTokens(data: Uint32Array, resultId?: string): SemanticTokens

Parameter Description data: Uint32Array resultId?: string Returns Description SemanticTokens Properties

data: Uint32Array

resultId: string

SemanticTokensBuilder Constructors

new SemanticTokensBuilder(legend?: SemanticTokensLegend): SemanticTokensBuilder

Methods

build(resultId?: string): SemanticTokens

Parameter Description resultId?: string Returns Description SemanticTokens

push(line: number, char: number, length: number, tokenType: number, tokenModifiers?: number): void

Parameter Description line: number char: number length: number tokenType: number tokenModifiers?: number Returns Description void

push(range: Range, tokenType: string, tokenModifiers?: readonly string[]): void

Parameter Description range: Range tokenType: string tokenModifiers?: readonly string[] Returns Description void SemanticTokensEdit Constructors

new SemanticTokensEdit(start: number, deleteCount: number, data?: Uint32Array): SemanticTokensEdit

Parameter Description start: number deleteCount: number data?: Uint32Array Returns Description SemanticTokensEdit Properties

data: Uint32Array

deleteCount: number

start: number

SemanticTokensEdits Constructors

new SemanticTokensEdits(edits: SemanticTokensEdit[], resultId?: string): SemanticTokensEdits

Properties

edits: SemanticTokensEdit[]

resultId: string

SemanticTokensLegend Constructors

new SemanticTokensLegend(tokenTypes: string[], tokenModifiers?: string[]): SemanticTokensLegend

Parameter Description tokenTypes: string[] tokenModifiers?: string[] Returns Description SemanticTokensLegend Properties

tokenModifiers: string[]

tokenTypes: string[]

ShellExecution Constructors

new ShellExecution(commandLine: string, options?: ShellExecutionOptions): ShellExecution

new ShellExecution(command: string | ShellQuotedString, args: Array<string | ShellQuotedString>, options?: ShellExecutionOptions): ShellExecution

Properties

args: Array<string | ShellQuotedString>

command: string | ShellQuotedString

commandLine: string

options?: ShellExecutionOptions

ShellExecutionOptions Properties

cwd?: string

env?:

executable?: string

shellArgs?: string[]

shellQuoting?: ShellQuotingOptions

ShellQuotedString Properties

quoting: ShellQuoting

value: string

ShellQuoting Enumeration Members

Escape: 1

Strong: 2

Weak: 3

ShellQuotingOptions Properties

escape?: string | {charsToEscape: string, escapeChar: string}

strong?: string

weak?: string

SignatureHelp Constructors

new SignatureHelp(): SignatureHelp

Properties

activeParameter: number

activeSignature: number

signatures: SignatureInformation[]

SignatureHelpContext Properties

activeSignatureHelp: SignatureHelp

isRetrigger: boolean

triggerCharacter: string

triggerKind: SignatureHelpTriggerKind

SignatureHelpProvider Methods

provideSignatureHelp(document: TextDocument, position: Position, token: CancellationToken, context: SignatureHelpContext): ProviderResult<SignatureHelp>

SignatureHelpProviderMetadata Properties

retriggerCharacters: readonly string[]

triggerCharacters: readonly string[]

SignatureHelpTriggerKind Enumeration Members

Invoke: 1

TriggerCharacter: 2

ContentChange: 3

SignatureInformation Constructors

new SignatureInformation(label: string, documentation?: string | MarkdownString): SignatureInformation

Properties

activeParameter?: number

documentation?: string | MarkdownString

label: string

parameters: ParameterInformation[]

SnippetString Constructors

new SnippetString(value?: string): SnippetString

Parameter Description value?: string Returns Description SnippetString Properties

value: string

Methods

appendChoice(values: readonly string[], number?: number): SnippetString

Parameter Description values: readonly string[] number?: number Returns Description SnippetString

appendPlaceholder(value: string | (snippet: SnippetString) => any, number?: number): SnippetString

appendTabstop(number?: number): SnippetString

Parameter Description number?: number Returns Description SnippetString

appendText(string: string): SnippetString

Parameter Description string: string Returns Description SnippetString

appendVariable(name: string, defaultValue: string | (snippet: SnippetString) => any): SnippetString

SnippetTextEdit Static

insert(position: Position, snippet: SnippetString): SnippetTextEdit

replace(range: Range, snippet: SnippetString): SnippetTextEdit

Constructors

new SnippetTextEdit(range: Range, snippet: SnippetString): SnippetTextEdit

Properties

keepWhitespace?: boolean

range: Range

snippet: SnippetString

SourceBreakpoint Constructors

new SourceBreakpoint(location: Location, enabled?: boolean, condition?: string, hitCondition?: string, logMessage?: string): SourceBreakpoint

Parameter Description location: Location enabled?: boolean condition?: string hitCondition?: string logMessage?: string Returns Description SourceBreakpoint Properties

condition?: string

enabled: boolean

hitCondition?: string

id: string

location: Location

logMessage?: string

SourceControl Properties

acceptInputCommand?: Command

commitTemplate?: string

count?: number

id: string

inputBox: SourceControlInputBox

label: string

quickDiffProvider?: QuickDiffProvider

rootUri: Uri

statusBarCommands?: Command[]

Methods

createResourceGroup(id: string, label: string): SourceControlResourceGroup

dispose(): void

Parameter Description Returns Description void SourceControlInputBox Properties

enabled: boolean

placeholder: string

value: string

visible: boolean

SourceControlResourceDecorations Properties

dark?: SourceControlResourceThemableDecorations

faded?: boolean

iconPath?: string | Uri | ThemeIcon

light?: SourceControlResourceThemableDecorations

strikeThrough?: boolean

tooltip?: string

SourceControlResourceGroup Properties

contextValue?: string

hideWhenEmpty?: boolean

id: string

label: string

resourceStates: SourceControlResourceState[]

Methods

dispose(): void

Parameter Description Returns Description void SourceControlResourceState Properties

command?: Command

contextValue?: string

decorations?: SourceControlResourceDecorations

resourceUri: Uri

SourceControlResourceThemableDecorations Properties

iconPath?: string | Uri | ThemeIcon

StatementCoverage Constructors

new StatementCoverage(executed: number | boolean, location: Range | Position, branches?: BranchCoverage[]): StatementCoverage

Properties

branches: BranchCoverage[]

executed: number | boolean

location: Range | Position

StatusBarAlignment Enumeration Members

Left: 1

Right: 2

StatusBarItem Properties

accessibilityInformation: AccessibilityInformation

alignment: StatusBarAlignment

backgroundColor: ThemeColor

color: string | ThemeColor

command: string | Command

id: string

name: string

priority: number

text: string

tooltip: string | MarkdownString

Methods

dispose(): void

Parameter Description Returns Description void

hide(): void

Parameter Description Returns Description void

show(): void

Parameter Description Returns Description void SymbolInformation Constructors

new SymbolInformation(name: string, kind: SymbolKind, containerName: string, location: Location): SymbolInformation

new SymbolInformation(name: string, kind: SymbolKind, range: Range, uri?: Uri, containerName?: string): SymbolInformation

Properties

containerName: string

kind: SymbolKind

location: Location

name: string

tags?: readonly SymbolTag[]

SymbolKind Enumeration Members

File: 0

Module: 1

Namespace: 2

Package: 3

Class: 4

Method: 5

Property: 6

Field: 7

Constructor: 8

Enum: 9

Interface: 10

Function: 11

Variable: 12

Constant: 13

String: 14

Number: 15

Boolean: 16

Array: 17

Object: 18

Key: 19

Null: 20

EnumMember: 21

Struct: 22

Event: 23

Operator: 24

TypeParameter: 25

SymbolTag Enumeration Members

Deprecated: 1

SyntaxTokenType Enumeration Members

Other: 0

Comment: 1

String: 2

RegEx: 3

Tab Properties

group: TabGroup

input: unknown

isActive: boolean

isDirty: boolean

isPinned: boolean

isPreview: boolean

label: string

TabChangeEvent Properties

changed: readonly Tab[]

closed: readonly Tab[]

opened: readonly Tab[]

TabGroup Properties

activeTab: Tab

isActive: boolean

tabs: readonly Tab[]

viewColumn: ViewColumn

TabGroupChangeEvent Properties

changed: readonly TabGroup[]

closed: readonly TabGroup[]

opened: readonly TabGroup[]

TabGroups Events

onDidChangeTabGroups: Event<TabGroupChangeEvent>

onDidChangeTabs: Event<TabChangeEvent>

Properties

activeTabGroup: TabGroup

all: readonly TabGroup[]

Methods

close(tab: Tab | readonly Tab[], preserveFocus?: boolean): Thenable<boolean>

Parameter Description tab: Tab | readonly Tab[] preserveFocus?: boolean Returns Description Thenable<boolean>

close(tabGroup: TabGroup | readonly TabGroup[], preserveFocus?: boolean): Thenable<boolean>

Parameter Description tabGroup: TabGroup | readonly TabGroup[] preserveFocus?: boolean Returns Description Thenable<boolean> TabInputCustom Constructors

new TabInputCustom(uri: Uri, viewType: string): TabInputCustom

Properties

uri: Uri

viewType: string

TabInputNotebook Constructors

new TabInputNotebook(uri: Uri, notebookType: string): TabInputNotebook

Properties

notebookType: string

uri: Uri

TabInputNotebookDiff Constructors

new TabInputNotebookDiff(original: Uri, modified: Uri, notebookType: string): TabInputNotebookDiff

Properties

modified: Uri

notebookType: string

original: Uri

TabInputTerminal Constructors

new TabInputTerminal(): TabInputTerminal

TabInputText Constructors

new TabInputText(uri: Uri): TabInputText

Properties

uri: Uri

TabInputTextDiff Constructors

new TabInputTextDiff(original: Uri, modified: Uri): TabInputTextDiff

Properties

modified: Uri

original: Uri

TabInputWebview Constructors

new TabInputWebview(viewType: string): TabInputWebview

Properties

viewType: string

Task Constructors

new Task(taskDefinition: TaskDefinition, scope: WorkspaceFolder | Global | Workspace, name: string, source: string, execution?: ProcessExecution | ShellExecution | CustomExecution, problemMatchers?: string | string[]): Task

new Task(taskDefinition: TaskDefinition, name: string, source: string, execution?: ProcessExecution | ShellExecution, problemMatchers?: string | string[]): Task

Properties

definition: TaskDefinition

detail?: string

execution?: ProcessExecution | ShellExecution | CustomExecution

group?: TaskGroup

isBackground: boolean

name: string

presentationOptions: TaskPresentationOptions

problemMatchers: string[]

runOptions: RunOptions

scope: WorkspaceFolder | Global | Workspace

source: string

TaskDefinition Properties

type: string

TaskEndEvent Properties

execution: TaskExecution

TaskExecution Properties

task: Task

Methods

terminate(): void

Parameter Description Returns Description void TaskFilter Properties

type?: string

version?: string

TaskGroup Static

Build: TaskGroup

Clean: TaskGroup

Rebuild: TaskGroup

Test: TaskGroup

Constructors

new TaskGroup(id: string, label: string): TaskGroup

Parameter Description id: string label: string Returns Description TaskGroup Properties

id: string

isDefault: boolean

TaskPanelKind Enumeration Members

Shared: 1

Dedicated: 2

New: 3

TaskPresentationOptions Properties

clear?: boolean

close?: boolean

echo?: boolean

focus?: boolean

panel?: TaskPanelKind

reveal?: TaskRevealKind

showReuseMessage?: boolean

TaskProcessEndEvent Properties

execution: TaskExecution

exitCode: number

TaskProcessStartEvent Properties

execution: TaskExecution

processId: number

TaskProvider<T> Methods

provideTasks(token: CancellationToken): ProviderResult<T[]>

resolveTask(task: T, token: CancellationToken): ProviderResult<T>

TaskRevealKind Enumeration Members

Always: 1

Silent: 2

Never: 3

TaskScope Enumeration Members

Global: 1

Workspace: 2

TaskStartEvent Properties

execution: TaskExecution

TelemetryLogger Events

onDidChangeEnableStates: Event<TelemetryLogger>

Properties

isErrorsEnabled: boolean

isUsageEnabled: boolean

Methods

dispose(): void

Parameter Description Returns Description void

logError(eventName: string, data?: Record<string, any>): void

Parameter Description eventName: string data?: Record<string, any> Returns Description void

logError(error: Error, data?: Record<string, any>): void

Parameter Description error: Error data?: Record<string, any> Returns Description void

logUsage(eventName: string, data?: Record<string, any>): void

Parameter Description eventName: string data?: Record<string, any> Returns Description void TelemetryLoggerOptions Properties

additionalCommonProperties?: Record<string, any>

ignoreBuiltInCommonProperties?: boolean

ignoreUnhandledErrors?: boolean

TelemetrySender Methods

flush(): void | Thenable<void>

Parameter Description Returns Description void | Thenable<void>

sendErrorData(error: Error, data?: Record<string, any>): void

Parameter Description error: Error data?: Record<string, any> Returns Description void

sendEventData(eventName: string, data?: Record<string, any>): void

Parameter Description eventName: string data?: Record<string, any> Returns Description void TelemetryTrustedValue<T> Constructors

new TelemetryTrustedValue<T>(value: T): TelemetryTrustedValue<T>

Properties

value: T

Terminal Properties

creationOptions: Readonly<TerminalOptions | ExtensionTerminalOptions>

exitStatus: TerminalExitStatus

name: string

processId: Thenable<number>

shellIntegration: TerminalShellIntegration

state: TerminalState

Methods

dispose(): void

Parameter Description Returns Description void

hide(): void

Parameter Description Returns Description void

sendText(text: string, shouldExecute?: boolean): void

Parameter Description text: string shouldExecute?: boolean Returns Description void

show(preserveFocus?: boolean): void

Parameter Description preserveFocus?: boolean Returns Description void TerminalDimensions Properties

columns: number

rows: number

TerminalEditorLocationOptions Properties

preserveFocus?: boolean

viewColumn: ViewColumn

TerminalExitReason Enumeration Members

Unknown: 0

Shutdown: 1

Process: 2

User: 3

Extension: 4

TerminalExitStatus Properties

code: number

reason: TerminalExitReason

TerminalLink Constructors

new TerminalLink(startIndex: number, length: number, tooltip?: string): TerminalLink

Parameter Description startIndex: number length: number tooltip?: string Returns Description TerminalLink Properties

length: number

startIndex: number

tooltip?: string

TerminalLinkContext Properties

line: string

terminal: Terminal

TerminalLinkProvider<T> Methods

handleTerminalLink(link: T): ProviderResult<void>

Parameter Description link: T Returns Description ProviderResult<void>

provideTerminalLinks(context: TerminalLinkContext, token: CancellationToken): ProviderResult<T[]>

TerminalLocation Enumeration Members

Panel: 1

Editor: 2

TerminalOptions Properties

color?: ThemeColor

cwd?: string | Uri

env?:

hideFromUser?: boolean

iconPath?: IconPath

isTransient?: boolean

location?: TerminalEditorLocationOptions | TerminalSplitLocationOptions | TerminalLocation

message?: string

name?: string

shellArgs?: string | string[]

shellPath?: string

strictEnv?: boolean

TerminalProfile Constructors

new TerminalProfile(options: TerminalOptions | ExtensionTerminalOptions): TerminalProfile

Properties

options: TerminalOptions | ExtensionTerminalOptions

TerminalProfileProvider Methods

provideTerminalProfile(token: CancellationToken): ProviderResult<TerminalProfile>

TerminalShellExecution Properties

commandLine: TerminalShellExecutionCommandLine

cwd: Uri

Methods

read(): AsyncIterable<string>

Parameter Description Returns Description AsyncIterable<string> TerminalShellExecutionCommandLine Properties

confidence: TerminalShellExecutionCommandLineConfidence

isTrusted: boolean

value: string

TerminalShellExecutionCommandLineConfidence Enumeration Members

Low: 0

Medium: 1

High: 2

TerminalShellExecutionEndEvent Properties

execution: TerminalShellExecution

exitCode: number

shellIntegration: TerminalShellIntegration

terminal: Terminal

TerminalShellExecutionStartEvent Properties

execution: TerminalShellExecution

shellIntegration: TerminalShellIntegration

terminal: Terminal

TerminalShellIntegration Properties

cwd: Uri

Methods

executeCommand(commandLine: string): TerminalShellExecution

executeCommand(executable: string, args: string[]): TerminalShellExecution

TerminalShellIntegrationChangeEvent Properties

shellIntegration: TerminalShellIntegration

terminal: Terminal

TerminalSplitLocationOptions Properties

parentTerminal: Terminal

TerminalState Properties

isInteractedWith: boolean

shell: string

TestController Properties

id: string

items: TestItemCollection

label: string

refreshHandler: (token: CancellationToken) => void | Thenable<void>

Parameter Description token: CancellationToken Returns Description void | Thenable<void>

resolveHandler?: (item: TestItem) => void | Thenable<void>

Parameter Description item: TestItem Returns Description void | Thenable<void> Methods

createRunProfile(label: string, kind: TestRunProfileKind, runHandler: (request: TestRunRequest, token: CancellationToken) => void | Thenable<void>, isDefault?: boolean, tag?: TestTag, supportsContinuousRun?: boolean): TestRunProfile

createTestItem(id: string, label: string, uri?: Uri): TestItem

Parameter Description id: string label: string uri?: Uri Returns Description TestItem

createTestRun(request: TestRunRequest, name?: string, persist?: boolean): TestRun

Parameter Description request: TestRunRequest name?: string persist?: boolean Returns Description TestRun

dispose(): void

Parameter Description Returns Description void

invalidateTestResults(items?: TestItem | readonly TestItem[]): void

Parameter Description items?: TestItem | readonly TestItem[] Returns Description void TestCoverageCount Constructors

new TestCoverageCount(covered: number, total: number): TestCoverageCount

Parameter Description covered: number total: number Returns Description TestCoverageCount Properties

covered: number

total: number

TestItem Properties

busy: boolean

canResolveChildren: boolean

children: TestItemCollection

description?: string

error: string | MarkdownString

id: string

label: string

parent: TestItem

range: Range

sortText?: string

tags: readonly TestTag[]

uri: Uri

TestItemCollection Properties

size: number

Methods

add(item: TestItem): void

Parameter Description item: TestItem Returns Description void

delete(itemId: string): void

Parameter Description itemId: string Returns Description void

forEach(callback: (item: TestItem, collection: TestItemCollection) => unknown, thisArg?: any): void

Parameter Description callback: (item: TestItem, collection: TestItemCollection) => unknown thisArg?: any Returns Description void

get(itemId: string): TestItem

Parameter Description itemId: string Returns Description TestItem

replace(items: readonly TestItem[]): void

Parameter Description items: readonly TestItem[] Returns Description void TestMessage Static

diff(message: string | MarkdownString, expected: string, actual: string): TestMessage

Constructors

new TestMessage(message: string | MarkdownString): TestMessage

Properties

actualOutput?: string

contextValue?: string

expectedOutput?: string

location?: Location

message: string | MarkdownString

stackTrace?: TestMessageStackFrame[]

TestMessageStackFrame Constructors

new TestMessageStackFrame(label: string, uri?: Uri, position?: Position): TestMessageStackFrame

Properties

label: string

position?: Position

uri?: Uri

TestRun Events

onDidDispose: Event<void>

Properties

isPersisted: boolean

name: string

token: CancellationToken

Methods

addCoverage(fileCoverage: FileCoverage): void

Parameter Description fileCoverage: FileCoverage Returns Description void

appendOutput(output: string, location?: Location, test?: TestItem): void

Parameter Description output: string location?: Location test?: TestItem Returns Description void

end(): void

Parameter Description Returns Description void

enqueued(test: TestItem): void

Parameter Description test: TestItem Returns Description void

errored(test: TestItem, message: TestMessage | readonly TestMessage[], duration?: number): void

failed(test: TestItem, message: TestMessage | readonly TestMessage[], duration?: number): void

passed(test: TestItem, duration?: number): void

Parameter Description test: TestItem duration?: number Returns Description void

skipped(test: TestItem): void

Parameter Description test: TestItem Returns Description void

started(test: TestItem): void

Parameter Description test: TestItem Returns Description void TestRunProfile Events

onDidChangeDefault: Event<boolean>

Properties

configureHandler: () => void

Parameter Description Returns Description void

isDefault: boolean

kind: TestRunProfileKind

label: string

loadDetailedCoverage?: (testRun: TestRun, fileCoverage: FileCoverage, token: CancellationToken) => Thenable<FileCoverageDetail[]>

loadDetailedCoverageForTest?: (testRun: TestRun, fileCoverage: FileCoverage, fromTestItem: TestItem, token: CancellationToken) => Thenable<FileCoverageDetail[]>

runHandler: (request: TestRunRequest, token: CancellationToken) => void | Thenable<void>

supportsContinuousRun: boolean

tag: TestTag

Methods

dispose(): void

Parameter Description Returns Description void TestRunProfileKind Enumeration Members

Run: 1

Debug: 2

Coverage: 3

TestRunRequest Constructors

new TestRunRequest(include?: readonly TestItem[], exclude?: readonly TestItem[], profile?: TestRunProfile, continuous?: boolean, preserveFocus?: boolean): TestRunRequest

Properties

continuous?: boolean

exclude: readonly TestItem[]

include: readonly TestItem[]

preserveFocus: boolean

profile: TestRunProfile

TestTag Constructors

new TestTag(id: string): TestTag

Parameter Description id: string Returns Description TestTag Properties

id: string

TextDocument Properties

encoding: string

eol: EndOfLine

fileName: string

isClosed: boolean

isDirty: boolean

isUntitled: boolean

languageId: string

lineCount: number

uri: Uri

version: number

Methods

getText(range?: Range): string

Parameter Description range?: Range Returns Description string

getWordRangeAtPosition(position: Position, regex?: RegExp): Range

Parameter Description position: Position regex?: RegExp Returns Description Range

lineAt(line: number): TextLine

Parameter Description line: number Returns Description TextLine

lineAt(position: Position): TextLine

offsetAt(position: Position): number

Parameter Description position: Position Returns Description number

positionAt(offset: number): Position

Parameter Description offset: number Returns Description Position

save(): Thenable<boolean>

Parameter Description Returns Description Thenable<boolean>

validatePosition(position: Position): Position

validateRange(range: Range): Range

Parameter Description range: Range Returns Description Range TextDocumentChangeEvent Properties

contentChanges: readonly TextDocumentContentChangeEvent[]

document: TextDocument

reason: TextDocumentChangeReason

TextDocumentChangeReason Enumeration Members

Undo: 1

Redo: 2

TextDocumentContentChangeEvent Properties

range: Range

rangeLength: number

rangeOffset: number

text: string

TextDocumentContentProvider Events

onDidChange?: Event<Uri>

Methods

provideTextDocumentContent(uri: Uri, token: CancellationToken): ProviderResult<string>

TextDocumentSaveReason Enumeration Members

Manual: 1

AfterDelay: 2

FocusOut: 3

TextDocumentShowOptions Properties

preserveFocus?: boolean

preview?: boolean

selection?: Range

viewColumn?: ViewColumn

TextDocumentWillSaveEvent Properties

document: TextDocument

reason: TextDocumentSaveReason

Methods

waitUntil(thenable: Thenable<readonly TextEdit[]>): void

Parameter Description thenable: Thenable<readonly TextEdit[]> Returns Description void

waitUntil(thenable: Thenable<any>): void

Parameter Description thenable: Thenable<any> Returns Description void TextEdit Static

delete(range: Range): TextEdit

insert(position: Position, newText: string): TextEdit

Parameter Description position: Position newText: string Returns Description TextEdit

replace(range: Range, newText: string): TextEdit

Parameter Description range: Range newText: string Returns Description TextEdit

setEndOfLine(eol: EndOfLine): TextEdit

Constructors

new TextEdit(range: Range, newText: string): TextEdit

Parameter Description range: Range newText: string Returns Description TextEdit Properties

newEol?: EndOfLine

newText: string

range: Range

TextEditor Properties

document: TextDocument

options: TextEditorOptions

selection: Selection

selections: readonly Selection[]

viewColumn: ViewColumn

visibleRanges: readonly Range[]

Methods

edit(callback: (editBuilder: TextEditorEdit) => void, options?: {undoStopAfter: boolean, undoStopBefore: boolean}): Thenable<boolean>

Parameter Description callback: (editBuilder: TextEditorEdit) => void options?: {undoStopAfter: boolean, undoStopBefore: boolean} Returns Description Thenable<boolean>

hide(): void

Parameter Description Returns Description void

insertSnippet(snippet: SnippetString, location?: Range | Position | readonly Range[] | readonly Position[], options?: {keepWhitespace: boolean, undoStopAfter: boolean, undoStopBefore: boolean}): Thenable<boolean>

Parameter Description snippet: SnippetString location?: Range | Position | readonly Range[] | readonly Position[] options?: {keepWhitespace: boolean, undoStopAfter: boolean, undoStopBefore: boolean} Returns Description Thenable<boolean>

revealRange(range: Range, revealType?: TextEditorRevealType): void

setDecorations(decorationType: TextEditorDecorationType, rangesOrOptions: readonly Range[] | readonly DecorationOptions[]): void

show(column?: ViewColumn): void

Parameter Description column?: ViewColumn Returns Description void TextEditorCursorStyle Enumeration Members

Line: 1

Block: 2

Underline: 3

LineThin: 4

BlockOutline: 5

UnderlineThin: 6

TextEditorDecorationType Properties

key: string

Methods

dispose(): void

Parameter Description Returns Description void TextEditorEdit Methods

delete(location: Range | Selection): void

Parameter Description location: Range | Selection Returns Description void

insert(location: Position, value: string): void

Parameter Description location: Position value: string Returns Description void

replace(location: Range | Position | Selection, value: string): void

setEndOfLine(endOfLine: EndOfLine): void

Parameter Description endOfLine: EndOfLine Returns Description void Enumeration Members

Off: 0

On: 1

Relative: 2

Interval: 3

TextEditorOptions Properties

cursorStyle?: TextEditorCursorStyle

indentSize?: string | number

insertSpaces?: string | boolean

lineNumbers?: TextEditorLineNumbersStyle

tabSize?: string | number

TextEditorOptionsChangeEvent Properties

options: TextEditorOptions

textEditor: TextEditor

TextEditorRevealType Enumeration Members

Default: 0

InCenter: 1

InCenterIfOutsideViewport: 2

AtTop: 3

TextEditorSelectionChangeEvent Properties

kind: TextEditorSelectionChangeKind

selections: readonly Selection[]

textEditor: TextEditor

TextEditorSelectionChangeKind Enumeration Members

Keyboard: 1

Mouse: 2

Command: 3

TextEditorViewColumnChangeEvent Properties

textEditor: TextEditor

viewColumn: ViewColumn

TextEditorVisibleRangesChangeEvent Properties

textEditor: TextEditor

visibleRanges: readonly Range[]

TextLine Properties

firstNonWhitespaceCharacterIndex: number

isEmptyOrWhitespace: boolean

lineNumber: number

range: Range

rangeIncludingLineBreak: Range

text: string

ThemableDecorationAttachmentRenderOptions Properties

backgroundColor?: string | ThemeColor

border?: string

borderColor?: string | ThemeColor

color?: string | ThemeColor

contentIconPath?: string | Uri

contentText?: string

fontStyle?: string

fontWeight?: string

height?: string

margin?: string

textDecoration?: string

width?: string

ThemableDecorationInstanceRenderOptions Properties

after?: ThemableDecorationAttachmentRenderOptions

before?: ThemableDecorationAttachmentRenderOptions

ThemableDecorationRenderOptions Properties

after?: ThemableDecorationAttachmentRenderOptions

backgroundColor?: string | ThemeColor

before?: ThemableDecorationAttachmentRenderOptions

border?: string

borderColor?: string | ThemeColor

borderRadius?: string

borderSpacing?: string

borderStyle?: string

borderWidth?: string

color?: string | ThemeColor

cursor?: string

fontStyle?: string

fontWeight?: string

gutterIconPath?: string | Uri

gutterIconSize?: string

letterSpacing?: string

opacity?: string

outline?: string

outlineColor?: string | ThemeColor

outlineStyle?: string

outlineWidth?: string

overviewRulerColor?: string | ThemeColor

textDecoration?: string

ThemeColor Constructors

new ThemeColor(id: string): ThemeColor

Parameter Description id: string Returns Description ThemeColor Properties

id: string

ThemeIcon Static

File: ThemeIcon

Folder: ThemeIcon

Constructors

new ThemeIcon(id: string, color?: ThemeColor): ThemeIcon

Properties

color?: ThemeColor

id: string

TreeCheckboxChangeEvent<T> Properties

items: ReadonlyArray<[T, TreeItemCheckboxState]>

TreeDataProvider<T> Events

onDidChangeTreeData?: Event<void | T | T[]>

Methods

getChildren(element?: T): ProviderResult<T[]>

Parameter Description element?: T Returns Description ProviderResult<T[]>

getParent(element: T): ProviderResult<T>

Parameter Description element: T Returns Description ProviderResult<T>

getTreeItem(element: T): TreeItem | Thenable<TreeItem>

Parameter Description element: T Returns Description TreeItem | Thenable<TreeItem>

resolveTreeItem(item: TreeItem, element: T, token: CancellationToken): ProviderResult<TreeItem>

TreeDragAndDropController<T> Properties

dragMimeTypes: readonly string[]

dropMimeTypes: readonly string[]

Methods

handleDrag(source: readonly T[], dataTransfer: DataTransfer, token: CancellationToken): void | Thenable<void>

handleDrop(target: T, dataTransfer: DataTransfer, token: CancellationToken): void | Thenable<void>

TreeItem Constructors

new TreeItem(label: string | TreeItemLabel, collapsibleState?: TreeItemCollapsibleState): TreeItem

new TreeItem(resourceUri: Uri, collapsibleState?: TreeItemCollapsibleState): TreeItem

Properties

accessibilityInformation?: AccessibilityInformation

checkboxState?: TreeItemCheckboxState | {accessibilityInformation: AccessibilityInformation, state: TreeItemCheckboxState, tooltip: string}

collapsibleState?: TreeItemCollapsibleState

command?: Command

contextValue?: string

description?: string | boolean

iconPath?: string | IconPath

id?: string

label?: string | TreeItemLabel

resourceUri?: Uri

tooltip?: string | MarkdownString

TreeItemCheckboxState Enumeration Members

Unchecked: 0

Checked: 1

TreeItemCollapsibleState Enumeration Members

None: 0

Collapsed: 1

Expanded: 2

TreeItemLabel Properties

highlights?: Array<[number, number]>

label: string

TreeView<T> Events

onDidChangeCheckboxState: Event<TreeCheckboxChangeEvent<T>>

onDidChangeSelection: Event<TreeViewSelectionChangeEvent<T>>

onDidChangeVisibility: Event<TreeViewVisibilityChangeEvent>

onDidCollapseElement: Event<TreeViewExpansionEvent<T>>

onDidExpandElement: Event<TreeViewExpansionEvent<T>>

Properties

badge?: ViewBadge

description?: string

message?: string

selection: readonly T[]

title?: string

visible: boolean

Methods

dispose(): any

Parameter Description Returns Description any

reveal(element: T, options?: {expand: number | boolean, focus: boolean, select: boolean}): Thenable<void>

Parameter Description element: T options?: {expand: number | boolean, focus: boolean, select: boolean} Returns Description Thenable<void> TreeViewExpansionEvent<T> Properties

element: T

TreeViewOptions<T> Properties

canSelectMany?: boolean

dragAndDropController?: TreeDragAndDropController<T>

manageCheckboxStateManually?: boolean

showCollapseAll?: boolean

treeDataProvider: TreeDataProvider<T>

TreeViewSelectionChangeEvent<T> Properties

selection: readonly T[]

TreeViewVisibilityChangeEvent Properties

visible: boolean

TypeDefinitionProvider Methods

provideTypeDefinition(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<Definition | LocationLink[]>

TypeHierarchyItem Constructors

new TypeHierarchyItem(kind: SymbolKind, name: string, detail: string, uri: Uri, range: Range, selectionRange: Range): TypeHierarchyItem

Properties

detail?: string

kind: SymbolKind

name: string

range: Range

selectionRange: Range

tags?: readonly SymbolTag[]

uri: Uri

TypeHierarchyProvider Methods

prepareTypeHierarchy(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<TypeHierarchyItem | TypeHierarchyItem[]>

provideTypeHierarchySubtypes(item: TypeHierarchyItem, token: CancellationToken): ProviderResult<TypeHierarchyItem[]>

provideTypeHierarchySupertypes(item: TypeHierarchyItem, token: CancellationToken): ProviderResult<TypeHierarchyItem[]>

UIKind Enumeration Members

Desktop: 1

Web: 2

Uri Static

file(path: string): Uri

Parameter Description path: string Returns Description Uri

from(components: {authority: string, fragment: string, path: string, query: string, scheme: string}): Uri

Parameter Description components: {authority: string, fragment: string, path: string, query: string, scheme: string} Returns Description Uri

joinPath(base: Uri, ...pathSegments: string[]): Uri

Parameter Description base: Uri ...pathSegments: string[] Returns Description Uri

parse(value: string, strict?: boolean): Uri

Parameter Description value: string strict?: boolean Returns Description Uri Constructors

new Uri(scheme: string, authority: string, path: string, query: string, fragment: string): Uri

Parameter Description scheme: string authority: string path: string query: string fragment: string Returns Description Uri Properties

authority: string

fragment: string

fsPath: string

path: string

query: string

scheme: string

Methods

toJSON(): any

Parameter Description Returns Description any

toString(skipEncoding?: boolean): string

Parameter Description skipEncoding?: boolean Returns Description string

with(change: {authority: string, fragment: string, path: string, query: string, scheme: string}): Uri

Parameter Description change: {authority: string, fragment: string, path: string, query: string, scheme: string} Returns Description Uri UriHandler Methods

handleUri(uri: Uri): ProviderResult<void>

ViewBadge Properties

tooltip: string

value: number

ViewColumn Enumeration Members

Beside: -2

Active: -1

One: 1

Two: 2

Three: 3

Four: 4

Five: 5

Six: 6

Seven: 7

Eight: 8

Nine: 9

Webview Events

onDidReceiveMessage: Event<any>

Properties

cspSource: string

html: string

options: WebviewOptions

Methods

asWebviewUri(localResource: Uri): Uri

Parameter Description localResource: Uri Returns Description Uri

postMessage(message: any): Thenable<boolean>

Parameter Description message: any Returns Description Thenable<boolean> WebviewOptions Properties

enableCommandUris?: boolean | readonly string[]

enableForms?: boolean

enableScripts?: boolean

localResourceRoots?: readonly Uri[]

portMapping?: readonly WebviewPortMapping[]

WebviewPanel Events

onDidChangeViewState: Event<WebviewPanelOnDidChangeViewStateEvent>

onDidDispose: Event<void>

Properties

active: boolean

iconPath?: Uri | {dark: Uri, light: Uri}

options: WebviewPanelOptions

title: string

viewColumn: ViewColumn

viewType: string

visible: boolean

webview: Webview

Methods

dispose(): any

Parameter Description Returns Description any

reveal(viewColumn?: ViewColumn, preserveFocus?: boolean): void

Parameter Description viewColumn?: ViewColumn preserveFocus?: boolean Returns Description void WebviewPanelOnDidChangeViewStateEvent Properties

webviewPanel: WebviewPanel

WebviewPanelOptions Properties

enableFindWidget?: boolean

retainContextWhenHidden?: boolean

WebviewPanelSerializer<T> Methods

deserializeWebviewPanel(webviewPanel: WebviewPanel, state: T): Thenable<void>

Parameter Description webviewPanel: WebviewPanel state: T Returns Description Thenable<void> WebviewPortMapping Properties

extensionHostPort: number

webviewPort: number

WebviewView Events

onDidChangeVisibility: Event<void>

onDidDispose: Event<void>

Properties

badge?: ViewBadge

description?: string

title?: string

viewType: string

visible: boolean

webview: Webview

Methods

show(preserveFocus?: boolean): void

Parameter Description preserveFocus?: boolean Returns Description void WebviewViewProvider Methods

resolveWebviewView(webviewView: WebviewView, context: WebviewViewResolveContext<unknown>, token: CancellationToken): void | Thenable<void>

WebviewViewResolveContext<T> Properties

state: T

WindowState Properties

active: boolean

focused: boolean

WorkspaceConfiguration Methods

get<T>(section: string): T

Parameter Description section: string Returns Description T

get<T>(section: string, defaultValue: T): T

Parameter Description section: string defaultValue: T Returns Description T

has(section: string): boolean

Parameter Description section: string Returns Description boolean

inspect<T>(section: string): {defaultLanguageValue: T, defaultValue: T, globalLanguageValue: T, globalValue: T, key: string, languageIds: string[], workspaceFolderLanguageValue: T, workspaceFolderValue: T, workspaceLanguageValue: T, workspaceValue: T}

Parameter Description section: string Returns Description {defaultLanguageValue: T, defaultValue: T, globalLanguageValue: T, globalValue: T, key: string, languageIds: string[], workspaceFolderLanguageValue: T, workspaceFolderValue: T, workspaceLanguageValue: T, workspaceValue: T}

update(section: string, value: any, configurationTarget?: boolean | ConfigurationTarget, overrideInLanguage?: boolean): Thenable<void>

Parameter Description section: string value: any configurationTarget?: boolean | ConfigurationTarget overrideInLanguage?: boolean Returns Description Thenable<void> WorkspaceEdit Constructors

new WorkspaceEdit(): WorkspaceEdit

Properties

size: number

Methods

createFile(uri: Uri, options?: {contents: Uint8Array | DataTransferFile, ignoreIfExists: boolean, overwrite: boolean}, metadata?: WorkspaceEditEntryMetadata): void

delete(uri: Uri, range: Range, metadata?: WorkspaceEditEntryMetadata): void

deleteFile(uri: Uri, options?: {ignoreIfNotExists: boolean, recursive: boolean}, metadata?: WorkspaceEditEntryMetadata): void

Parameter Description uri: Uri options?: {ignoreIfNotExists: boolean, recursive: boolean} metadata?: WorkspaceEditEntryMetadata Returns Description void

entries(): Array<[Uri, TextEdit[]]>

Parameter Description Returns Description Array<[Uri, TextEdit[]]>

get(uri: Uri): TextEdit[]

Parameter Description uri: Uri Returns Description TextEdit[]

has(uri: Uri): boolean

Parameter Description uri: Uri Returns Description boolean

insert(uri: Uri, position: Position, newText: string, metadata?: WorkspaceEditEntryMetadata): void

renameFile(oldUri: Uri, newUri: Uri, options?: {ignoreIfExists: boolean, overwrite: boolean}, metadata?: WorkspaceEditEntryMetadata): void

Parameter Description oldUri: Uri newUri: Uri options?: {ignoreIfExists: boolean, overwrite: boolean} metadata?: WorkspaceEditEntryMetadata Returns Description void

replace(uri: Uri, range: Range, newText: string, metadata?: WorkspaceEditEntryMetadata): void

set(uri: Uri, edits: ReadonlyArray<TextEdit | SnippetTextEdit>): void

set(uri: Uri, edits: ReadonlyArray<[TextEdit | SnippetTextEdit, WorkspaceEditEntryMetadata]>): void

set(uri: Uri, edits: readonly NotebookEdit[]): void

Parameter Description uri: Uri edits: readonly NotebookEdit[] Returns Description void

set(uri: Uri, edits: ReadonlyArray<[NotebookEdit, WorkspaceEditEntryMetadata]>): void

WorkspaceEditEntryMetadata Properties

description?: string

iconPath?: IconPath

label: string

needsConfirmation: boolean

WorkspaceEditMetadata Properties

isRefactoring?: boolean

WorkspaceFolder Properties

index: number

name: string

uri: Uri

WorkspaceFolderPickOptions Properties

ignoreFocusOut?: boolean

placeHolder?: string

WorkspaceFoldersChangeEvent Properties

added: readonly WorkspaceFolder[]

removed: readonly WorkspaceFolder[]

WorkspaceSymbolProvider<T> Methods

provideWorkspaceSymbols(query: string, token: CancellationToken): ProviderResult<T[]>

resolveWorkspaceSymbol(symbol: T, token: CancellationToken): ProviderResult<T>

API Patterns

These are some of the common patterns we use in the VS Code API.

Promises

The VS Code API represents asynchronous operations with promises. From extensions, any type of promise can be returned, like ES6, WinJS, A+, etc.

Being independent of a specific promise library is expressed in the API by the Thenable-type. Thenable represents the common denominator which is the then method.

In most cases the use of promises is optional and when VS Code calls into an extension, it can handle the result type as well as a Thenable of the result type. When the use of a promise is optional, the API indicates this by returning or-types.

provideNumber(): number | Thenable<number>
Cancellation Tokens

Often operations are started on volatile state which changes before operations can finish. For instance, computing IntelliSense starts and the user continues to type making the result of that operation obsolete.

APIs that are exposed to such behavior will get passed a CancellationToken on which you can check for cancellation (isCancellationRequested) or get notified when cancellation occurs (onCancellationRequested). The cancellation token is usually the last parameter of a function call and optional.

Disposables

The VS Code API uses the dispose pattern for resources that are obtained from VS Code. This applies to event listening, commands, interacting with the UI, and various language contributions.

For instance, the setStatusBarMessage(value: string) function returns a Disposable which upon calling dispose removes the message again.

Events

Events in the VS Code API are exposed as functions which you call with a listener-function to subscribe. Calls to subscribe return a Disposable which removes the event listener upon dispose.

var listener = function(event) {
  console.log('It happened', event);
};

// start listening
var subscription = fsWatcher.onDidDelete(listener);

// do more stuff

subscription.dispose(); // stop listening

Names of events follow the on[Will|Did]VerbNoun? pattern. The name signals if the event is going to happen (onWill) or already happened (onDid), what happened (verb), and the context (noun) unless obvious from the context.

An example from the VS Code API is window.onDidChangeActiveTextEditor which is an event fired when the active text editor (noun) has been (onDid) changed (verb).

Strict null

The VS Code API uses the undefined and null TypeScript types where appropriate to support strict null checking.

08/07/2025


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4