Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • LanguagesExtImpl

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

Properties

adaptersMap: Map<number, Adapter> = ...
callId: number = 0
diagnostics: Diagnostics
linkProviderRegistration?: IDisposable
statusItemHandlePool: number = 0
statusItemIds: Set<string> = ...

Accessors

  • get onDidChangeDiagnostics(): Event<DiagnosticChangeEvent>

Methods

  • $freeInlineCompletionsList(handle: number, pid: number): void
  • $prepareTypeHierarchy(handle: number, resource: UriComponents, location: Position, token: CancellationToken): Promise<undefined | TypeHierarchyItem[]>
  • $provideCodeLenses(handle: number, resource: UriComponents, token: CancellationToken): Promise<undefined | CodeLensSymbol[]>
  • $provideColorPresentations(handle: number, resource: UriComponents, colorInfo: RawColorInfo, token: CancellationToken): Promise<ColorPresentation[]>
  • $provideDeclaration(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<undefined | Definition>
  • $provideDefinition(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<undefined | Definition>
  • $provideDocumentColors(handle: number, resource: UriComponents, token: CancellationToken): Promise<RawColorInfo[]>
  • $provideDocumentFormattingEdits(handle: number, resource: UriComponents, options: FormattingOptions, token: CancellationToken): Promise<undefined | TextEdit[]>
  • $provideDocumentHighlights(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<undefined | DocumentHighlight[]>
  • $provideDocumentLinks(handle: number, resource: UriComponents, token: CancellationToken): Promise<undefined | DocumentLink[]>
  • $provideDocumentRangeFormattingEdits(handle: number, resource: UriComponents, range: Range, options: FormattingOptions, token: CancellationToken): Promise<undefined | TextEdit[]>
  • $provideDocumentRangeSemanticTokens(handle: number, resource: UriComponents, range: Range, token: CancellationToken): Promise<null | BinaryBuffer>
  • $provideDocumentSemanticTokens(handle: number, resource: UriComponents, previousResultId: number, token: CancellationToken): Promise<null | BinaryBuffer>
  • $provideDocumentSymbols(handle: number, resource: UriComponents, token: CancellationToken): Promise<undefined | DocumentSymbol[]>
  • $provideEvaluatableExpression(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<undefined | EvaluatableExpression>
  • $provideFoldingRange(callId: number, resource: UriComponents, context: FoldingContext, token: CancellationToken): Promise<undefined | FoldingRange[]>
  • $provideHover(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<undefined | Hover>
  • $provideImplementation(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<undefined | Definition>
  • $provideInlayHints(handle: number, resource: UriComponents, range: Range, token: CancellationToken): Promise<undefined | InlayHintsDto>
  • $provideLinkedEditingRanges(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<undefined | LinkedEditingRanges>
  • $provideOnTypeFormattingEdits(handle: number, resource: UriComponents, position: Position, ch: string, options: FormattingOptions, token: CancellationToken): Promise<undefined | TextEdit[]>
  • $provideReferences(handle: number, resource: UriComponents, position: Position, context: ReferenceContext, token: CancellationToken): Promise<undefined | Location[]>
  • $provideRenameEdits(handle: number, resource: UriComponents, position: Position, newName: string, token: CancellationToken): Promise<undefined | WorkspaceEditDto>
  • $provideRootDefinition(handle: number, resource: UriComponents, location: Position, token: CancellationToken): Promise<undefined | CallHierarchyItem[]>
  • $provideSelectionRanges(handle: number, resource: UriComponents, positions: Position[], token: CancellationToken): Promise<SelectionRange[][]>
  • $provideSubTypes(handle: number, sessionId: string, itemId: string, token: CancellationToken): Promise<undefined | TypeHierarchyItem[]>
  • $provideSuperTypes(handle: number, sessionId: string, itemId: string, token: CancellationToken): Promise<undefined | TypeHierarchyItem[]>
  • $provideTypeDefinition(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<undefined | Definition>
  • $provideWorkspaceSymbols(handle: number, query: string, token: CancellationToken): PromiseLike<SymbolInformation[]>
  • $releaseCallHierarchy(handle: number, session?: string): Promise<boolean>
  • $releaseCodeActions(handle: number, cacheIds: number[]): void
  • $releaseCodeLenses(handle: number, ids: number[]): void
  • $releaseCompletionItems(handle: number, id: number): void
  • $releaseDocumentLinks(handle: number, ids: number[]): void
  • $releaseDocumentSemanticTokens(handle: number, semanticColoringResultId: number): void
  • $releaseInlayHints(handle: number, id: number): void
  • $releaseSignatureHelp(handle: number, id: number): void
  • $releaseTypeHierarchy(handle: number, session?: string): Promise<boolean>
  • $resolveCodeAction(handle: number, cacheId: number, token: CancellationToken): Promise<undefined | WorkspaceEditDto>
  • $resolveCodeLens(handle: number, resource: UriComponents, symbol: CodeLensSymbol, token: CancellationToken): Promise<undefined | CodeLensSymbol>
  • $resolveCompletionItem(handle: number, chainedId: ChainedCacheId, token: CancellationToken): Promise<undefined | Completion>
  • $resolveRenameLocation(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<undefined | RenameLocation>
  • $resolveWorkspaceSymbol(handle: number, symbol: SymbolInformation, token: CancellationToken): PromiseLike<undefined | SymbolInformation>
  • addNewAdapter(adapter: Adapter): number
  • changeLanguage(uri: URI, languageId: string): Promise<TextDocument>
  • createDiagnosticCollection(name?: string): DiagnosticCollection
  • createDisposable(callId: number, onDispose?: (() => void)): Disposable
  • createLanguageStatusItem(extension: Plugin, id: string, selector: DocumentSelector): LanguageStatusItem
  • dispose(): void
  • getDiagnostics(resource?: URI): Diagnostic[] | [URI, Diagnostic[]][]
  • getLanguages(): Promise<string[]>
  • nextCallId(): number
  • registerCallHierarchyProvider(selector: DocumentSelector, provider: CallHierarchyProvider): Disposable
  • registerCodeActionsProvider(selector: DocumentSelector, provider: CodeActionProvider<CodeAction>, pluginModel: PluginModel, pluginInfo: PluginInfo, metadata?: CodeActionProviderMetadata): Disposable
  • registerCodeLensProvider(selector: DocumentSelector, provider: CodeLensProvider<CodeLens>, pluginInfo: PluginInfo): Disposable
  • registerColorProvider(selector: DocumentSelector, provider: DocumentColorProvider, pluginInfo: PluginInfo): Disposable
  • registerCompletionItemProvider(selector: DocumentSelector, provider: CompletionItemProvider<CompletionItem>, triggerCharacters: string[], pluginInfo: PluginInfo): Disposable
  • registerDeclarationProvider(selector: DocumentSelector, provider: DeclarationProvider, pluginInfo: PluginInfo): Disposable
  • registerDefinitionProvider(selector: DocumentSelector, provider: DefinitionProvider, pluginInfo: PluginInfo): Disposable
  • registerDocumentDropEditProvider(selector: DocumentSelector, provider: DocumentDropEditProvider): Disposable
  • registerDocumentFormattingEditProvider(selector: DocumentSelector, provider: DocumentFormattingEditProvider, pluginInfo: PluginInfo): Disposable
  • registerDocumentHighlightProvider(selector: DocumentSelector, provider: DocumentHighlightProvider, pluginInfo: PluginInfo): Disposable
  • registerDocumentLinkProvider(selector: DocumentSelector, provider: DocumentLinkProvider<DocumentLink>, pluginInfo: PluginInfo): Disposable
  • registerDocumentPasteEditProvider(extension: Plugin, selector: DocumentSelector, provider: DocumentPasteEditProvider, metadata: DocumentPasteProviderMetadata): Disposable
  • registerDocumentRangeFormattingEditProvider(selector: DocumentSelector, provider: DocumentRangeFormattingEditProvider, pluginInfo: PluginInfo): Disposable
  • registerDocumentRangeSemanticTokensProvider(selector: DocumentSelector, provider: DocumentRangeSemanticTokensProvider, legend: SemanticTokensLegend, pluginInfo: PluginInfo): Disposable
  • registerDocumentSemanticTokensProvider(selector: DocumentSelector, provider: DocumentSemanticTokensProvider, legend: SemanticTokensLegend, pluginInfo: PluginInfo): Disposable
  • registerDocumentSymbolProvider(selector: DocumentSelector, provider: DocumentSymbolProvider, pluginInfo: PluginInfo, metadata?: DocumentSymbolProviderMetadata): Disposable
  • registerEvaluatableExpressionProvider(selector: DocumentSelector, provider: EvaluatableExpressionProvider, pluginInfo: PluginInfo): Disposable
  • registerFoldingRangeProvider(selector: DocumentSelector, provider: FoldingRangeProvider, pluginInfo: PluginInfo): Disposable
  • registerHoverProvider(selector: DocumentSelector, provider: HoverProvider, pluginInfo: PluginInfo): Disposable
  • registerImplementationProvider(selector: DocumentSelector, provider: ImplementationProvider, pluginInfo: PluginInfo): Disposable
  • registerInlayHintsProvider(selector: DocumentSelector, provider: InlayHintsProvider<InlayHint>, pluginInfo: PluginInfo): Disposable
  • registerInlineCompletionsProvider(selector: DocumentSelector, provider: InlineCompletionItemProvider): Disposable
  • registerInlineValuesProvider(selector: DocumentSelector, provider: InlineValuesProvider, pluginInfo: PluginInfo): Disposable
  • registerLinkProviderIfNotYetRegistered(linkProvider: FsLinkProvider): void
  • registerLinkedEditingRangeProvider(selector: DocumentSelector, provider: LinkedEditingRangeProvider): Disposable
  • registerOnTypeFormattingEditProvider(selector: DocumentSelector, provider: OnTypeFormattingEditProvider, triggerCharacters: string[], pluginInfo: PluginInfo): Disposable
  • registerReferenceProvider(selector: DocumentSelector, provider: ReferenceProvider, pluginInfo: PluginInfo): Disposable
  • registerRenameProvider(selector: DocumentSelector, provider: RenameProvider, pluginInfo: PluginInfo): Disposable
  • registerSelectionRangeProvider(selector: DocumentSelector, provider: SelectionRangeProvider, pluginInfo: PluginInfo): Disposable
  • registerSignatureHelpProvider(selector: DocumentSelector, provider: SignatureHelpProvider, metadata: SignatureHelpProviderMetadata, pluginInfo: PluginInfo): Disposable
  • registerTypeDefinitionProvider(selector: DocumentSelector, provider: TypeDefinitionProvider, pluginInfo: PluginInfo): Disposable
  • registerTypeHierarchyProvider(selector: DocumentSelector, provider: TypeHierarchyProvider): Disposable
  • registerWorkspaceSymbolProvider(provider: WorkspaceSymbolProvider<SymbolInformation>, pluginInfo: PluginInfo): Disposable
  • setLanguageConfiguration(language: string, configuration: LanguageConfiguration): Disposable
  • withAdapter<A, R>(handle: number, ctor: (new (...args: any[]) => A), callback: ((adapter: A) => Promise<R>), fallbackValue: R): Promise<R>
  • Type Parameters

    • A

    • R

    Parameters

    • handle: number
    • ctor: (new (...args: any[]) => A)
        • new (...args: any[]): A
        • Parameters

          • Rest ...args: any[]

          Returns A

    • callback: ((adapter: A) => Promise<R>)
        • (adapter: A): Promise<R>
        • Parameters

          • adapter: A

          Returns Promise<R>

    • fallbackValue: R

    Returns Promise<R>