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

vscode-typescript-languageservice

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-typescript-languageservice - npm Package Compare versions

Comparing version 0.26.1 to 0.26.2

34

out/services/completionResolve.js

@@ -7,2 +7,4 @@ "use strict";

const completion_1 = require("./completion");
const previewer = require("../utils/previewer");
const shared_1 = require("@volar/shared");
function register(languageService, getTextDocument, ts) {

@@ -16,5 +18,5 @@ return (item, newOffset) => {

const options = data.options;
let detail;
let details;
try {
detail = languageService.getCompletionEntryDetails(fileName, offset, name, {}, source, options, data.tsData);
details = languageService.getCompletionEntryDetails(fileName, offset, name, {}, source, options, data.tsData);
}

@@ -24,8 +26,10 @@ catch (err) {

}
const details = [];
if (detail === null || detail === void 0 ? void 0 : detail.codeActions) {
if (!details)
return item;
const detailTexts = [];
if (details.codeActions) {
if (!item.additionalTextEdits)
item.additionalTextEdits = [];
for (const action of detail.codeActions) {
details.push(action.description);
for (const action of details.codeActions) {
detailTexts.push(action.description);
for (const changes of action.changes) {

@@ -43,12 +47,14 @@ const entries = changes.textChanges.map(textChange => {

}
if (detail === null || detail === void 0 ? void 0 : detail.displayParts) {
details.push(ts.displayPartsToString(detail.displayParts));
if (details.displayParts) {
detailTexts.push(previewer.plainWithLinks(details.displayParts, { toResource: shared_1.fsPathToUri }));
}
if (detail === null || detail === void 0 ? void 0 : detail.documentation) {
item.documentation = ts.displayPartsToString(detail.documentation);
if (detailTexts.length) {
item.detail = detailTexts.join('\n');
}
if (details.length)
item.detail = details.join('\n');
if (detail) {
completion_1.handleKindModifiers(item, detail);
item.documentation = {
kind: 'markdown',
value: previewer.markdownDocumentation(details.documentation, details.tags, { toResource: shared_1.fsPathToUri }),
};
if (details) {
completion_1.handleKindModifiers(item, details);
}

@@ -55,0 +61,0 @@ return item;

@@ -10,3 +10,3 @@ import type * as Proto from '../protocol';

export declare function tagsMarkdownPreview(tags: readonly Proto.JSDocTagInfo[], filePathConverter: IFilePathToResourceConverter): string;
export declare function markdownDocumentation(documentation: Proto.SymbolDisplayPart[] | string, tags: Proto.JSDocTagInfo[], filePathConverter: IFilePathToResourceConverter): string;
export declare function markdownDocumentation(documentation: Proto.SymbolDisplayPart[] | string | undefined, tags: Proto.JSDocTagInfo[] | undefined, filePathConverter: IFilePathToResourceConverter): string;
export declare function addMarkdownDocumentation(out: string, documentation: Proto.SymbolDisplayPart[] | string | undefined, tags: Proto.JSDocTagInfo[] | undefined, converter: IFilePathToResourceConverter): string;
{
"name": "vscode-typescript-languageservice",
"version": "0.26.1",
"version": "0.26.2",
"main": "out/index.js",

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

"dependencies": {
"@volar/shared": "^0.26.1",
"@volar/shared": "^0.26.2",
"typescript-vscode-sh-plugin": "^0.6.14",
"upath": "^2.0.1",
"vscode-languageserver": "^7.1.0-next.4",
"vscode-languageserver": "^7.1.0-next.5",
"vscode-languageserver-textdocument": "^1.0.1"
},
"gitHead": "ed01f160a1f6f23412ae711505f417b49d05a990"
"gitHead": "905173be68981ebb0a99e08d8d6f96c68cbf29ab"
}
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