vscode-typescript-languageservice
Advanced tools
Comparing version 0.25.18 to 0.25.19
import type * as ts from 'typescript'; | ||
import { Position, CompletionItem } from 'vscode-languageserver/node'; | ||
import type { TextDocument } from 'vscode-languageserver-textdocument'; | ||
export interface Data { | ||
fileName: string; | ||
offset: number; | ||
source: string | undefined; | ||
name: string; | ||
options: ts.GetCompletionsAtPositionOptions | undefined; | ||
} | ||
export declare function register(languageService: ts.LanguageService, getTextDocument: (uri: string) => TextDocument | undefined, rootDir: string): (uri: string, position: Position, options?: ts.GetCompletionsAtPositionOptions | undefined) => CompletionItem[]; | ||
export declare function handleKindModifiers(item: CompletionItem, entry: ts.CompletionEntry | ts.CompletionEntryDetails): void; |
@@ -29,2 +29,9 @@ "use strict"; | ||
.map(entry => { | ||
const data = { | ||
fileName, | ||
offset, | ||
source: entry.source, | ||
name: entry.name, | ||
options: _options, | ||
}; | ||
let item = { | ||
@@ -41,9 +48,3 @@ label: entry.name, | ||
data: { | ||
__volar__: { | ||
fileName, | ||
offset, | ||
source: entry.source, | ||
name: entry.name, | ||
options: _options, | ||
}, | ||
__volar__: data, | ||
...entry.data, | ||
@@ -50,0 +51,0 @@ }, |
@@ -9,7 +9,8 @@ "use strict"; | ||
return (item, newOffset) => { | ||
const fileName = item.data.__volar__.fileName; | ||
const offset = newOffset !== null && newOffset !== void 0 ? newOffset : item.data.__volar__.offset; | ||
const name = item.data.__volar__.name; | ||
const source = item.data.__volar__.source; | ||
const options = item.data.__volar__.options; | ||
const data = item.data.__volar__; | ||
const fileName = data.fileName; | ||
const offset = newOffset !== null && newOffset !== void 0 ? newOffset : data.offset; | ||
const name = data.name; | ||
const source = data.source; | ||
const options = data.options; | ||
let detail; | ||
@@ -16,0 +17,0 @@ try { |
{ | ||
"name": "vscode-typescript-languageservice", | ||
"version": "0.25.18", | ||
"version": "0.25.19", | ||
"main": "out/index.js", | ||
@@ -19,3 +19,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/shared": "^0.25.18", | ||
"@volar/shared": "^0.25.19", | ||
"typescript-vscode-sh-plugin": "^0.6.14", | ||
@@ -26,3 +26,3 @@ "upath": "^2.0.1", | ||
}, | ||
"gitHead": "50788a29e3c3aa2e7848e6df2a680ae1e40a7cf5" | ||
"gitHead": "58e48b4ae205b355fd49681466c265fd1feabe7f" | ||
} |
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
108826
60
2093
Updated@volar/shared@^0.25.19