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

vscode-languageclient

Package Overview
Dependencies
Maintainers
11
Versions
303
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-languageclient - npm Package Compare versions

Comparing version 5.2.1 to 5.3.0-next.1

lib/selectionRange.proposed.d.ts

7

lib/client.d.ts

@@ -10,2 +10,3 @@ import { TextDocumentChangeEvent, TextDocument, Disposable, OutputChannel, FileSystemWatcher as VFileSystemWatcher, DiagnosticCollection, Diagnostic as VDiagnostic, Uri, ProviderResult, CancellationToken, Position as VPosition, Location as VLocation, Range as VRange, CompletionItem as VCompletionItem, CompletionList as VCompletionList, SignatureHelp as VSignatureHelp, Definition as VDefinition, DefinitionLink as VDefinitionLink, DocumentHighlight as VDocumentHighlight, SymbolInformation as VSymbolInformation, CodeActionContext as VCodeActionContext, Command as VCommand, CodeLens as VCodeLens, FormattingOptions as VFormattingOptions, TextEdit as VTextEdit, WorkspaceEdit as VWorkspaceEdit, Hover as VHover, CodeAction as VCodeAction, DocumentSymbol as VDocumentSymbol, DocumentLink as VDocumentLink, TextDocumentWillSaveEvent, WorkspaceFolder as VWorkspaceFolder, CompletionContext as VCompletionContext } from 'vscode';

import { DeclarationMiddleware } from './declaration';
import { SelectionRangeProviderMiddleware } from './selectionRange.proposed';
import * as c2p from './codeConverter';

@@ -199,3 +200,3 @@ import * as p2c from './protocolConverter';

}
export declare type Middleware = _Middleware & TypeDefinitionMiddleware & ImplementationMiddleware & ColorProviderMiddleware & FoldingRangeProviderMiddleware & DeclarationMiddleware;
export declare type Middleware = _Middleware & TypeDefinitionMiddleware & ImplementationMiddleware & ColorProviderMiddleware & FoldingRangeProviderMiddleware & DeclarationMiddleware & SelectionRangeProviderMiddleware;
export interface LanguageClientOptions {

@@ -207,2 +208,3 @@ documentSelector?: DocumentSelector | string[];

outputChannelName?: string;
traceOutputChannel?: OutputChannel;
revealOutputChannelOn?: RevealOutputChannelOn;

@@ -347,2 +349,3 @@ /**

private _disposeOutputChannel;
private _traceOutputChannel;
private _capabilities;

@@ -386,2 +389,3 @@ private _listeners;

readonly outputChannel: OutputChannel;
readonly traceOutputChannel: OutputChannel;
readonly diagnostics: DiagnosticCollection | undefined;

@@ -394,2 +398,3 @@ createDefaultErrorHandler(): ErrorHandler;

error(message: string, data?: any): void;
private showNotificationMessage;
private logTrace;

@@ -396,0 +401,0 @@ private logObjectTrace;

@@ -171,2 +171,23 @@ /* --------------------------------------------------------------------------------------------

}
function asDiagnosticTags(tags) {
if (!tags) {
return undefined;
}
let result = [];
for (let tag of tags) {
let converted = asDiagnosticTag(tag);
if (converted !== undefined) {
result.push(converted);
}
}
return result.length > 0 ? result : undefined;
}
function asDiagnosticTag(tag) {
switch (tag) {
case code.DiagnosticTag.Unnecessary:
return proto.DiagnosticTag.Unnecessary;
default:
return undefined;
}
}
function asDiagnostic(item) {

@@ -180,2 +201,6 @@ let result = proto.Diagnostic.create(asRange(item.range), item.message);

}
if (Array.isArray(item.tags)) {
result.tags = asDiagnosticTags(item.tags);
}
;
if (item.source) {

@@ -304,3 +329,7 @@ result.source = item.source;

}
return proto.CodeActionContext.create(asDiagnostics(context.diagnostics), Is.string(context.only) ? [context.only] : undefined);
let only;
if (context.only && Is.string(context.only.value)) {
only = [context.only.value];
}
return proto.CodeActionContext.create(asDiagnostics(context.diagnostics), only);
}

@@ -307,0 +336,0 @@ function asCommand(item) {

2

lib/configuration.js

@@ -42,3 +42,3 @@ /* --------------------------------------------------------------------------------------------

else {
let config = vscode_1.workspace.getConfiguration(section.substr(0, index));
let config = vscode_1.workspace.getConfiguration(section.substr(0, index), resource);
if (config) {

@@ -45,0 +45,0 @@ result = config.get(section.substr(index + 1));

@@ -96,3 +96,3 @@ /// <reference types="node" />

export declare namespace ProposedFeatures {
function createAll(_client: BaseLanguageClient): (StaticFeature | DynamicFeature<any>)[];
function createAll(client: BaseLanguageClient): (StaticFeature | DynamicFeature<any>)[];
}

@@ -23,6 +23,7 @@ /* --------------------------------------------------------------------------------------------

const declaration_1 = require("./declaration");
const selectionRange_proposed_1 = require("./selectionRange.proposed");
const Is = require("./utils/is");
const processes_1 = require("./utils/processes");
__export(require("./client"));
const REQUIRED_VSCODE_VERSION = '^1.30'; // do not change format, updated by `updateVSCode` script
const REQUIRED_VSCODE_VERSION = '^1.31'; // do not change format, updated by `updateVSCode` script
var Executable;

@@ -442,4 +443,6 @@ (function (Executable) {

(function (ProposedFeatures) {
function createAll(_client) {
let result = [];
function createAll(client) {
let result = [
new selectionRange_proposed_1.SelectionRangeFeature(client)
];
return result;

@@ -446,0 +449,0 @@ }

@@ -41,2 +41,5 @@ /* --------------------------------------------------------------------------------------------

}
if (Array.isArray(diagnostic.tags)) {
result.tags = asDiagnosticTags(diagnostic.tags);
}
return result;

@@ -50,2 +53,23 @@ }

}
function asDiagnosticTags(tags) {
if (!tags) {
return undefined;
}
let result = [];
for (let tag of tags) {
let converted = asDiagnosticTag(tag);
if (converted !== undefined) {
result.push(converted);
}
}
return result.length > 0 ? result : undefined;
}
function asDiagnosticTag(tag) {
switch (tag) {
case ls.DiagnosticTag.Unnecessary:
return code.DiagnosticTag.Unnecessary;
default:
return undefined;
}
}
function asPosition(value) {

@@ -309,3 +333,3 @@ if (!value) {

}
return {
let result = {
targetUri: _uriConverter(item.targetUri),

@@ -316,2 +340,6 @@ targetRange: asRange(item.targetSelectionRange),

};
if (!result.targetSelectionRange) {
throw new Error(`targetSelectionRange must not be undefined or null`);
}
return result;
}

@@ -318,0 +346,0 @@ function asLocationResult(item) {

{
"name": "vscode-languageclient",
"description": "VSCode Language client implementation",
"version": "5.2.1",
"version": "5.3.0-next.1",
"author": "Microsoft Corporation",
"license": "MIT",
"engines": {
"vscode": "^1.30"
"vscode": "^1.31"
},
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-languageserver-node.git"
"url": "https://github.com/Microsoft/vscode-languageserver-node.git",
"directory": "client"
},

@@ -26,3 +27,3 @@ "bugs": {

"semver": "^5.5.0",
"vscode-languageserver-protocol": "3.14.1"
"vscode-languageserver-protocol": "3.15.0-next.1"
},

@@ -29,0 +30,0 @@ "scripts": {

Sorry, the diff of this file is too big to display

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