Interface Protocol2CodeConverter
interface Protocol2CodeConverter { asCallHierarchyIncomingCall( item: CallHierarchyIncomingCall, token?: CancellationToken, ): Promise<CallHierarchyIncomingCall>; asCallHierarchyIncomingCalls( items: null, token?: CancellationToken, ): Promise<undefined>; asCallHierarchyIncomingCalls( items: readonly CallHierarchyIncomingCall[], token?: CancellationToken, ): Promise<CallHierarchyIncomingCall[]>; asCallHierarchyIncomingCalls( items: null | readonly CallHierarchyIncomingCall[], token?: CancellationToken, ): Promise<undefined | CallHierarchyIncomingCall[]>; asCallHierarchyItem(item: null): undefined; asCallHierarchyItem(item: CallHierarchyItem): CallHierarchyItem; asCallHierarchyItem( item: null | CallHierarchyItem, ): undefined | CallHierarchyItem; asCallHierarchyItems( items: null, token?: CancellationToken, ): Promise<undefined>; asCallHierarchyItems( items: CallHierarchyItem[], token?: CancellationToken, ): Promise<CallHierarchyItem[]>; asCallHierarchyItems( items: null | CallHierarchyItem[], token?: CancellationToken, ): Promise<undefined | CallHierarchyItem[]>; asCallHierarchyOutgoingCall( item: CallHierarchyOutgoingCall, token?: CancellationToken, ): Promise<CallHierarchyOutgoingCall>; asCallHierarchyOutgoingCalls( items: null, token?: CancellationToken, ): Promise<undefined>; asCallHierarchyOutgoingCalls( items: readonly CallHierarchyOutgoingCall[], token?: CancellationToken, ): Promise<CallHierarchyOutgoingCall[]>; asCallHierarchyOutgoingCalls( items: null | readonly CallHierarchyOutgoingCall[], token?: CancellationToken, ): Promise<undefined | CallHierarchyOutgoingCall[]>; asCodeAction( item: undefined | null, token?: CancellationToken, ): Promise<undefined>; asCodeAction( item: CodeAction, token?: CancellationToken, ): Promise<CodeAction>; asCodeAction( item: undefined | null | CodeAction, token?: CancellationToken, ): Promise<undefined | CodeAction>; asCodeActionDocumentations(items: undefined | null): undefined; asCodeActionDocumentations( items: CodeActionKindDocumentation[], ): undefined | readonly { command: Command; kind: CodeActionKind }[]; asCodeActionDocumentations( items: undefined | null | CodeActionKindDocumentation[], ): undefined | readonly { command: Command; kind: CodeActionKind }[]; asCodeActionKind(item: undefined | null): undefined; asCodeActionKind(item: string): CodeActionKind; asCodeActionKind( item: undefined | null | string, ): undefined | CodeActionKind; asCodeActionKinds(item: undefined | null): undefined; asCodeActionKinds(items: string[]): CodeActionKind[]; asCodeActionKinds( item: undefined | null | string[], ): undefined | CodeActionKind[]; asCodeActionResult( items: (
Command | CodeAction)
[], token?: CancellationToken, ): Promise<(
Command | CodeAction)
[]>; asCodeLens(item: CodeLens): CodeLens; asCodeLens(item: undefined | null): undefined; asCodeLens(item: undefined | null | CodeLens): undefined | CodeLens; asCodeLenses( items: undefined | null, token?: CancellationToken, ): Promise<undefined>; asCodeLenses( items: CodeLens[], token?: CancellationToken, ): Promise<CodeLens[]>; asCodeLenses( items: undefined | null | CodeLens[], token?: CancellationToken, ): Promise<undefined | CodeLens[]>; asColor(color: Color): Color; asColorInformation(ci: ColorInformation): ColorInformation; asColorInformations( colorPresentations: undefined | null, token?: CancellationToken, ): Promise<undefined>; asColorInformations( colorPresentations: ColorInformation[], token?: CancellationToken, ): Promise<ColorInformation[]>; asColorInformations( colorInformation: undefined | null | ColorInformation[], token?: CancellationToken, ): Promise<ColorInformation[]>; asColorPresentation(cp: ColorPresentation): ColorPresentation; asColorPresentations( colorPresentations: undefined | null, token?: CancellationToken, ): Promise<undefined>; asColorPresentations( colorPresentations: ColorPresentation[], token?: CancellationToken, ): Promise<ColorPresentation[]>; asColorPresentations( colorPresentations: undefined | null | ColorPresentation[], token?: CancellationToken, ): Promise<undefined | ColorPresentation[]>; asCommand(item: Command): Command; asCommands( items: undefined | null, token?: CancellationToken, ): Promise<undefined>; asCommands(items: Command[], token?: CancellationToken): Promise<Command[]>; asCommands( items: undefined | null | Command[], token?: CancellationToken, ): Promise<undefined | Command[]>; asCompletionItem( item: CompletionItem, defaultCommitCharacters?: string[], ): ProtocolCompletionItem; asCompletionResult( value: undefined | null, allCommitCharacters?: string[], token?: CancellationToken, ): Promise<undefined>; asCompletionResult( value: CompletionList, allCommitCharacters?: string[], token?: CancellationToken, ): Promise<CompletionList>; asCompletionResult( value: CompletionItem[], allCommitCharacters?: string[], token?: CancellationToken, ): Promise<CompletionItem[]>; asCompletionResult( value: undefined | null | CompletionList | CompletionItem[], allCommitCharacters?: string[], token?: CancellationToken, ): Promise<undefined | CompletionList | CompletionItem[]>; asDeclarationResult( item: undefined | null, token?: CancellationToken, ): Promise<undefined>; asDeclarationResult( item: Declaration, token?: CancellationToken, ): Promise<Location | Location[]>; asDeclarationResult( item: LocationLink[], token?: CancellationToken, ): Promise<LocationLink[]>; asDeclarationResult( item: undefined | null | Declaration | LocationLink[], token?: CancellationToken, ): Promise<undefined | Declaration>; asDefinitionResult( item: undefined | null, token?: CancellationToken, ): Promise<undefined>; asDefinitionResult( item: Definition, token?: CancellationToken, ): Promise<Definition>; asDefinitionResult( item: LocationLink[], token?: CancellationToken, ): Promise<LocationLink[]>; asDefinitionResult( item: undefined | null | Definition | LocationLink[], token?: CancellationToken, ): Promise<undefined | Definition | LocationLink[]>; asDiagnostic(diagnostic: Diagnostic): Diagnostic; asDiagnostics( diagnostics: Diagnostic[], token?: CancellationToken, ): Promise<Diagnostic[]>; asDiagnosticSeverity(value: undefined | null | number): DiagnosticSeverity; asDiagnosticTag(tag: DiagnosticTag): undefined | DiagnosticTag; asDocumentHighlight(item: DocumentHighlight): DocumentHighlight; asDocumentHighlightKind(item: number): DocumentHighlightKind; asDocumentHighlights( values: undefined | null, token?: CancellationToken, ): Promise<undefined>; asDocumentHighlights( values: DocumentHighlight[], token?: CancellationToken, ): Promise<DocumentHighlight[]>; asDocumentHighlights( values: undefined | null | DocumentHighlight[], token?: CancellationToken, ): Promise<undefined | DocumentHighlight[]>; asDocumentLink(item: DocumentLink): DocumentLink; asDocumentLinks( items: undefined | null, token?: CancellationToken, ): Promise<undefined>; asDocumentLinks( items: DocumentLink[], token?: CancellationToken, ): Promise<DocumentLink[]>; asDocumentLinks( items: undefined | null | DocumentLink[], token?: CancellationToken, ): Promise<undefined | DocumentLink[]>; asDocumentSelector(value: DocumentSelector): DocumentSelector; asDocumentSymbol( value: DocumentSymbol, token?: CancellationToken, ): DocumentSymbol; asDocumentSymbols( value: undefined | null, token?: CancellationToken, ): Promise<undefined>; asDocumentSymbols( value: DocumentSymbol[], token?: CancellationToken, ): Promise<DocumentSymbol[]>; asDocumentSymbols( value: undefined | null | DocumentSymbol[], token?: CancellationToken, ): Promise<undefined | DocumentSymbol[]>; asFoldingRange(r: FoldingRange): FoldingRange; asFoldingRangeKind(kind: undefined | string): undefined | FoldingRangeKind; asFoldingRanges( foldingRanges: undefined | null, token?: CancellationToken, ): Promise<undefined>; asFoldingRanges( foldingRanges: FoldingRange[], token?: CancellationToken, ): Promise<FoldingRange[]>; asFoldingRanges( foldingRanges: undefined | null | FoldingRange[], token?: CancellationToken, ): Promise<undefined | FoldingRange[]>; asGlobPattern(pattern: undefined | null): undefined; asGlobPattern(pattern: GlobPattern): undefined | GlobPattern; asHover(hover: undefined | null): undefined; asHover(hover: Hover): Hover; asHover(hover: undefined | null | Hover): undefined | Hover; asInlayHint( value: InlayHint, token?: CancellationToken, ): Promise<InlayHint>; asInlayHints( values: undefined | null, token?: CancellationToken, ): Promise<undefined>; asInlayHints( values: InlayHint[], token?: CancellationToken, ): Promise<InlayHint[]>; asInlayHints( values: undefined | null | InlayHint[], token?: CancellationToken, ): Promise<undefined | InlayHint[]>; asInlineCompletionItem(item: InlineCompletionItem): InlineCompletionItem; asInlineCompletionResult( value: undefined | null, token?: CancellationToken, ): Promise<undefined>; asInlineCompletionResult( value: InlineCompletionList, token?: CancellationToken, ): Promise<InlineCompletionList>; asInlineCompletionResult( value: InlineCompletionItem[], token?: CancellationToken, ): Promise<InlineCompletionItem[]>; asInlineCompletionResult( value: undefined | null | InlineCompletionList | InlineCompletionItem[], token?: CancellationToken, ): Promise<undefined | InlineCompletionList | InlineCompletionItem[]>; asInlineValue(value: InlineValue): InlineValue; asInlineValues( values: undefined | null, token?: CancellationToken, ): Promise<undefined>; asInlineValues( values: InlineValue[], token?: CancellationToken, ): Promise<InlineValue[]>; asInlineValues( values: undefined | null | InlineValue[], token?: CancellationToken, ): Promise<undefined | InlineValue[]>; asLinkedEditingRanges( value: undefined | null, token?: CancellationToken, ): Promise<undefined>; asLinkedEditingRanges( value: LinkedEditingRanges, token?: CancellationToken, ): Promise<LinkedEditingRanges>; asLinkedEditingRanges( value: undefined | null | LinkedEditingRanges, token?: CancellationToken, ): Promise<undefined | LinkedEditingRanges>; asLocation(item: Location): Location; asLocation(item: undefined | null): undefined; asLocation(item: undefined | null | Location): undefined | Location; asParameterInformation(item: ParameterInformation): ParameterInformation; asParameterInformations( item: ParameterInformation[], token?: CancellationToken, ): Promise<ParameterInformation[]>; asPosition(value: undefined | null): undefined; asPosition(value: Position): Position; asPosition(value: undefined | null | Position): undefined | Position; asRange(value: undefined | null): undefined; asRange(value: Range): Range; asRange(value: undefined | null | Range): undefined | Range; asRanges( items: readonly Range[], token?: CancellationToken, ): Promise<Range[]>; asReferences( values: undefined | null, token?: CancellationToken, ): Promise<undefined>; asReferences( values: Location[], token?: CancellationToken, ): Promise<Location[]>; asReferences( values: undefined | null | Location[], token?: CancellationToken, ): Promise<undefined | Location[]>; asSelectionRange(selectionRange: SelectionRange): SelectionRange; asSelectionRanges( selectionRanges: undefined | null, token?: CancellationToken, ): Promise<undefined>; asSelectionRanges( selectionRanges: SelectionRange[], token?: CancellationToken, ): Promise<SelectionRange[]>; asSelectionRanges( selectionRanges: undefined | null | SelectionRange[], token?: CancellationToken, ): Promise<undefined | SelectionRange[]>; asSemanticTokens( value: undefined | null, token?: CancellationToken, ): Promise<undefined>; asSemanticTokens( value: SemanticTokens, token?: CancellationToken, ): Promise<SemanticTokens>; asSemanticTokens( value: undefined | null | SemanticTokens, token?: CancellationToken, ): Promise<undefined | SemanticTokens>; asSemanticTokensEdit(value: SemanticTokensEdit): SemanticTokensEdit; asSemanticTokensEdits( value: undefined | null, token?: CancellationToken, ): Promise<undefined>; asSemanticTokensEdits( value: SemanticTokensDelta, token?: CancellationToken, ): Promise<SemanticTokensEdits>; asSemanticTokensEdits( value: undefined | null | SemanticTokensDelta, token?: CancellationToken, ): Promise<undefined | SemanticTokensEdits>; asSemanticTokensLegend(value: SemanticTokensLegend): SemanticTokensLegend; asSignatureHelp( item: undefined | null, token?: CancellationToken, ): Promise<undefined>; asSignatureHelp( item: SignatureHelp, token?: CancellationToken, ): Promise<SignatureHelp>; asSignatureHelp( item: undefined | null | SignatureHelp, token?: CancellationToken, ): Promise<undefined | SignatureHelp>; asSignatureInformation( item: SignatureInformation, token?: CancellationToken, ): Promise<SignatureInformation>; asSignatureInformations( items: SignatureInformation[], token?: CancellationToken, ): Promise<SignatureInformation[]>; asSymbolInformation( item: SymbolInformation | WorkspaceSymbol, ): SymbolInformation; asSymbolInformations( values: undefined | null, token?: CancellationToken, ): Promise<undefined>; asSymbolInformations( values: SymbolInformation[] | WorkspaceSymbol[], token?: CancellationToken, ): Promise<SymbolInformation[]>; asSymbolInformations( values: undefined | null | SymbolInformation[] | WorkspaceSymbol[], token?: CancellationToken, ): Promise<undefined | SymbolInformation[]>; asSymbolKind(item: SymbolKind): SymbolKind; asSymbolTag(item: 1): undefined | SymbolTag; asSymbolTags(items: undefined | null): undefined; asSymbolTags(items: readonly 1[]): SymbolTag[]; asSymbolTags( items: undefined | null | readonly 1[], ): undefined | SymbolTag[]; asTextEdit(edit: undefined | null): undefined; asTextEdit(edit: TextEdit): TextEdit; asTextEdit(edit: undefined | null | TextEdit): undefined | TextEdit; asTextEdits( items: undefined | null, token?: CancellationToken, ): Promise<undefined>; asTextEdits( items: TextEdit[], token?: CancellationToken, ): Promise<TextEdit[]>; asTextEdits( items: undefined | null | TextEdit[], token?: CancellationToken, ): Promise<undefined | TextEdit[]>; asTypeHierarchyItem(item: null): undefined; asTypeHierarchyItem(item: TypeHierarchyItem): TypeHierarchyItem; asTypeHierarchyItem( item: null | TypeHierarchyItem, ): undefined | TypeHierarchyItem; asTypeHierarchyItems( items: null, token?: CancellationToken, ): Promise<undefined>; asTypeHierarchyItems( items: TypeHierarchyItem[], token?: CancellationToken, ): Promise<TypeHierarchyItem[]>; asTypeHierarchyItems( items: null | TypeHierarchyItem[], token?: CancellationToken, ): Promise<undefined | TypeHierarchyItem[]>; asUri(value: string): Uri; asWorkspaceEdit( item: undefined | null, token?: CancellationToken, ): Promise<undefined>; asWorkspaceEdit( item: WorkspaceEdit, token?: CancellationToken, ): Promise<WorkspaceEdit>; asWorkspaceEdit( item: undefined | null | WorkspaceEdit, token?: CancellationToken, ): Promise<undefined | WorkspaceEdit>;} Methods
asCallHierarchyIncomingCall
- asCallHierarchyIncomingCall(
item: CallHierarchyIncomingCall,
token?: CancellationToken,
): Promise<CallHierarchyIncomingCall> Returns Promise<CallHierarchyIncomingCall>
asCallHierarchyIncomingCalls
- asCallHierarchyIncomingCalls(
items: null,
token?: CancellationToken,
): Promise<undefined> Parameters
- items: null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asCallHierarchyIncomingCalls(
items: readonly CallHierarchyIncomingCall[],
token?: CancellationToken,
): Promise<CallHierarchyIncomingCall[]> Returns Promise<CallHierarchyIncomingCall[]>
- asCallHierarchyIncomingCalls(
items: null | readonly CallHierarchyIncomingCall[],
token?: CancellationToken,
): Promise<undefined | CallHierarchyIncomingCall[]> Returns Promise<undefined | CallHierarchyIncomingCall[]>
asCallHierarchyItem
- asCallHierarchyItem(item: null): undefined
Returns undefined
- asCallHierarchyItem(item: CallHierarchyItem): CallHierarchyItem
Returns CallHierarchyItem
- asCallHierarchyItem(
item: null | CallHierarchyItem,
): undefined | CallHierarchyItem Returns undefined | CallHierarchyItem
asCallHierarchyItems
- asCallHierarchyItems(items: null, token?: CancellationToken): Promise<undefined>
Parameters
- items: null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asCallHierarchyItems(
items: CallHierarchyItem[],
token?: CancellationToken,
): Promise<CallHierarchyItem[]> Returns Promise<CallHierarchyItem[]>
- asCallHierarchyItems(
items: null | CallHierarchyItem[],
token?: CancellationToken,
): Promise<undefined | CallHierarchyItem[]> Returns Promise<undefined | CallHierarchyItem[]>
asCallHierarchyOutgoingCall
- asCallHierarchyOutgoingCall(
item: CallHierarchyOutgoingCall,
token?: CancellationToken,
): Promise<CallHierarchyOutgoingCall> Returns Promise<CallHierarchyOutgoingCall>
asCallHierarchyOutgoingCalls
- asCallHierarchyOutgoingCalls(
items: null,
token?: CancellationToken,
): Promise<undefined> Parameters
- items: null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asCallHierarchyOutgoingCalls(
items: readonly CallHierarchyOutgoingCall[],
token?: CancellationToken,
): Promise<CallHierarchyOutgoingCall[]> Returns Promise<CallHierarchyOutgoingCall[]>
- asCallHierarchyOutgoingCalls(
items: null | readonly CallHierarchyOutgoingCall[],
token?: CancellationToken,
): Promise<undefined | CallHierarchyOutgoingCall[]> Returns Promise<undefined | CallHierarchyOutgoingCall[]>
asCodeAction
- asCodeAction(
item: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- item: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asCodeAction(item: CodeAction, token?: CancellationToken): Promise<CodeAction>
Returns Promise<CodeAction>
- asCodeAction(
item: undefined | null | CodeAction,
token?: CancellationToken,
): Promise<undefined | CodeAction> Parameters
- item: undefined | null | CodeAction
Optionaltoken: CancellationToken
Returns Promise<undefined | CodeAction>
asCodeActionDocumentations
- asCodeActionDocumentations(items: undefined | null): undefined
Returns undefined
- asCodeActionDocumentations(
items: CodeActionKindDocumentation[],
): undefined | readonly { command: Command; kind: CodeActionKind }[] Returns undefined | readonly { command: Command; kind: CodeActionKind }[]
- asCodeActionDocumentations(
items: undefined | null | CodeActionKindDocumentation[],
): undefined | readonly { command: Command; kind: CodeActionKind }[] Returns undefined | readonly { command: Command; kind: CodeActionKind }[]
asCodeActionKind
- asCodeActionKind(item: undefined | null): undefined
Returns undefined
- asCodeActionKind(item: string): CodeActionKind
Returns CodeActionKind
- asCodeActionKind(item: undefined | null | string): undefined | CodeActionKind
Parameters
- item: undefined | null | string
Returns undefined | CodeActionKind
asCodeActionKinds
- asCodeActionKinds(item: undefined | null): undefined
Returns undefined
- asCodeActionKinds(items: string[]): CodeActionKind[]
Returns CodeActionKind[]
- asCodeActionKinds(
item: undefined | null | string[],
): undefined | CodeActionKind[] Parameters
- item: undefined | null | string[]
Returns undefined | CodeActionKind[]
asCodeActionResult
- asCodeActionResult(
items: (Command | CodeAction)[],
token?: CancellationToken,
): Promise<(Command | CodeAction)[]> Returns Promise<(Command | CodeAction)[]>
asCodeLens
- asCodeLens(item: CodeLens): CodeLens
Returns CodeLens
- asCodeLens(item: undefined | null): undefined
Returns undefined
- asCodeLens(item: undefined | null | CodeLens): undefined | CodeLens
Returns undefined | CodeLens
asCodeLenses
- asCodeLenses(
items: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- items: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asCodeLenses(items: CodeLens[], token?: CancellationToken): Promise<CodeLens[]>
Parameters
- items: CodeLens[]
Optionaltoken: CancellationToken
Returns Promise<CodeLens[]>
- asCodeLenses(
items: undefined | null | CodeLens[],
token?: CancellationToken,
): Promise<undefined | CodeLens[]> Parameters
- items: undefined | null | CodeLens[]
Optionaltoken: CancellationToken
Returns Promise<undefined | CodeLens[]>
asColor
- asColor(color: Color): Color
Returns Color
asColorInformation
- asColorInformation(ci: ColorInformation): ColorInformation
Returns ColorInformation
asColorInformations
- asColorInformations(
colorPresentations: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- colorPresentations: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asColorInformations(
colorPresentations: ColorInformation[],
token?: CancellationToken,
): Promise<ColorInformation[]> Returns Promise<ColorInformation[]>
- asColorInformations(
colorInformation: undefined | null | ColorInformation[],
token?: CancellationToken,
): Promise<ColorInformation[]> Parameters
- colorInformation: undefined | null | ColorInformation[]
Optionaltoken: CancellationToken
Returns Promise<ColorInformation[]>
asColorPresentation
- asColorPresentation(cp: ColorPresentation): ColorPresentation
Returns ColorPresentation
asColorPresentations
- asColorPresentations(
colorPresentations: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- colorPresentations: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asColorPresentations(
colorPresentations: ColorPresentation[],
token?: CancellationToken,
): Promise<ColorPresentation[]> Returns Promise<ColorPresentation[]>
- asColorPresentations(
colorPresentations: undefined | null | ColorPresentation[],
token?: CancellationToken,
): Promise<undefined | ColorPresentation[]> Parameters
- colorPresentations: undefined | null | ColorPresentation[]
Optionaltoken: CancellationToken
Returns Promise<undefined | ColorPresentation[]>
asCommand
- asCommand(item: Command): Command
Returns Command
asCommands
- asCommands(
items: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- items: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asCommands(items: Command[], token?: CancellationToken): Promise<Command[]>
Parameters
- items: Command[]
Optionaltoken: CancellationToken
Returns Promise<Command[]>
- asCommands(
items: undefined | null | Command[],
token?: CancellationToken,
): Promise<undefined | Command[]> Parameters
- items: undefined | null | Command[]
Optionaltoken: CancellationToken
Returns Promise<undefined | Command[]>
asCompletionItem
- asCompletionItem(
item: CompletionItem,
defaultCommitCharacters?: string[],
): ProtocolCompletionItem Returns ProtocolCompletionItem
asCompletionResult
- asCompletionResult(
value: undefined | null,
allCommitCharacters?: string[],
token?: CancellationToken,
): Promise<undefined> Parameters
- value: undefined | null
OptionalallCommitCharacters: string[]Optionaltoken: CancellationToken
Returns Promise<undefined>
- asCompletionResult(
value: CompletionList,
allCommitCharacters?: string[],
token?: CancellationToken,
): Promise<CompletionList> Parameters
- value: CompletionList
OptionalallCommitCharacters: string[]Optionaltoken: CancellationToken
Returns Promise<CompletionList>
- asCompletionResult(
value: CompletionItem[],
allCommitCharacters?: string[],
token?: CancellationToken,
): Promise<CompletionItem[]> Parameters
- value: CompletionItem[]
OptionalallCommitCharacters: string[]Optionaltoken: CancellationToken
Returns Promise<CompletionItem[]>
- asCompletionResult(
value: undefined | null | CompletionList | CompletionItem[],
allCommitCharacters?: string[],
token?: CancellationToken,
): Promise<undefined | CompletionList | CompletionItem[]> Returns Promise<undefined | CompletionList | CompletionItem[]>
asDeclarationResult
- asDeclarationResult(
item: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- item: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asDeclarationResult(
item: Declaration,
token?: CancellationToken,
): Promise<Location | Location[]> Returns Promise<Location | Location[]>
- asDeclarationResult(
item: LocationLink[],
token?: CancellationToken,
): Promise<LocationLink[]> Returns Promise<LocationLink[]>
- asDeclarationResult(
item: undefined | null | Declaration | LocationLink[],
token?: CancellationToken,
): Promise<undefined | Declaration> Returns Promise<undefined | Declaration>
asDefinitionResult
- asDefinitionResult(
item: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- item: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asDefinitionResult(
item: Definition,
token?: CancellationToken,
): Promise<Definition> Returns Promise<Definition>
- asDefinitionResult(
item: LocationLink[],
token?: CancellationToken,
): Promise<LocationLink[]> Returns Promise<LocationLink[]>
- asDefinitionResult(
item: undefined | null | Definition | LocationLink[],
token?: CancellationToken,
): Promise<undefined | Definition | LocationLink[]> Returns Promise<undefined | Definition | LocationLink[]>
asDiagnostic
- asDiagnostic(diagnostic: Diagnostic): Diagnostic
Returns Diagnostic
asDiagnostics
- asDiagnostics(
diagnostics: Diagnostic[],
token?: CancellationToken,
): Promise<Diagnostic[]> Parameters
- diagnostics: Diagnostic[]
Optionaltoken: CancellationToken
Returns Promise<Diagnostic[]>
asDiagnosticSeverity
- asDiagnosticSeverity(value: undefined | null | number): DiagnosticSeverity
Parameters
- value: undefined | null | number
Returns DiagnosticSeverity
asDiagnosticTag
- asDiagnosticTag(tag: DiagnosticTag): undefined | DiagnosticTag
Returns undefined | DiagnosticTag
asDocumentHighlight
- asDocumentHighlight(item: DocumentHighlight): DocumentHighlight
Returns DocumentHighlight
asDocumentHighlightKind
- asDocumentHighlightKind(item: number): DocumentHighlightKind
Returns DocumentHighlightKind
asDocumentHighlights
- asDocumentHighlights(
values: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- values: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asDocumentHighlights(
values: DocumentHighlight[],
token?: CancellationToken,
): Promise<DocumentHighlight[]> Returns Promise<DocumentHighlight[]>
- asDocumentHighlights(
values: undefined | null | DocumentHighlight[],
token?: CancellationToken,
): Promise<undefined | DocumentHighlight[]> Returns Promise<undefined | DocumentHighlight[]>
asDocumentLink
- asDocumentLink(item: DocumentLink): DocumentLink
Returns DocumentLink
asDocumentLinks
- asDocumentLinks(
items: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- items: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asDocumentLinks(
items: DocumentLink[],
token?: CancellationToken,
): Promise<DocumentLink[]> Returns Promise<DocumentLink[]>
- asDocumentLinks(
items: undefined | null | DocumentLink[],
token?: CancellationToken,
): Promise<undefined | DocumentLink[]> Parameters
- items: undefined | null | DocumentLink[]
Optionaltoken: CancellationToken
Returns Promise<undefined | DocumentLink[]>
asDocumentSelector
- asDocumentSelector(value: DocumentSelector): DocumentSelector
Returns DocumentSelector
asDocumentSymbol
- asDocumentSymbol(
value: DocumentSymbol,
token?: CancellationToken,
): DocumentSymbol Returns DocumentSymbol
asDocumentSymbols
- asDocumentSymbols(
value: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- value: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asDocumentSymbols(
value: DocumentSymbol[],
token?: CancellationToken,
): Promise<DocumentSymbol[]> Returns Promise<DocumentSymbol[]>
- asDocumentSymbols(
value: undefined | null | DocumentSymbol[],
token?: CancellationToken,
): Promise<undefined | DocumentSymbol[]> Parameters
- value: undefined | null | DocumentSymbol[]
Optionaltoken: CancellationToken
Returns Promise<undefined | DocumentSymbol[]>
asFoldingRange
- asFoldingRange(r: FoldingRange): FoldingRange
Returns FoldingRange
asFoldingRangeKind
- asFoldingRangeKind(kind: undefined | string): undefined | FoldingRangeKind
Returns undefined | FoldingRangeKind
asFoldingRanges
- asFoldingRanges(
foldingRanges: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- foldingRanges: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asFoldingRanges(
foldingRanges: FoldingRange[],
token?: CancellationToken,
): Promise<FoldingRange[]> Parameters
- foldingRanges: FoldingRange[]
Optionaltoken: CancellationToken
Returns Promise<FoldingRange[]>
- asFoldingRanges(
foldingRanges: undefined | null | FoldingRange[],
token?: CancellationToken,
): Promise<undefined | FoldingRange[]> Parameters
- foldingRanges: undefined | null | FoldingRange[]
Optionaltoken: CancellationToken
Returns Promise<undefined | FoldingRange[]>
asGlobPattern
- asGlobPattern(pattern: undefined | null): undefined
Parameters
- pattern: undefined | null
Returns undefined
- asGlobPattern(pattern: GlobPattern): undefined | GlobPattern
Returns undefined | GlobPattern
asHover
- asHover(hover: undefined | null): undefined
Returns undefined
- asHover(hover: Hover): Hover
Returns Hover
- asHover(hover: undefined | null | Hover): undefined | Hover
Parameters
- hover: undefined | null | Hover
Returns undefined | Hover
asInlayHint
- asInlayHint(value: InlayHint, token?: CancellationToken): Promise<InlayHint>
Parameters
- value: InlayHint
Optionaltoken: CancellationToken
Returns Promise<InlayHint>
asInlayHints
- asInlayHints(
values: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- values: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asInlayHints(
values: InlayHint[],
token?: CancellationToken,
): Promise<InlayHint[]> Parameters
- values: InlayHint[]
Optionaltoken: CancellationToken
Returns Promise<InlayHint[]>
- asInlayHints(
values: undefined | null | InlayHint[],
token?: CancellationToken,
): Promise<undefined | InlayHint[]> Parameters
- values: undefined | null | InlayHint[]
Optionaltoken: CancellationToken
Returns Promise<undefined | InlayHint[]>
asInlineCompletionItem
- asInlineCompletionItem(item: InlineCompletionItem): InlineCompletionItem
Returns InlineCompletionItem
asInlineCompletionResult
- asInlineCompletionResult(
value: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- value: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asInlineCompletionResult(
value: InlineCompletionList,
token?: CancellationToken,
): Promise<InlineCompletionList> Returns Promise<InlineCompletionList>
- asInlineCompletionResult(
value: InlineCompletionItem[],
token?: CancellationToken,
): Promise<InlineCompletionItem[]> Returns Promise<InlineCompletionItem[]>
- asInlineCompletionResult(
value: undefined | null | InlineCompletionList | InlineCompletionItem[],
token?: CancellationToken,
): Promise<undefined | InlineCompletionList | InlineCompletionItem[]> Returns Promise<undefined | InlineCompletionList | InlineCompletionItem[]>
asInlineValue
- asInlineValue(value: InlineValue): InlineValue
Returns InlineValue
asInlineValues
- asInlineValues(
values: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- values: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asInlineValues(
values: InlineValue[],
token?: CancellationToken,
): Promise<InlineValue[]> Returns Promise<InlineValue[]>
- asInlineValues(
values: undefined | null | InlineValue[],
token?: CancellationToken,
): Promise<undefined | InlineValue[]> Parameters
- values: undefined | null | InlineValue[]
Optionaltoken: CancellationToken
Returns Promise<undefined | InlineValue[]>
asLinkedEditingRanges
- asLinkedEditingRanges(
value: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- value: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asLinkedEditingRanges(
value: LinkedEditingRanges,
token?: CancellationToken,
): Promise<LinkedEditingRanges> Returns Promise<LinkedEditingRanges>
- asLinkedEditingRanges(
value: undefined | null | LinkedEditingRanges,
token?: CancellationToken,
): Promise<undefined | LinkedEditingRanges> Returns Promise<undefined | LinkedEditingRanges>
asLocation
- asLocation(item: Location): Location
Returns Location
- asLocation(item: undefined | null): undefined
Returns undefined
- asLocation(item: undefined | null | Location): undefined | Location
Returns undefined | Location
asParameterInformation
- asParameterInformation(item: ParameterInformation): ParameterInformation
Returns ParameterInformation
asParameterInformations
- asParameterInformations(
item: ParameterInformation[],
token?: CancellationToken,
): Promise<ParameterInformation[]> Returns Promise<ParameterInformation[]>
asPosition
- asPosition(value: undefined | null): undefined
Returns undefined
- asPosition(value: Position): Position
Returns Position
- asPosition(value: undefined | null | Position): undefined | Position
Returns undefined | Position
asRange
- asRange(value: undefined | null): undefined
Returns undefined
- asRange(value: Range): Range
Returns Range
- asRange(value: undefined | null | Range): undefined | Range
Parameters
- value: undefined | null | Range
Returns undefined | Range
asRanges
- asRanges(items: readonly Range[], token?: CancellationToken): Promise<Range[]>
Parameters
- items: readonly Range[]
Optionaltoken: CancellationToken
Returns Promise<Range[]>
asReferences
- asReferences(
values: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- values: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asReferences(values: Location[], token?: CancellationToken): Promise<Location[]>
Parameters
- values: Location[]
Optionaltoken: CancellationToken
Returns Promise<Location[]>
- asReferences(
values: undefined | null | Location[],
token?: CancellationToken,
): Promise<undefined | Location[]> Parameters
- values: undefined | null | Location[]
Optionaltoken: CancellationToken
Returns Promise<undefined | Location[]>
asSelectionRange
- asSelectionRange(selectionRange: SelectionRange): SelectionRange
Returns SelectionRange
asSelectionRanges
- asSelectionRanges(
selectionRanges: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- selectionRanges: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asSelectionRanges(
selectionRanges: SelectionRange[],
token?: CancellationToken,
): Promise<SelectionRange[]> Returns Promise<SelectionRange[]>
- asSelectionRanges(
selectionRanges: undefined | null | SelectionRange[],
token?: CancellationToken,
): Promise<undefined | SelectionRange[]> Parameters
- selectionRanges: undefined | null | SelectionRange[]
Optionaltoken: CancellationToken
Returns Promise<undefined | SelectionRange[]>
asSemanticTokens
- asSemanticTokens(
value: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- value: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asSemanticTokens(
value: SemanticTokens,
token?: CancellationToken,
): Promise<SemanticTokens> Returns Promise<SemanticTokens>
- asSemanticTokens(
value: undefined | null | SemanticTokens,
token?: CancellationToken,
): Promise<undefined | SemanticTokens> Parameters
- value: undefined | null | SemanticTokens
Optionaltoken: CancellationToken
Returns Promise<undefined | SemanticTokens>
asSemanticTokensEdit
- asSemanticTokensEdit(value: SemanticTokensEdit): SemanticTokensEdit
Returns SemanticTokensEdit
asSemanticTokensEdits
- asSemanticTokensEdits(
value: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- value: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asSemanticTokensEdits(
value: SemanticTokensDelta,
token?: CancellationToken,
): Promise<SemanticTokensEdits> Returns Promise<SemanticTokensEdits>
- asSemanticTokensEdits(
value: undefined | null | SemanticTokensDelta,
token?: CancellationToken,
): Promise<undefined | SemanticTokensEdits> Returns Promise<undefined | SemanticTokensEdits>
asSemanticTokensLegend
- asSemanticTokensLegend(value: SemanticTokensLegend): SemanticTokensLegend
Returns SemanticTokensLegend
asSignatureHelp
- asSignatureHelp(
item: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- item: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asSignatureHelp(
item: SignatureHelp,
token?: CancellationToken,
): Promise<SignatureHelp> Returns Promise<SignatureHelp>
- asSignatureHelp(
item: undefined | null | SignatureHelp,
token?: CancellationToken,
): Promise<undefined | SignatureHelp> Parameters
- item: undefined | null | SignatureHelp
Optionaltoken: CancellationToken
Returns Promise<undefined | SignatureHelp>
asSignatureInformation
- asSignatureInformation(
item: SignatureInformation,
token?: CancellationToken,
): Promise<SignatureInformation> Returns Promise<SignatureInformation>
asSignatureInformations
- asSignatureInformations(
items: SignatureInformation[],
token?: CancellationToken,
): Promise<SignatureInformation[]> Returns Promise<SignatureInformation[]>
asSymbolInformations
- asSymbolInformations(
values: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- values: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asSymbolInformations(
values: SymbolInformation[] | WorkspaceSymbol[],
token?: CancellationToken,
): Promise<SymbolInformation[]> Returns Promise<SymbolInformation[]>
- asSymbolInformations(
values: undefined | null | SymbolInformation[] | WorkspaceSymbol[],
token?: CancellationToken,
): Promise<undefined | SymbolInformation[]> Returns Promise<undefined | SymbolInformation[]>
asSymbolKind
- asSymbolKind(item: SymbolKind): SymbolKind
Returns SymbolKind
asSymbolTag
- asSymbolTag(item: 1): undefined | SymbolTag
Returns undefined | SymbolTag
asSymbolTags
- asSymbolTags(items: undefined | null): undefined
Returns undefined
- asSymbolTags(items: readonly 1[]): SymbolTag[]
Returns SymbolTag[]
- asSymbolTags(items: undefined | null | readonly 1[]): undefined | SymbolTag[]
Parameters
- items: undefined | null | readonly 1[]
Returns undefined | SymbolTag[]
asTextEdit
- asTextEdit(edit: undefined | null): undefined
Returns undefined
- asTextEdit(edit: TextEdit): TextEdit
Returns TextEdit
- asTextEdit(edit: undefined | null | TextEdit): undefined | TextEdit
Returns undefined | TextEdit
asTextEdits
- asTextEdits(
items: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- items: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asTextEdits(items: TextEdit[], token?: CancellationToken): Promise<TextEdit[]>
Parameters
- items: TextEdit[]
Optionaltoken: CancellationToken
Returns Promise<TextEdit[]>
- asTextEdits(
items: undefined | null | TextEdit[],
token?: CancellationToken,
): Promise<undefined | TextEdit[]> Parameters
- items: undefined | null | TextEdit[]
Optionaltoken: CancellationToken
Returns Promise<undefined | TextEdit[]>
asTypeHierarchyItem
- asTypeHierarchyItem(item: null): undefined
Returns undefined
- asTypeHierarchyItem(item: TypeHierarchyItem): TypeHierarchyItem
Returns TypeHierarchyItem
- asTypeHierarchyItem(
item: null | TypeHierarchyItem,
): undefined | TypeHierarchyItem Returns undefined | TypeHierarchyItem
asTypeHierarchyItems
- asTypeHierarchyItems(items: null, token?: CancellationToken): Promise<undefined>
Parameters
- items: null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asTypeHierarchyItems(
items: TypeHierarchyItem[],
token?: CancellationToken,
): Promise<TypeHierarchyItem[]> Returns Promise<TypeHierarchyItem[]>
- asTypeHierarchyItems(
items: null | TypeHierarchyItem[],
token?: CancellationToken,
): Promise<undefined | TypeHierarchyItem[]> Returns Promise<undefined | TypeHierarchyItem[]>
asUri
- asUri(value: string): Uri
Returns Uri
asWorkspaceEdit
- asWorkspaceEdit(
item: undefined | null,
token?: CancellationToken,
): Promise<undefined> Parameters
- item: undefined | null
Optionaltoken: CancellationToken
Returns Promise<undefined>
- asWorkspaceEdit(
item: WorkspaceEdit,
token?: CancellationToken,
): Promise<WorkspaceEdit> Returns Promise<WorkspaceEdit>
- asWorkspaceEdit(
item: undefined | null | WorkspaceEdit,
token?: CancellationToken,
): Promise<undefined | WorkspaceEdit> Parameters
- item: undefined | null | WorkspaceEdit
Optionaltoken: CancellationToken
Returns Promise<undefined | WorkspaceEdit>