@vtsls/language-service
Advanced tools
Comparing version 0.1.18 to 0.1.19
import * as vscode from "vscode"; | ||
import * as lsp from "vscode-languageserver-protocol"; | ||
import { CommandsShimService } from "../shims/commands"; | ||
import { CodeActionRegistryHandle } from "../shims/languageFeatures"; | ||
@@ -13,12 +12,5 @@ import { TSLspConverter } from "../utils/converter"; | ||
export declare class CodeActionCache extends Disposable { | ||
static readonly id = "_vtsls.codeActionCacheCommand"; | ||
constructor(commands: CommandsShimService); | ||
private readonly codeActionCache; | ||
store(items: (vscode.Command | vscode.CodeAction)[], providerId: number): { | ||
data: CodeActionData; | ||
command: { | ||
command: string; | ||
title: string; | ||
arguments: CodeActionData[]; | ||
}; | ||
}[]; | ||
@@ -35,3 +27,3 @@ resolveData(data?: any): ({ | ||
private cache; | ||
constructor(registry: CodeActionRegistryHandle, commands: CommandsShimService, converter: TSLspConverter, clientCapabilities: lsp.ClientCapabilities); | ||
constructor(registry: CodeActionRegistryHandle, converter: TSLspConverter, clientCapabilities: lsp.ClientCapabilities); | ||
codeAction(doc: vscode.TextDocument, params: Omit<lsp.CodeActionParams, "textDocument">, token: lsp.CancellationToken): Promise<(lsp.Command | lsp.CodeAction)[] | null>; | ||
@@ -38,0 +30,0 @@ codeActionResolve(item: lsp.CodeAction, token: lsp.CancellationToken): Promise<lsp.CodeAction>; |
@@ -38,2 +38,3 @@ export declare class API { | ||
static readonly v510: API; | ||
static readonly v520: API; | ||
static fromVersionString(versionString: string): API; | ||
@@ -40,0 +41,0 @@ private constructor(); |
@@ -5,8 +5,12 @@ import * as vscode from "vscode"; | ||
import * as types from "../shims/types"; | ||
export declare class TSLspConverter { | ||
declare class LspInvariantConverter { | ||
convertTextEdit: (edit: vscode.TextEdit) => lsp.TextEdit; | ||
convertPositionToLsp: (pos: vscode.Position) => lsp.Position; | ||
convertRangeToLsp: (range: vscode.Range) => lsp.Range; | ||
convertPositionFromLsp: (position: lsp.Position) => vscode.Position; | ||
convertRangeFromLsp: (range: lsp.Range) => vscode.Range; | ||
} | ||
export declare class TSLspConverter extends LspInvariantConverter { | ||
private readonly clientCapabilities; | ||
constructor(clientCapabilities: lsp.ClientCapabilities); | ||
convertTextEdit: (edit: vscode.TextEdit) => lsp.TextEdit; | ||
convertPosition: (pos: vscode.Position) => lsp.Position; | ||
convertRange: (range: vscode.Range) => lsp.Range; | ||
convertWorkspaceEdit: (edit: vscode.WorkspaceEdit) => lsp.WorkspaceEdit; | ||
@@ -45,2 +49,3 @@ convertTextDocuemntFromLsp: (textDocument: TextDocument) => vscode.TextDocument; | ||
} | ||
export {}; | ||
//# sourceMappingURL=converter.d.ts.map |
{ | ||
"name": "@vtsls/language-service", | ||
"description": "LSP wrapper for typescript extension of vscode", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"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 too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2268212
151
56801