New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@volar/language-server

Package Overview
Dependencies
Maintainers
0
Versions
239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volar/language-server - npm Package Compare versions

Comparing version

to
2.3.2

2

browser.d.ts

@@ -34,3 +34,3 @@ import * as vscode from 'vscode-languageserver/browser';

clearPushDiagnostics: () => void;
refresh: (projects: import("./index").LanguageServerProject) => Promise<void>;
refresh: (project: import("./index").LanguageServerProject) => Promise<void>;
};

@@ -37,0 +37,0 @@ export declare function loadTsdkByUrl(tsdkUrl: string, locale: string | undefined): Promise<{

@@ -86,4 +86,5 @@ "use strict";

server.connection.onNotification(protocol_1.WriteVirtualFilesNotification.type, async (params) => {
const fsModeName = 'fs'; // avoid bundle
const fs = await import(fsModeName);
// webpack compatibility
const _require = eval('require');
const fs = _require('fs');
const uri = vscode_uri_1.URI.parse(params.uri);

@@ -90,0 +91,0 @@ const languageService = (await server.project.getLanguageService(uri));

@@ -32,3 +32,3 @@ import { FileSystem, LanguageServicePlugin } from '@volar/language-service';

clearPushDiagnostics: () => void;
refresh: (projects: LanguageServerProject) => Promise<void>;
refresh: (project: LanguageServerProject) => Promise<void>;
};

@@ -379,5 +379,5 @@ "use strict";

}
function activateServerPushDiagnostics(projects) {
function activateServerPushDiagnostics(project) {
documents.onDidChangeContent(({ document }) => {
pushAllDiagnostics(projects, document.uri);
pushAllDiagnostics(project, document.uri);
});

@@ -387,3 +387,3 @@ documents.onDidClose(({ document }) => {

});
onDidChangeConfiguration(() => refresh(projects));
onDidChangeConfiguration(() => refresh(project));
}

@@ -397,6 +397,6 @@ function clearPushDiagnostics() {

}
async function refresh(projects) {
async function refresh(project) {
const req = ++semanticTokensReq;
if (!status.pullModelDiagnostics) {
await pushAllDiagnostics(projects);
await pushAllDiagnostics(project);
}

@@ -417,3 +417,3 @@ const delay = 250;

}
async function pushAllDiagnostics(projects, docUri) {
async function pushAllDiagnostics(project, docUri) {
const req = ++documentUpdatedReq;

@@ -434,3 +434,3 @@ const delay = 250;

}
await pushDiagnostics(projects, changeDoc.uri, changeDoc.version, token);
await pushDiagnostics(project, changeDoc.uri, changeDoc.version, token);
}

@@ -442,8 +442,8 @@ for (const doc of otherDocs) {

}
await pushDiagnostics(projects, doc.uri, doc.version, token);
await pushDiagnostics(project, doc.uri, doc.version, token);
}
}
async function pushDiagnostics(projects, uriStr, version, cancel) {
async function pushDiagnostics(project, uriStr, version, cancel) {
const uri = vscode_uri_1.URI.parse(uriStr);
const languageService = (await projects.getLanguageService(uri));
const languageService = await project.getLanguageService(uri);
const errors = await languageService.getDiagnostics(uri, cancel, result => {

@@ -450,0 +450,0 @@ connection.sendDiagnostics({ uri: uriStr, diagnostics: result, version });

@@ -34,3 +34,3 @@ import { FileSystem } from '@volar/language-service';

clearPushDiagnostics: () => void;
refresh: (projects: import("./index").LanguageServerProject) => Promise<void>;
refresh: (project: import("./index").LanguageServerProject) => Promise<void>;
};

@@ -37,0 +37,0 @@ export declare const fs: FileSystem;

{
"name": "@volar/language-server",
"version": "2.3.1",
"version": "2.3.2",
"license": "MIT",

@@ -15,6 +15,6 @@ "files": [

"dependencies": {
"@volar/language-core": "2.3.1",
"@volar/language-service": "2.3.1",
"@volar/snapshot-document": "2.3.1",
"@volar/typescript": "2.3.1",
"@volar/language-core": "2.3.2",
"@volar/language-service": "2.3.2",
"@volar/snapshot-document": "2.3.2",
"@volar/typescript": "2.3.2",
"path-browserify": "^1.0.1",

@@ -30,3 +30,3 @@ "request-light": "^0.7.0",

},
"gitHead": "51742317a2950abd97e1a1a266b2c137bede4ad3"
"gitHead": "d07e7d7c4176eec4905e7a629ae6f278d1c72b48"
}