@vtsls/language-service
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -37,3 +37,3 @@ import * as lsp from "vscode-languageserver-protocol"; | ||
workspaceSymbol: (params: lsp.WorkspaceSymbolParams, token: lsp.CancellationToken) => Promise<lsp.SymbolInformation[] | undefined>; | ||
codeAction: (params: lsp.CodeActionParams, token: lsp.CancellationToken) => Promise<(lsp.Command | lsp.CodeAction)[] | null>; | ||
codeAction: (params: lsp.CodeActionParams, token: lsp.CancellationToken) => Promise<(lsp.CodeAction | lsp.Command)[] | null>; | ||
codeActionResolve: (item: lsp.CodeAction, token: lsp.CancellationToken) => Promise<lsp.CodeAction>; | ||
@@ -46,3 +46,3 @@ executeCommand: (params: lsp.ExecuteCommandParams) => Promise<any>; | ||
documentOnTypeFormatting: (params: lsp.DocumentOnTypeFormattingParams, token: lsp.CancellationToken) => Promise<lsp.TextEdit[] | undefined>; | ||
prepareRename: (params: lsp.PrepareRenameParams, token: lsp.CancellationToken) => Promise<lsp.Range | lsp.ResponseError<void> | { | ||
prepareRename: (params: lsp.PrepareRenameParams, token: lsp.CancellationToken) => Promise<lsp.Range | { | ||
range: lsp.Range; | ||
@@ -55,4 +55,4 @@ placeholder: string; | ||
prepareCallHierachy: (params: lsp.CallHierarchyPrepareParams, token: lsp.CancellationToken) => Promise<lsp.CallHierarchyItem[] | null>; | ||
incomingCalls: (args_0: lsp.CallHierarchyIncomingCallsParams, args_1: lsp.CancellationToken) => Promise<lsp.CallHierarchyIncomingCall[] | null>; | ||
outgoingCalls: (args_0: lsp.CallHierarchyOutgoingCallsParams, args_1: lsp.CancellationToken) => Promise<lsp.CallHierarchyOutgoingCall[] | null>; | ||
incomingCalls: (params: lsp.CallHierarchyIncomingCallsParams, token: lsp.CancellationToken) => Promise<lsp.CallHierarchyIncomingCall[] | null>; | ||
outgoingCalls: (params: lsp.CallHierarchyOutgoingCallsParams, token: lsp.CancellationToken) => Promise<lsp.CallHierarchyOutgoingCall[] | null>; | ||
inlayHint: (params: lsp.InlayHintParams, token: lsp.CancellationToken) => Promise<lsp.InlayHint[] | null>; | ||
@@ -59,0 +59,0 @@ codeLens: (params: lsp.CodeLensParams, token: lsp.CancellationToken) => Promise<lsp.CodeLens[] | undefined>; |
@@ -15,3 +15,2 @@ import { EditorSettings } from "typescript/lib/tsserverlibrary"; | ||
$changeConfiguration(config: TSLanguageServiceConfig): void; | ||
$getVtslsDocConfig(doc: vscode.TextDocument, section?: string): vscode.WorkspaceConfiguration; | ||
} |
@@ -1,4 +0,1 @@ | ||
/// <reference path="../../vscode/src/vscode-dts/vscode.d.ts" /> | ||
/// <reference path="../../vscode/src/vscode-dts/vscode.proposed.resolvers.d.ts" /> | ||
/// <reference path="../../vscode/src/vscode-dts/vscode.proposed.workspaceTrust.d.ts" /> | ||
import { Emitter } from "vscode-languageserver-protocol"; | ||
@@ -5,0 +2,0 @@ import { URI, Utils } from "vscode-uri"; |
@@ -111,3 +111,3 @@ import * as vscode from "vscode"; | ||
workspaceSymbol(params: lsp.WorkspaceSymbolParams, token: lsp.CancellationToken): Promise<lsp.SymbolInformation[] | undefined>; | ||
codeAction(params: lsp.CodeActionParams, token: lsp.CancellationToken): Promise<(lsp.Command | lsp.CodeAction)[] | null>; | ||
codeAction(params: lsp.CodeActionParams, token: lsp.CancellationToken): Promise<(lsp.CodeAction | lsp.Command)[] | null>; | ||
codeActionResolve(item: lsp.CodeAction, token: lsp.CancellationToken): Promise<lsp.CodeAction>; | ||
@@ -120,3 +120,3 @@ executeCommand(params: lsp.ExecuteCommandParams): Promise<any>; | ||
documentOnTypeFormatting(params: lsp.DocumentOnTypeFormattingParams, token: lsp.CancellationToken): Promise<lsp.TextEdit[] | undefined>; | ||
prepareRename(params: lsp.PrepareRenameParams, token: lsp.CancellationToken): Promise<lsp.Range | lsp.ResponseError<void> | { | ||
prepareRename(params: lsp.PrepareRenameParams, token: lsp.CancellationToken): Promise<lsp.Range | { | ||
range: lsp.Range; | ||
@@ -129,4 +129,4 @@ placeholder: string; | ||
prepareCallHierachy(params: lsp.CallHierarchyPrepareParams, token: lsp.CancellationToken): Promise<lsp.CallHierarchyItem[] | null>; | ||
incomingCalls({ item }: lsp.CallHierarchyIncomingCallsParams, token: lsp.CancellationToken): Promise<lsp.CallHierarchyIncomingCall[] | null>; | ||
outgoingCalls({ item }: lsp.CallHierarchyOutgoingCallsParams, token: lsp.CancellationToken): Promise<lsp.CallHierarchyOutgoingCall[] | null>; | ||
incomingCalls(params: lsp.CallHierarchyIncomingCallsParams, token: lsp.CancellationToken): Promise<lsp.CallHierarchyIncomingCall[] | null>; | ||
outgoingCalls(params: lsp.CallHierarchyOutgoingCallsParams, token: lsp.CancellationToken): Promise<lsp.CallHierarchyOutgoingCall[] | null>; | ||
inlayHint(params: lsp.InlayHintParams, token: lsp.CancellationToken): Promise<lsp.InlayHint[] | null>; | ||
@@ -133,0 +133,0 @@ codeLens(params: lsp.CodeLensParams, token: lsp.CancellationToken): Promise<lsp.CodeLens[] | undefined>; |
@@ -13,5 +13,5 @@ import * as vscode from "vscode"; | ||
createOutputChannel(name: string): vscode.OutputChannel; | ||
showErrorMessage(message: string, ...items: (vscode.MessageOptions | string | vscode.MessageItem)[]): Promise<string | lsp.MessageActionItem | vscode.MessageOptions | vscode.MessageItem | null>; | ||
showInformationMessage(message: string, ...items: (vscode.MessageOptions | string | vscode.MessageItem)[]): Promise<string | lsp.MessageActionItem | vscode.MessageOptions | vscode.MessageItem | null>; | ||
showWarningMessage(message: string, ...items: (vscode.MessageOptions | string | vscode.MessageItem)[]): Promise<string | lsp.MessageActionItem | vscode.MessageOptions | vscode.MessageItem | null>; | ||
showErrorMessage(message: string, ...items: (vscode.MessageOptions | string | vscode.MessageItem)[]): Promise<string | vscode.MessageOptions | vscode.MessageItem | lsp.MessageActionItem | null>; | ||
showInformationMessage(message: string, ...items: (vscode.MessageOptions | string | vscode.MessageItem)[]): Promise<string | vscode.MessageOptions | vscode.MessageItem | lsp.MessageActionItem | null>; | ||
showWarningMessage(message: string, ...items: (vscode.MessageOptions | string | vscode.MessageItem)[]): Promise<string | vscode.MessageOptions | vscode.MessageItem | lsp.MessageActionItem | null>; | ||
withProgress<R>(options: vscode.ProgressOptions, task: (progress: vscode.Progress<{ | ||
@@ -22,3 +22,3 @@ increment: number; | ||
showTextDocument(document: vscode.TextDocument): Promise<boolean>; | ||
_showMessagePrompt(type: lsp.MessageType, message: string, items: (vscode.MessageOptions | string | vscode.MessageItem)[]): Promise<string | lsp.MessageActionItem | vscode.MessageOptions | vscode.MessageItem | null>; | ||
_showMessagePrompt(type: lsp.MessageType, message: string, items: (vscode.MessageOptions | string | vscode.MessageItem)[]): Promise<string | vscode.MessageOptions | vscode.MessageItem | lsp.MessageActionItem | null>; | ||
} |
{ | ||
"name": "@vtsls/language-service", | ||
"description": "LSP wrapper for typescript extension of vscode", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "engines": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1566619