@astrojs/ts-plugin
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -13,2 +13,11 @@ "use strict"; | ||
(0, typescript_1.decorateLanguageServiceHost)(virtualFiles, info.languageServiceHost, ts, ['.astro']); | ||
const getScriptKind = info.languageServiceHost.getScriptKind?.bind(info.languageServiceHost.getScriptKind); | ||
if (getScriptKind) { | ||
info.languageServiceHost.getScriptKind = (fileName) => { | ||
if (fileName.endsWith('.astro')) { | ||
return ts.ScriptKind.TSX; | ||
} | ||
return getScriptKind(fileName); | ||
}; | ||
} | ||
return info.languageService; | ||
@@ -15,0 +24,0 @@ }, |
{ | ||
"name": "@astrojs/ts-plugin", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A TypeScript Plugin providing Astro intellisense", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
14899
257