@volar/language-core
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -73,12 +73,15 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
getScriptKind(fileName) { | ||
if (virtualFiles.hasSourceFile(fileName)) | ||
return ts.ScriptKind.Deferred; | ||
switch (path_1.posix.extname(fileName)) { | ||
case '.js': return ts.ScriptKind.JS; | ||
case '.jsx': return ts.ScriptKind.JSX; | ||
case '.ts': return ts.ScriptKind.TS; | ||
case '.tsx': return ts.ScriptKind.TSX; | ||
case '.json': return ts.ScriptKind.JSON; | ||
default: return ts.ScriptKind.Unknown; | ||
if (ts) { | ||
if (virtualFiles.hasSourceFile(fileName)) | ||
return ts.ScriptKind.Deferred; | ||
switch (path_1.posix.extname(fileName)) { | ||
case '.js': return ts.ScriptKind.JS; | ||
case '.jsx': return ts.ScriptKind.JSX; | ||
case '.ts': return ts.ScriptKind.TS; | ||
case '.tsx': return ts.ScriptKind.TSX; | ||
case '.json': return ts.ScriptKind.JSON; | ||
default: return ts.ScriptKind.Unknown; | ||
} | ||
} | ||
return 0; | ||
}, | ||
@@ -85,0 +88,0 @@ }; |
@@ -55,4 +55,4 @@ import { Mapping } from '@volar/source-map'; | ||
export interface LanguageServiceHost extends ts.LanguageServiceHost { | ||
getTypeScriptModule(): typeof import('typescript/lib/tsserverlibrary'); | ||
getTypeScriptModule(): typeof import('typescript/lib/tsserverlibrary') | undefined; | ||
isTsc?: boolean; | ||
} |
{ | ||
"name": "@volar/language-core", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"main": "out/index.js", | ||
@@ -16,6 +16,6 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/source-map": "1.0.19", | ||
"@volar/source-map": "1.0.20", | ||
"muggle-string": "^0.1.0" | ||
}, | ||
"gitHead": "02267fe83a5567b1cae7025e834cf084c8248546" | ||
"gitHead": "e00f068e812677791c93efe9cf20995764350ec6" | ||
} |
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
23120
508
+ Added@volar/source-map@1.0.20(transitive)
- Removed@volar/source-map@1.0.19(transitive)
Updated@volar/source-map@1.0.20