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

@volar/language-service

Package Overview
Dependencies
Maintainers
1
Versions
236
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.2.0-alpha.19 to 1.3.0-alpha.0

15

out/documentFeatures/documentSymbols.js

@@ -15,19 +15,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

const shared = require("@volar/shared");
const vscode = require("vscode-languageserver-protocol");
const common_1 = require("../utils/common");
function register(context) {
return (uri) => {
return (0, featureWorkers_1.documentFeatureWorker)(context, uri, file => !!file.capabilities.documentSymbol, (plugin, document) => __awaiter(this, void 0, void 0, function* () {
var _a;
const symbols = yield ((_a = plugin.findDocumentSymbols) === null || _a === void 0 ? void 0 : _a.call(plugin, document));
if (!(symbols === null || symbols === void 0 ? void 0 : symbols.length)) {
return symbols;
}
if (vscode.DocumentSymbol.is(symbols[0])) {
return symbols;
}
return symbols.map(symbol => {
return vscode.DocumentSymbol.create(symbol.name, undefined, symbol.kind, symbol.location.range, symbol.location.range);
});
}), (data, map) => map
return (0, featureWorkers_1.documentFeatureWorker)(context, uri, file => !!file.capabilities.documentSymbol, (plugin, document) => __awaiter(this, void 0, void 0, function* () { var _a; return (_a = plugin.findDocumentSymbols) === null || _a === void 0 ? void 0 : _a.call(plugin, document); }), (data, map) => map
? data

@@ -34,0 +21,0 @@ .map(symbol => transformer.asDocumentSymbol(symbol, range => map.toSourceRange(range)))

2

out/types.d.ts

@@ -80,3 +80,3 @@ import { LanguageContext, LanguageModule, LanguageServiceHost } from '@volar/language-core';

findDocumentLinks?(document: TextDocument): NullableResult<vscode.DocumentLink[]>;
findDocumentSymbols?(document: TextDocument): NullableResult<vscode.DocumentSymbol[] | vscode.SymbolInformation[]>;
findDocumentSymbols?(document: TextDocument): NullableResult<vscode.DocumentSymbol[]>;
findDocumentSemanticTokens?(document: TextDocument, range: vscode.Range, legend: vscode.SemanticTokensLegend): NullableResult<SemanticToken[]>;

@@ -83,0 +83,0 @@ findWorkspaceSymbols?(query: string): NullableResult<vscode.WorkspaceSymbol[]>;

@@ -10,3 +10,2 @@ import type * as vscode from 'vscode-languageserver-protocol';

export declare function withDiagnostics<T extends vscode.Diagnostic>(items: T[]): T[];
export declare function withSymbolInformations<T extends vscode.SymbolInformation>(items: T[]): T[];
export declare function withLocations<T extends vscode.Location>(items: T[]): T[];

@@ -13,0 +12,0 @@ export declare function withLocationLinks<T extends vscode.LocationLink>(items: T[]): T[];

Object.defineProperty(exports, "__esModule", { value: true });
exports.withRanges = exports.withCallHierarchyOutgoingCalls = exports.withCallHierarchyIncomingCalls = exports.withLocationLinks = exports.withLocations = exports.withSymbolInformations = exports.withDiagnostics = exports.withDocumentChanges = exports.withTextEdits = exports.withCodeAction = exports.createLocationSet = void 0;
exports.withRanges = exports.withCallHierarchyOutgoingCalls = exports.withCallHierarchyIncomingCalls = exports.withLocationLinks = exports.withLocations = exports.withDiagnostics = exports.withDocumentChanges = exports.withTextEdits = exports.withCodeAction = exports.createLocationSet = void 0;
function createLocationSet() {

@@ -63,14 +63,2 @@ const set = new Set();

exports.withDiagnostics = withDiagnostics;
function withSymbolInformations(items) {
return dedupe(items, item => [
item.name,
item.kind,
item.location.uri,
item.location.range.start.line,
item.location.range.start.character,
item.location.range.end.line,
item.location.range.end.character,
].join(':'));
}
exports.withSymbolInformations = withSymbolInformations;
function withLocations(items) {

@@ -77,0 +65,0 @@ return dedupe(items, item => [

{
"name": "@volar/language-service",
"version": "1.2.0-alpha.19",
"version": "1.3.0-alpha.0",
"main": "out/index.js",

@@ -16,6 +16,6 @@ "license": "MIT",

"dependencies": {
"@volar/language-core": "1.2.0-alpha.19",
"@volar/shared": "1.2.0-alpha.19",
"@volar/source-map": "1.2.0-alpha.19",
"@volar/typescript-faster": "1.2.0-alpha.19",
"@volar/language-core": "1.3.0-alpha.0",
"@volar/shared": "1.3.0-alpha.0",
"@volar/source-map": "1.3.0-alpha.0",
"@volar/typescript-faster": "1.3.0-alpha.0",
"vscode-html-languageservice": "^5.0.4",

@@ -27,3 +27,3 @@ "vscode-json-languageservice": "^5.2.0",

},
"gitHead": "b0ae65a419cfb91bd85cc4174efa4eb91cadd040"
"gitHead": "7582403cc521d33f642183a32da44fb1f64e65ef"
}
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