@volar/typescript
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -65,4 +65,5 @@ "use strict"; | ||
fileExists(fileName) { | ||
if (extraFileExtension && fileName.endsWith('.d.ts')) { | ||
const patchResult = languageServiceHost.fileExists(fileName.slice(0, -5)); | ||
if (extraFileExtension && fileName.endsWith(`.d.${extraFileExtension}.ts`)) { | ||
const patchResult = languageServiceHost.fileExists(fileName.slice(0, -`.d.${extraFileExtension}.ts`.length) | ||
+ `.${extraFileExtension}`); | ||
if (patchResult) { | ||
@@ -77,3 +78,5 @@ isPatchResult = true; | ||
if (isPatchResult && result.resolvedModule) { | ||
result.resolvedModule.resolvedFileName = result.resolvedModule.resolvedFileName.slice(0, -5); | ||
result.resolvedModule.resolvedFileName = result.resolvedModule.resolvedFileName | ||
.slice(0, -`.d.${extraFileExtension}.ts`.length) | ||
+ `.${extraFileExtension}`; | ||
const sourceFile = files.get(fileNameToFileId(result.resolvedModule.resolvedFileName)); | ||
@@ -80,0 +83,0 @@ if (sourceFile?.generated) { |
{ | ||
"name": "@volar/typescript", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"license": "MIT", | ||
@@ -15,3 +15,3 @@ "files": [ | ||
"dependencies": { | ||
"@volar/language-core": "2.0.2", | ||
"@volar/language-core": "2.0.3", | ||
"path-browserify": "^1.0.1" | ||
@@ -22,5 +22,5 @@ }, | ||
"@types/path-browserify": "latest", | ||
"@volar/language-service": "2.0.2" | ||
"@volar/language-service": "2.0.3" | ||
}, | ||
"gitHead": "ae8bccc570e6ee752693b1bfd9e815668b5f32b9" | ||
"gitHead": "d8a6dc056d37779ff6486f545f45bc57b22c02e4" | ||
} |
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
163428
3569
+ Added@volar/language-core@2.0.3(transitive)
+ Added@volar/source-map@2.0.3(transitive)
- Removed@volar/language-core@2.0.2(transitive)
- Removed@volar/source-map@2.0.2(transitive)
Updated@volar/language-core@2.0.3