Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@volar/language-service

Package Overview
Dependencies
Maintainers
1
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volar/language-service - npm Package Compare versions

Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4

1

out/baseLanguageService.d.ts

@@ -12,2 +12,3 @@ import { createEmbeddedLanguageServiceHost, LanguageServiceHost } from '@volar/language-core';

env: PluginContext['env'];
documentRegistry: ts.DocumentRegistry | undefined;
}): LanguageServiceContext;

@@ -14,0 +15,0 @@ export declare function createLanguageService(context: LanguageServiceContext): {

2

out/baseLanguageService.js

@@ -32,3 +32,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

const ts = options.host.getTypeScriptModule();
const tsLs = ts.createLanguageService(options.context.typescriptLanguageServiceHost);
const tsLs = ts.createLanguageService(options.context.typescriptLanguageServiceHost, options.documentRegistry);
tsFaster.decorate(ts, options.context.typescriptLanguageServiceHost, tsLs);

@@ -35,0 +35,0 @@ let plugins;

@@ -12,3 +12,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

exports.register = void 0;
const shared = require("@volar/shared");
const featureWorkers_1 = require("../utils/featureWorkers");

@@ -54,14 +53,18 @@ const dedupe = require("../utils/dedupe");

}
}), (data, sourceMap) => data.map(reference => {
var _a;
const referenceSourceMap = context.documents.sourceMapFromEmbeddedDocumentUri(reference.uri);
if (referenceSourceMap) {
const range = (_a = referenceSourceMap.getSourceRange(reference.range.start, reference.range.end, data => !!data.references)) === null || _a === void 0 ? void 0 : _a[0];
if (!range)
return;
reference.uri = referenceSourceMap.sourceDocument.uri;
reference.range = range;
}), (data, sourceMap) => {
const results = [];
for (const reference of data) {
const referenceSourceMap = context.documents.sourceMapFromEmbeddedDocumentUri(reference.uri);
if (referenceSourceMap) {
for (const [range] of referenceSourceMap.getSourceRanges(reference.range.start, reference.range.end, data => !!data.references)) {
results.push({
uri: referenceSourceMap.sourceDocument.uri,
range,
});
}
}
results.push(reference);
}
return reference;
}).filter(shared.notEmpty), arr => dedupe.withLocations(arr.flat()));
return results;
}, arr => dedupe.withLocations(arr.flat()));
};

@@ -68,0 +71,0 @@ }

{
"name": "@volar/language-service",
"version": "1.0.0-alpha.3",
"version": "1.0.0-alpha.4",
"main": "out/index.js",

@@ -19,7 +19,7 @@ "license": "MIT",

"dependencies": {
"@volar/language-core": "1.0.0-alpha.3",
"@volar/shared": "1.0.0-alpha.3",
"@volar/source-map": "1.0.0-alpha.3",
"@volar/transforms": "1.0.0-alpha.3",
"@volar/typescript-faster": "1.0.0-alpha.3",
"@volar/language-core": "1.0.0-alpha.4",
"@volar/shared": "1.0.0-alpha.4",
"@volar/source-map": "1.0.0-alpha.4",
"@volar/transforms": "1.0.0-alpha.4",
"@volar/typescript-faster": "1.0.0-alpha.4",
"@vue/reactivity": "^3.2.38",

@@ -33,3 +33,3 @@ "upath": "^2.0.1",

},
"gitHead": "55a1d3fa143411dd4520020f407e427df4e4e26a"
"gitHead": "712fc3178ed7a7414da73e940c5c5e8b54eebea1"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc