@volar/language-server
Advanced tools
Comparing version 1.1.0-alpha.1 to 1.1.0-alpha.2
@@ -173,4 +173,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
const uri = shared.fileNameToUri(fsPath); | ||
if (uri.startsWith('https://cdn.jsdelivr.net/npm/')) { // stat request always response file type for jsdelivr | ||
const text = yield readJsdelivrFile(connection, uri); | ||
if (uri.startsWith('https://unpkg.com/')) { // stat request always response file type for jsdelivr | ||
const text = yield readWebFile(connection, uri); | ||
if (text !== undefined) { | ||
@@ -202,4 +202,4 @@ const name = path.basename(fsPath); | ||
const uri = shared.fileNameToUri(fsPath); | ||
if (uri.startsWith('https://cdn.jsdelivr.net/npm/')) { | ||
const text = yield readJsdelivrFile(connection, uri); | ||
if (uri.startsWith('https://unpkg.com/')) { | ||
const text = yield readWebFile(connection, uri); | ||
if (text !== undefined) { | ||
@@ -227,3 +227,3 @@ const name = path.basename(fsPath); | ||
} | ||
function readJsdelivrFile(connection, uri) { | ||
function readWebFile(connection, uri) { | ||
var _a; | ||
@@ -233,8 +233,3 @@ return __awaiter(this, void 0, void 0, function* () { | ||
if (uri.endsWith('.d.ts') || uri.endsWith('.json')) { | ||
const text = (_a = yield connection.sendRequest(protocol_1.FsReadFileRequest.type, uri)) !== null && _a !== void 0 ? _a : undefined; | ||
if (text !== undefined | ||
// ignore https://cdn.jsdelivr.net/npm/@vue/runtime-dom | ||
&& text.indexOf('Minified by jsDelivr') === -1) { | ||
return text; | ||
} | ||
return (_a = yield connection.sendRequest(protocol_1.FsReadFileRequest.type, uri)) !== null && _a !== void 0 ? _a : undefined; | ||
} | ||
@@ -270,3 +265,3 @@ }); | ||
progress === null || progress === void 0 ? void 0 : progress.report(i / pendings.length, vscode_uri_1.URI.parse(shared.fileNameToUri(current[1])).fsPath); | ||
yield current; | ||
yield current[2]; | ||
i++; | ||
@@ -273,0 +268,0 @@ } |
@@ -17,3 +17,3 @@ import * as embedded from '@volar/language-core'; | ||
export declare function createProject(context: ProjectContext): Promise<{ | ||
tsConfig: ts.CompilerOptions | path.PosixPath; | ||
tsConfig: path.PosixPath | ts.CompilerOptions; | ||
scripts: { | ||
@@ -20,0 +20,0 @@ clear: () => void; |
{ | ||
"name": "@volar/language-server", | ||
"version": "1.1.0-alpha.1", | ||
"version": "1.1.0-alpha.2", | ||
"main": "out/index.js", | ||
@@ -16,9 +16,9 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://github.com/volarjs/framework.git", | ||
"url": "https://github.com/volarjs/volar.js.git", | ||
"directory": "packages/language-server" | ||
}, | ||
"dependencies": { | ||
"@volar/language-core": "1.1.0-alpha.1", | ||
"@volar/language-service": "1.1.0-alpha.1", | ||
"@volar/shared": "1.1.0-alpha.1", | ||
"@volar/language-core": "1.1.0-alpha.2", | ||
"@volar/language-service": "1.1.0-alpha.2", | ||
"@volar/shared": "1.1.0-alpha.2", | ||
"@vscode/l10n": "^0.0.10", | ||
@@ -33,3 +33,3 @@ "request-light": "^0.6.0", | ||
}, | ||
"gitHead": "85666d83fafb0be442c55defb64fb0128b73bc0b" | ||
"gitHead": "2a5ff13854187a26c1b5e36c5eab8b94cbd08375" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
487626
7767
+ Added@volar/language-core@1.1.0-alpha.2(transitive)
+ Added@volar/language-service@1.1.0-alpha.2(transitive)
+ Added@volar/shared@1.1.0-alpha.2(transitive)
+ Added@volar/source-map@1.1.0-alpha.2(transitive)
+ Added@volar/typescript-faster@1.1.0-alpha.2(transitive)
- Removed@volar/language-core@1.1.0-alpha.1(transitive)
- Removed@volar/language-service@1.1.0-alpha.1(transitive)
- Removed@volar/shared@1.1.0-alpha.1(transitive)
- Removed@volar/source-map@1.1.0-alpha.1(transitive)
- Removed@volar/typescript-faster@1.1.0-alpha.1(transitive)
Updated@volar/shared@1.1.0-alpha.2