@volar/typescript
Advanced tools
Comparing version 2.3.0-alpha.0 to 2.3.0-alpha.1
@@ -1,2 +0,2 @@ | ||
import { Language, TypeScriptExtraServiceScript } from '@volar/language-core'; | ||
import { Language, SourceScript, 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) => TypeScriptExtraServiceScript | undefined; | ||
getExtraServiceScript: (fileName: string) => [SourceScript<T>, TypeScriptExtraServiceScript] | undefined; | ||
}; |
@@ -83,3 +83,3 @@ "use strict"; | ||
if (extraScriptRegistry.has(fileName)) { | ||
return extraScriptRegistry.get(fileName).scriptKind; | ||
return extraScriptRegistry.get(fileName)[1].scriptKind; | ||
} | ||
@@ -174,3 +174,3 @@ const sourceScript = language.scripts.get(asScrpitId(fileName)); | ||
tsFileNamesSet.add(extraServiceScript.fileName); | ||
extraScriptRegistry.set(extraServiceScript.fileName, extraServiceScript); | ||
extraScriptRegistry.set(extraServiceScript.fileName, [sourceScript, 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).code.snapshot; | ||
return extraScriptRegistry.get(fileName)[1].code.snapshot; | ||
} | ||
@@ -223,3 +223,3 @@ const sourceScript = language.scripts.get(asScrpitId(fileName)); | ||
if (extraScriptRegistry.has(fileName)) { | ||
const snapshot = extraScriptRegistry.get(fileName).code.snapshot; | ||
const snapshot = extraScriptRegistry.get(fileName)[1].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.0", | ||
"version": "2.3.0-alpha.1", | ||
"license": "MIT", | ||
@@ -15,3 +15,3 @@ "files": [ | ||
"dependencies": { | ||
"@volar/language-core": "2.3.0-alpha.0", | ||
"@volar/language-core": "2.3.0-alpha.1", | ||
"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.0" | ||
"@volar/language-service": "2.3.0-alpha.1" | ||
}, | ||
"gitHead": "f17c19f712651acde33cc2171a112e64db0b460e" | ||
"gitHead": "173be13e1d51c62cfe5ddc9926933d30a7aa1d11" | ||
} |
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
180657
+ Added@volar/language-core@2.3.0-alpha.1(transitive)
+ Added@volar/source-map@2.3.0-alpha.1(transitive)
- Removed@volar/language-core@2.3.0-alpha.0(transitive)
- Removed@volar/source-map@2.3.0-alpha.0(transitive)