Skip to content

[I] Server

Properties

PropertyModifierType
pendingMessagesreadonlyreadonly ServerLog[]
workspaceFoldersreadonlyreadonly ServerWorkspaceFolder[]

Methods

buildSemanticTokens()

buildSemanticTokens(params): Promise<SemanticTokens>

Parameters

ParameterType
paramsSemanticTokensParams

Returns

Promise<SemanticTokens>


checkChange()

checkChange(change): Promise<void>

Parameters

ParameterType
changeTextDocumentChangeEvent<TextDocument>

Returns

Promise<void>


compile()

compile(document): Promise<undefined | CompileResult>

Parameters

ParameterType
documentTextDocument | TextDocumentIdentifier

Returns

Promise<undefined | CompileResult>


complete()

complete(params): Promise<CompletionList>

Parameters

ParameterType
paramsCompletionParams

Returns

Promise<CompletionList>


documentClosed()

documentClosed(change): void

Parameters

ParameterType
changeTextDocumentChangeEvent<TextDocument>

Returns

void


executeCommand()

executeCommand(params): Promise<void>

Parameters

ParameterType
paramsExecuteCommandParams

Returns

Promise<void>


findDocumentHighlight()

findDocumentHighlight(params): Promise<DocumentHighlight[]>

Parameters

ParameterType
paramsDocumentHighlightParams

Returns

Promise<DocumentHighlight[]>


findReferences()

findReferences(params): Promise<Location[]>

Parameters

ParameterType
paramsReferenceParams

Returns

Promise<Location[]>


formatDocument()

formatDocument(params): Promise<TextEdit[]>

Parameters

ParameterType
paramsDocumentFormattingParams

Returns

Promise<TextEdit[]>


getCodeActions()

getCodeActions(params): Promise<CodeAction[]>

Parameters

ParameterType
paramsCodeActionParams

Returns

Promise<CodeAction[]>


getDocumentSymbols()

getDocumentSymbols(params): Promise<DocumentSymbol[]>

Parameters

ParameterType
paramsDocumentSymbolParams

Returns

Promise<DocumentSymbol[]>


getFoldingRanges()

getFoldingRanges(getFoldingRanges): Promise<FoldingRange[]>

Parameters

ParameterType
getFoldingRangesFoldingRangeParams

Returns

Promise<FoldingRange[]>


getHover()

getHover(params): Promise<Hover>

Parameters

ParameterType
paramsHoverParams

Returns

Promise<Hover>


getInitProjectContext()

getInitProjectContext(): Promise<InitProjectContext>

Returns

Promise<InitProjectContext>


getSemanticTokens()

getSemanticTokens(params): Promise<SemanticToken[]>

Parameters

ParameterType
paramsSemanticTokensParams

Returns

Promise<SemanticToken[]>


getSignatureHelp()

getSignatureHelp(params): Promise<undefined | SignatureHelp>

Parameters

ParameterType
paramsSignatureHelpParams

Returns

Promise<undefined | SignatureHelp>


gotoDefinition()

gotoDefinition(params): Promise<Location[]>

Parameters

ParameterType
paramsDefinitionParams

Returns

Promise<Location[]>


initialize()

initialize(params): Promise<InitializeResult<any>>

Parameters

ParameterType
paramsInitializeParams

Returns

Promise<InitializeResult<any>>


initialized()

initialized(params): void

Parameters

ParameterType
paramsInitializedParams

Returns

void


initProject()

initProject(param): Promise<boolean>

Parameters

ParameterType
paramobject
param.configScaffoldingConfig

Returns

Promise<boolean>


log()

log(log): void

Parameters

ParameterType
logServerLog

Returns

void


prepareRename()

prepareRename(params): Promise<undefined | Range>

Parameters

ParameterType
paramsPrepareRenameParams

Returns

Promise<undefined | Range>


rename()

rename(params): Promise<WorkspaceEdit>

Parameters

ParameterType
paramsRenameParams

Returns

Promise<WorkspaceEdit>


validateInitProjectTemplate()

validateInitProjectTemplate(param): Promise<boolean>

Parameters

ParameterType
paramobject
param.templateInitTemplate

Returns

Promise<boolean>


watchedFilesChanged()

watchedFilesChanged(params): void

Parameters

ParameterType
paramsDidChangeWatchedFilesParams

Returns

void


workspaceFoldersChanged()

workspaceFoldersChanged(e): Promise<void>

Parameters

ParameterType
eWorkspaceFoldersChangeEvent

Returns

Promise<void>