@volar/typescript
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -81,3 +81,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
continue; | ||
for (const end of core.mapper.fromEmbeddedLocation(diagnostic.file.fileName, diagnostic.start + diagnostic.length)) { | ||
for (const end of core.mapper.fromEmbeddedLocation(diagnostic.file.fileName, diagnostic.start + diagnostic.length, true)) { | ||
if (end.mapping && !end.mapping.data.diagnostic) | ||
@@ -84,0 +84,0 @@ continue; |
import type * as ts from 'typescript/lib/tsserverlibrary'; | ||
import * as embedded from '@volar/language-core'; | ||
export declare function createLanguageService(host: embedded.LanguageServiceHost, mods: embedded.LanguageModule[]): ts.LanguageService; | ||
export declare function createLanguageService(host: embedded.LanguageServiceHost, mods: embedded.LanguageModule[]): { | ||
__internal__: { | ||
languageService: ts.LanguageService; | ||
context: embedded.EmbeddedLanguageContext; | ||
}; | ||
} & ts.LanguageService; |
@@ -32,2 +32,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
getProgram: () => (0, getProgram_1.getProgram)(ts, core, ls), | ||
__internal__: { | ||
context: core, | ||
languageService: ls, | ||
}, | ||
}, { | ||
@@ -46,3 +50,3 @@ get: (target, property) => { | ||
if (file) { | ||
embedded.forEachEmbeddeds(file[0].embeddeds, embedded => { | ||
embedded.forEachEmbeddeds(file[0], embedded => { | ||
if (embedded.kind && embedded.capabilities.codeAction) { | ||
@@ -49,0 +53,0 @@ edits = edits.concat(ls.organizeImports(Object.assign(Object.assign({}, args), { fileName: embedded.fileName }), formatOptions, preferences)); |
{ | ||
"name": "@volar/typescript", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"main": "out/index.js", | ||
@@ -16,5 +16,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/language-core": "1.0.13" | ||
"@volar/language-core": "1.0.14" | ||
}, | ||
"gitHead": "cba2eba187b2d82e1d45dd86b3edeab0ca7caad6" | ||
"gitHead": "ce4d48b37db784400e15fe08282edc836e24d4cd" | ||
} |
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
19829
377
+ Added@volar/language-core@1.0.14(transitive)
+ Added@volar/source-map@1.0.14(transitive)
- Removed@volar/language-core@1.0.13(transitive)
- Removed@volar/source-map@1.0.13(transitive)
Updated@volar/language-core@1.0.14