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

vscode-vue-languageservice

Package Overview
Dependencies
Maintainers
1
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-vue-languageservice - npm Package Compare versions

Comparing version 0.28.2 to 0.28.3

2

out/languageService.d.ts

@@ -48,3 +48,3 @@ import type * as vscode from 'vscode-languageserver';

doHover: (uri: string, position: vscode.Position) => Promise<Promise<vscode.Hover | undefined>>;
doComplete: (uri: string, position: vscode.Position, context?: vscode.CompletionContext | undefined, getNameCases?: ((uri: string) => Promise<{
doComplete: (uri: string, position: vscode.Position, context?: vscode.CompletionContext | undefined, isEnabledComponentAutoImport?: (() => Promise<boolean>) | undefined, getNameCases?: ((uri: string) => Promise<{
tagNameCase: "both" | "kebabCase" | "pascalCase";

@@ -51,0 +51,0 @@ attrNameCase: "kebabCase" | "camelCase";

@@ -15,5 +15,5 @@ import type * as html from 'vscode-html-languageservice';

export declare const eventModifiers: Record<string, string>;
export declare function register({ modules: { html, emmet, typescript: ts }, sourceFiles, getTsLs, htmlLs, pugLs, getCssLs, jsonLs, documentContext, vueHost, templateTsLs }: ApiLanguageServiceContext, getScriptContentVersion: () => number): (uri: string, position: vscode.Position, context?: vscode.CompletionContext | undefined, getNameCases?: ((uri: string) => Promise<{
export declare function register({ modules: { html, emmet, typescript: ts }, sourceFiles, getTsLs, htmlLs, pugLs, getCssLs, jsonLs, documentContext, vueHost, templateTsLs }: ApiLanguageServiceContext, getScriptContentVersion: () => number): (uri: string, position: vscode.Position, context?: vscode.CompletionContext | undefined, isEnabledComponentAutoImport?: (() => Promise<boolean>) | undefined, getNameCases?: ((uri: string) => Promise<{
tagNameCase: 'both' | 'kebabCase' | 'pascalCase';
attrNameCase: 'kebabCase' | 'camelCase';
}>) | undefined) => Promise<html.CompletionList | undefined>;

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

/** internal */
isEnabledComponentAutoImport,
/** internal */
getNameCases) => {

@@ -230,3 +232,3 @@ var _a, _b, _c, _d, _e, _f;

async function getHtmlResult(sourceFile) {
var _a, _b;
var _a, _b, _c;
let result = undefined;

@@ -325,3 +327,4 @@ if ((context === null || context === void 0 ? void 0 : context.triggerCharacter) && !triggerCharacters.html.includes(context.triggerCharacter)) {

const descriptor = sourceFile.getDescriptor();
if (descriptor.script || descriptor.scriptSetup) {
const enabledComponentAutoImport = (_a = (isEnabledComponentAutoImport ? await isEnabledComponentAutoImport() : undefined)) !== null && _a !== void 0 ? _a : true;
if (enabledComponentAutoImport && (descriptor.script || descriptor.scriptSetup)) {
for (const vueFile of sourceFiles.getAll()) {

@@ -400,3 +403,3 @@ let baseName = path.basename(vueFile.uri, '.vue');

for (const vueItem of vueItems) {
const documentation = typeof vueItem.documentation === 'string' ? vueItem.documentation : (_a = vueItem.documentation) === null || _a === void 0 ? void 0 : _a.value;
const documentation = typeof vueItem.documentation === 'string' ? vueItem.documentation : (_b = vueItem.documentation) === null || _b === void 0 ? void 0 : _b.value;
const importFile = documentation ? sourceFiles.get(documentation) : undefined;

@@ -463,3 +466,3 @@ if (importFile) {

for (const item of vueItems) {
if (!((_b = temp.get(item.label)) === null || _b === void 0 ? void 0 : _b.documentation)) {
if (!((_c = temp.get(item.label)) === null || _c === void 0 ? void 0 : _c.documentation)) {
temp.set(item.label, item);

@@ -466,0 +469,0 @@ }

@@ -146,3 +146,3 @@ "use strict";

let code = `type ConstructorOverloads<T> =\n`;
for (let i = 1; i <= 8; i++) {
for (let i = 8; i >= 1; i--) {
code += `// ${i}\n`;

@@ -149,0 +149,0 @@ code += `T extends {\n`;

{
"name": "vscode-vue-languageservice",
"version": "0.28.2",
"version": "0.28.3",
"main": "out/index.js",

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

"dependencies": {
"@volar/code-gen": "0.28.2",
"@volar/html2pug": "0.28.2",
"@volar/shared": "0.28.2",
"@volar/source-map": "0.28.2",
"@volar/transforms": "0.28.2",
"@volar/code-gen": "0.28.3",
"@volar/html2pug": "0.28.3",
"@volar/shared": "0.28.3",
"@volar/source-map": "0.28.3",
"@volar/transforms": "0.28.3",
"@vscode/emmet-helper": "^2.8.0",

@@ -36,6 +36,6 @@ "@vue/compiler-dom": "^3.2.20",

"vscode-languageserver-textdocument": "^1.0.1",
"vscode-pug-languageservice": "0.28.2",
"vscode-typescript-languageservice": "0.28.2"
"vscode-pug-languageservice": "0.28.3",
"vscode-typescript-languageservice": "0.28.3"
},
"gitHead": "328e903b1fad2e5181845fc19d71d92907a0fcdb"
"gitHead": "d511217f315471afbc00ca65d4cad6aa33bcc476"
}

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