UNPKG

ts-lit-plugin

Version:

Typescript plugin that adds type checking and code completion to lit-html

28 lines (27 loc) 867 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.translateQuickInfo = void 0; var ts_module_js_1 = require("../../ts-module.js"); var translate_range_js_1 = require("./translate-range.js"); function translateQuickInfo(quickInfo) { return { kind: ts_module_js_1.tsModule.ts.ScriptElementKind.label, kindModifiers: "", textSpan: (0, translate_range_js_1.translateRange)(quickInfo.range), displayParts: [ { text: quickInfo.primaryInfo, kind: "text" } ], documentation: quickInfo.secondaryInfo == null ? [] : [ { kind: "text", text: quickInfo.secondaryInfo } ] }; } exports.translateQuickInfo = translateQuickInfo;