@vue/typescript
Advanced tools
Comparing version 1.7.8 to 1.7.9
import * as vue from '@vue/language-core'; | ||
export declare function createLanguageService(host: vue.LanguageServiceHost, vueCompilerOptions: Partial<vue.VueCompilerOptions>, ts: typeof import('typescript/lib/tsserverlibrary')): { | ||
import type { ServiceEnvironment } from '@volar/language-service'; | ||
export declare function createLanguageService(host: vue.TypeScriptLanguageHost, vueCompilerOptions: Partial<vue.VueCompilerOptions>, ts: typeof import('typescript/lib/tsserverlibrary'), env: ServiceEnvironment): { | ||
__internal__: { | ||
languageServiceHost: import("typescript/lib/tsserverlibrary").LanguageServiceHost; | ||
languageService: import("typescript/lib/tsserverlibrary").LanguageService; | ||
context: { | ||
typescript: { | ||
languageServiceHost: import("typescript/lib/tsserverlibrary").LanguageServiceHost; | ||
}; | ||
virtualFiles: { | ||
allSources(): vue.Source[]; | ||
updateSource(fileName: string, snapshot: import("typescript/lib/tsserverlibrary").IScriptSnapshot, languageId: string | undefined): vue.VirtualFile | undefined; | ||
deleteSource(fileName: string): void; | ||
getSource(fileName: string): vue.Source | undefined; | ||
hasSource: (fileName: string) => boolean; | ||
getMirrorMap: (file: vue.VirtualFile) => vue.MirrorMap | undefined; | ||
getMaps: (virtualFile: vue.VirtualFile) => [string, vue.SourceMap<vue.FileRangeCapabilities>][]; | ||
hasVirtualFile(fileName: string): boolean; | ||
getVirtualFile(fileName: string): readonly [vue.VirtualFile, vue.Source] | readonly [undefined, undefined]; | ||
}; | ||
}; | ||
context: vue.LanguageContext; | ||
}; | ||
} & import("typescript/lib/tsserverlibrary").LanguageService; |
@@ -6,4 +6,6 @@ "use strict"; | ||
const vue = require("@vue/language-core"); | ||
function createLanguageService(host, vueCompilerOptions, ts) { | ||
const languageService = base.createLanguageService(host, vue.createLanguages(host.getCompilationSettings(), vueCompilerOptions, ts), ts); | ||
function createLanguageService(host, vueCompilerOptions, ts, env) { | ||
const languageContext = vue.createLanguageContext(host, vue.createLanguages(host.getCompilationSettings(), vueCompilerOptions, ts)); | ||
const sys = base.createSys(languageContext, ts, env); | ||
const languageService = base.createLanguageService(languageContext, ts, sys); | ||
const getCompletionsAtPosition = languageService.getCompletionsAtPosition; | ||
@@ -10,0 +12,0 @@ languageService.getCompletionsAtPosition = (fileName, position, options) => { |
{ | ||
"name": "@vue/typescript", | ||
"version": "1.7.8", | ||
"version": "1.7.9", | ||
"main": "out/index.js", | ||
@@ -16,6 +16,6 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/typescript": "1.6.9", | ||
"@vue/language-core": "1.7.8" | ||
"@volar/typescript": "1.7.3", | ||
"@vue/language-core": "1.7.9" | ||
}, | ||
"gitHead": "9841dc5c7b19c2b1d24fcc95a808f29af39710b8" | ||
"gitHead": "70f9ebedbc55a8d342ec425cc483dfe39c4b7489" | ||
} |
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
3191
29
+ Added@volar/language-core@1.7.3(transitive)
+ Added@volar/source-map@1.7.3(transitive)
+ Added@volar/typescript@1.7.3(transitive)
+ Added@vue/language-core@1.7.9(transitive)
- Removed@volar/language-core@1.6.9(transitive)
- Removed@volar/source-map@1.6.9(transitive)
- Removed@volar/typescript@1.6.9(transitive)
- Removed@vue/language-core@1.7.8(transitive)
Updated@volar/typescript@1.7.3
Updated@vue/language-core@1.7.9