@volar/language-server
Advanced tools
Comparing version 2.4.0-alpha.11 to 2.4.0-alpha.12
@@ -69,2 +69,3 @@ "use strict"; | ||
async function loadTsdkByUrl(tsdkUrl, locale) { | ||
locale = locale?.toLowerCase(); | ||
return { | ||
@@ -86,2 +87,5 @@ typescript: await loadLib(), | ||
async function loadLocalizedDiagnosticMessages() { | ||
if (locale === 'en') { | ||
return; | ||
} | ||
try { | ||
@@ -88,0 +92,0 @@ const json = await (0, http_1.default)(vscode_uri_1.URI.parse(`${tsdkUrl}/${locale}/diagnosticMessages.generated.json`)); |
@@ -91,2 +91,3 @@ "use strict"; | ||
function loadTsdkByPath(tsdk, locale) { | ||
locale = locale?.toLowerCase(); | ||
// webpack compatibility | ||
@@ -115,2 +116,5 @@ const _require = eval('require'); | ||
function loadLocalizedDiagnosticMessages() { | ||
if (locale === 'en') { | ||
return; | ||
} | ||
try { | ||
@@ -117,0 +121,0 @@ const path = _require.resolve(`./${locale}/diagnosticMessages.generated.json`, { paths: [tsdk] }); |
{ | ||
"name": "@volar/language-server", | ||
"version": "2.4.0-alpha.11", | ||
"version": "2.4.0-alpha.12", | ||
"license": "MIT", | ||
@@ -15,6 +15,6 @@ "files": [ | ||
"dependencies": { | ||
"@volar/language-core": "2.4.0-alpha.11", | ||
"@volar/language-service": "2.4.0-alpha.11", | ||
"@volar/snapshot-document": "2.4.0-alpha.11", | ||
"@volar/typescript": "2.4.0-alpha.11", | ||
"@volar/language-core": "2.4.0-alpha.12", | ||
"@volar/language-service": "2.4.0-alpha.12", | ||
"@volar/snapshot-document": "2.4.0-alpha.12", | ||
"@volar/typescript": "2.4.0-alpha.12", | ||
"path-browserify": "^1.0.1", | ||
@@ -30,3 +30,3 @@ "request-light": "^0.7.0", | ||
}, | ||
"gitHead": "f4520e175d25305fc930982a8188da94104625a6" | ||
"gitHead": "9418f0c81cef5ca13b21bf43a49bef67c6cb2993" | ||
} |
115988
2435
+ Added@volar/language-core@2.4.0-alpha.12(transitive)
+ Added@volar/language-service@2.4.0-alpha.12(transitive)
+ Added@volar/snapshot-document@2.4.0-alpha.12(transitive)
+ Added@volar/source-map@2.4.0-alpha.12(transitive)
+ Added@volar/typescript@2.4.0-alpha.12(transitive)
- Removed@volar/language-core@2.4.0-alpha.11(transitive)
- Removed@volar/language-service@2.4.0-alpha.11(transitive)
- Removed@volar/snapshot-document@2.4.0-alpha.11(transitive)
- Removed@volar/source-map@2.4.0-alpha.11(transitive)
- Removed@volar/typescript@2.4.0-alpha.11(transitive)