@volar/typescript
Advanced tools
Comparing version 2.3.0-alpha.4 to 2.3.0-alpha.5
@@ -13,3 +13,3 @@ "use strict"; | ||
if (serviceScript) { | ||
const map = language.maps.get(serviceScript.code, sourceScript.id); | ||
const map = language.maps.get(serviceScript.code); | ||
if (map) { | ||
@@ -16,0 +16,0 @@ return [serviceScript, sourceScript, map]; |
@@ -1,2 +0,2 @@ | ||
import { Language, SourceScript, TypeScriptExtraServiceScript } from '@volar/language-core'; | ||
import { Language, TypeScriptExtraServiceScript } from '@volar/language-core'; | ||
import type * as ts from 'typescript'; | ||
@@ -8,3 +8,3 @@ import type { createSys } from './createSys'; | ||
languageServiceHost: ts.LanguageServiceHost; | ||
getExtraServiceScript: (fileName: string) => [SourceScript<T>, TypeScriptExtraServiceScript] | undefined; | ||
getExtraServiceScript: (fileName: string) => TypeScriptExtraServiceScript | undefined; | ||
}; |
@@ -83,3 +83,3 @@ "use strict"; | ||
if (extraScriptRegistry.has(fileName)) { | ||
return extraScriptRegistry.get(fileName)[1].scriptKind; | ||
return extraScriptRegistry.get(fileName).scriptKind; | ||
} | ||
@@ -174,3 +174,3 @@ const sourceScript = language.scripts.get(asScrpitId(fileName)); | ||
tsFileNamesSet.add(extraServiceScript.fileName); | ||
extraScriptRegistry.set(extraServiceScript.fileName, [sourceScript, extraServiceScript]); | ||
extraScriptRegistry.set(extraServiceScript.fileName, extraServiceScript); | ||
} | ||
@@ -202,3 +202,3 @@ for (const code of (0, language_core_1.forEachEmbeddedCode)(sourceScript.generated.root)) { | ||
if (extraScriptRegistry.has(fileName)) { | ||
return extraScriptRegistry.get(fileName)[1].code.snapshot; | ||
return extraScriptRegistry.get(fileName).code.snapshot; | ||
} | ||
@@ -223,3 +223,3 @@ const sourceScript = language.scripts.get(asScrpitId(fileName)); | ||
if (extraScriptRegistry.has(fileName)) { | ||
const snapshot = extraScriptRegistry.get(fileName)[1].code.snapshot; | ||
const snapshot = extraScriptRegistry.get(fileName).code.snapshot; | ||
if (!version.map.has(snapshot)) { | ||
@@ -226,0 +226,0 @@ version.map.set(snapshot, version.lastVersion++); |
{ | ||
"name": "@volar/typescript", | ||
"version": "2.3.0-alpha.4", | ||
"version": "2.3.0-alpha.5", | ||
"license": "MIT", | ||
@@ -15,3 +15,3 @@ "files": [ | ||
"dependencies": { | ||
"@volar/language-core": "2.3.0-alpha.4", | ||
"@volar/language-core": "2.3.0-alpha.5", | ||
"path-browserify": "^1.0.1", | ||
@@ -23,5 +23,5 @@ "vscode-uri": "^3.0.8" | ||
"@types/path-browserify": "latest", | ||
"@volar/language-service": "2.3.0-alpha.4" | ||
"@volar/language-service": "2.3.0-alpha.5" | ||
}, | ||
"gitHead": "8ab3ce02b06a410e9321eea3e9f23d36f97fedda" | ||
"gitHead": "c3f6867de39095913ceaa2256ad35a9ca1a90487" | ||
} |
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
181229
42
3876
+ Added@volar/language-core@2.3.0-alpha.5(transitive)
+ Added@volar/source-map@2.3.0-alpha.5(transitive)
- Removed@volar/language-core@2.3.0-alpha.4(transitive)
- Removed@volar/source-map@2.3.0-alpha.4(transitive)