@volar/typescript
Advanced tools
Comparing version 1.0.24 to 1.1.0-alpha.0
@@ -6,4 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
function createLanguageService(host, mods) { | ||
var _a; | ||
const core = embedded.createLanguageContext(host, mods); | ||
const ts = host.getTypeScriptModule(); | ||
const ts = (_a = host.getTypeScriptModule) === null || _a === void 0 ? void 0 : _a.call(host); | ||
if (!ts) { | ||
throw new Error('TypeScript module not provided.'); | ||
} | ||
const ls = ts.createLanguageService(core.typescript.languageServiceHost); | ||
@@ -50,5 +54,5 @@ return new Proxy({ | ||
if (file) { | ||
embedded.forEachEmbeddedFile(file, embedded => { | ||
if (embedded.kind && embedded.capabilities.codeAction) { | ||
edits = edits.concat(ls.organizeImports(Object.assign(Object.assign({}, args), { fileName: embedded.fileName }), formatOptions, preferences)); | ||
embedded.forEachEmbeddedFile(file, embeddedFile => { | ||
if (embeddedFile.kind === embedded.FileKind.TypeScriptHostFile && embeddedFile.capabilities.codeAction) { | ||
edits = edits.concat(ls.organizeImports(Object.assign(Object.assign({}, args), { fileName: embeddedFile.fileName }), formatOptions, preferences)); | ||
} | ||
@@ -55,0 +59,0 @@ }); |
{ | ||
"name": "@volar/typescript", | ||
"version": "1.0.24", | ||
"version": "1.1.0-alpha.0", | ||
"main": "out/index.js", | ||
@@ -12,9 +12,9 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://github.com/johnsoncodehk/volar.git", | ||
"url": "https://github.com/volarjs/framework.git", | ||
"directory": "packages/typescript" | ||
}, | ||
"dependencies": { | ||
"@volar/language-core": "1.0.24" | ||
"@volar/language-core": "1.1.0-alpha.0" | ||
}, | ||
"gitHead": "46da609e8914e29642f4707dec31507ad51b03fc" | ||
"gitHead": "1cb85f17f5b90e40633e26710be7ecd4fd2994fb" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
21538
411
2
+ Added@volar/language-core@1.1.0-alpha.0(transitive)
+ Added@volar/source-map@1.1.0-alpha.0(transitive)
- Removed@volar/language-core@1.0.24(transitive)
- Removed@volar/source-map@1.0.24(transitive)