@astrojs/ts-plugin
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -13,2 +13,4 @@ "use strict"; | ||
(0, typescript_1.decorateLanguageServiceHost)(virtualFiles, info.languageServiceHost, ts, ['.astro']); | ||
// HACK: AutoImportProviderProject's script kind does not match the one of the language service host here | ||
// this causes TypeScript to throw and crash. So, we'll fake being a TS file here for now until they fix it | ||
const getScriptKind = info.languageServiceHost.getScriptKind?.bind(info.languageServiceHost.getScriptKind); | ||
@@ -18,3 +20,3 @@ if (getScriptKind) { | ||
if (fileName.endsWith('.astro')) { | ||
return ts.ScriptKind.TSX; | ||
return ts.ScriptKind.TS; | ||
} | ||
@@ -21,0 +23,0 @@ return getScriptKind(fileName); |
{ | ||
"name": "@astrojs/ts-plugin", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"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
15136
259