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

typescript-language-server

Package Overview
Dependencies
Maintainers
4
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-language-server - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

3

lib/lsp-server.d.ts

@@ -51,4 +51,3 @@ import * as lsp from 'vscode-languageserver';

completion(params: lsp.CompletionParams): Promise<TSCompletionItem[] | null>;
completionDetails(items: tsp.CompletionEntry[], file: string, line: number, offset: number): Promise<TSCompletionItem[]>;
completionResolve(item: TSCompletionItem): Promise<TSCompletionItem>;
completionResolve(item: TSCompletionItem): Promise<lsp.CompletionItem>;
hover(params: lsp.TextDocumentPositionParams): Promise<lsp.Hover>;

@@ -55,0 +54,0 @@ protected getQuickInfo(file: string, position: lsp.Position): Promise<tsp.QuickInfoResponse | undefined>;

@@ -408,3 +408,6 @@ "use strict";

}));
return this.completionDetails(result.body || [], file, params.position.line + 1, params.position.character + 1);
const body = result.body || [];
return body
.filter(entry => entry.kind !== 'warning')
.map(entry => completion_1.asCompletionItem(entry, file, params.position, document));
}

@@ -422,30 +425,2 @@ catch (error) {

}
completionDetails(items, file, line, offset) {
return __awaiter(this, void 0, void 0, function* () {
const { body } = yield this.interuptDiagnostics(() => this.tspClient.request("completionEntryDetails" /* CompletionDetails */, {
file,
line,
offset,
entryNames: items.map(item => item.name)
}));
return (body || []).map(entry => {
const item = {
label: entry.name,
kind: completion_1.asCompletionItemKind(entry.kind),
commitCharacters: completion_1.asCommitCharacters(entry.kind),
detail: completion_1.asDetail(entry),
documentation: protocol_translation_1.asDocumentation(entry),
data: {
file,
line,
offset,
entryNames: [
entry.source ? { name: entry.name, source: entry.source.join(' ') } : entry.name
]
}
};
return Object.assign(Object.assign({}, item), completion_1.asCodeActions(entry, file));
});
});
}
completionResolve(item) {

@@ -452,0 +427,0 @@ return __awaiter(this, void 0, void 0, function* () {

{
"name": "typescript-language-server",
"version": "0.5.0",
"version": "0.5.1",
"description": "Language Server Protocol (LSP) implementation for TypeScript using tsserver",

@@ -37,3 +37,3 @@ "author": "TypeFox and others",

},
"gitHead": "0e0cfb1da55ac06b0da0b9b8da2556891156fab0"
"gitHead": "3a8ea0f04bde047e2f60b9f68ef7816e3a41aa10"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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