@vue/language-service
Advanced tools
Comparing version
@@ -47,3 +47,3 @@ "use strict"; | ||
(0, docCommentTemplate_1.create)(ts), | ||
...getCommonLanguageServicePlugins(ts, () => tsPluginClient) | ||
...getCommonLanguageServicePlugins(ts, () => tsPluginClient), | ||
]; | ||
@@ -50,0 +50,0 @@ if (tsPluginClient) { |
@@ -44,3 +44,3 @@ "use strict"; | ||
}); | ||
} | ||
}, | ||
}; | ||
@@ -47,0 +47,0 @@ function isWithinNavigationVirtualCode(document, position) { |
@@ -41,2 +41,3 @@ "use strict"; | ||
resolveReferences(data); | ||
// oxlint-disable-next-line no-useless-spread | ||
for (const attr of [...data.globalAttributes ?? []]) { | ||
@@ -143,3 +144,3 @@ if (!attr.name.startsWith('v-')) { | ||
name, | ||
url: url + relativeUrl | ||
url: url + relativeUrl, | ||
})); | ||
@@ -146,0 +147,0 @@ } |
@@ -49,3 +49,3 @@ "use strict"; | ||
isIncomplete: false, | ||
items: result | ||
items: result, | ||
}; | ||
@@ -75,5 +75,5 @@ function addDefineCompletionItem(statement, exp, name) { | ||
start: pos, | ||
end: pos | ||
} | ||
}] | ||
end: pos, | ||
}, | ||
}], | ||
}); | ||
@@ -80,0 +80,0 @@ } |
@@ -58,3 +58,3 @@ "use strict"; | ||
}, | ||
insertTextFormat: 2 | ||
insertTextFormat: 2, | ||
}); | ||
@@ -61,0 +61,0 @@ } |
@@ -178,3 +178,5 @@ "use strict"; | ||
function enter(node) { | ||
parent && parentStack.push(parent); | ||
if (parent) { | ||
parentStack.push(parent); | ||
} | ||
if (ts.isTypeLiteralNode(node) || | ||
@@ -219,3 +221,5 @@ ts.isTypeReferenceNode(node)) { | ||
function leave(node) { | ||
parent && parentStack.pop(); | ||
if (parent) { | ||
parentStack.pop(); | ||
} | ||
if (ts.isFunctionLike(node) | ||
@@ -222,0 +226,0 @@ || ts.isCatchClause(node) |
@@ -46,3 +46,3 @@ "use strict"; | ||
workspaceDiagnostics: false, | ||
} | ||
}, | ||
}, | ||
@@ -83,3 +83,3 @@ create(context) { | ||
const { template } = sfc; | ||
const { startTagEnd = Infinity, endTagStart = -Infinity } = template ?? {}; | ||
const { startTagEnd = Infinity, endTagStart = -Infinity, } = template ?? {}; | ||
for (const error of vueSfc.errors) { | ||
@@ -105,3 +105,3 @@ if ('code' in error) { | ||
...originalResult ?? [], | ||
...sfcErrors | ||
...sfcErrors, | ||
]; | ||
@@ -284,5 +284,5 @@ }); | ||
newText: styleItem.textEdit.newText + ' lang="' + lang + '"' + (attr ? ` ${attr}` : ''), | ||
} : undefined | ||
} : undefined, | ||
}; | ||
} | ||
//# sourceMappingURL=vue-sfc.js.map |
@@ -322,3 +322,3 @@ "use strict"; | ||
attributes.push({ | ||
name | ||
name, | ||
}); | ||
@@ -364,3 +364,3 @@ } | ||
return version; | ||
} | ||
}, | ||
}; | ||
@@ -475,3 +475,3 @@ } | ||
deprecated: false, | ||
leadingSlash: false | ||
leadingSlash: false, | ||
}; | ||
@@ -603,3 +603,3 @@ } | ||
name, | ||
leadingSlash | ||
leadingSlash, | ||
}; | ||
@@ -622,3 +622,3 @@ } | ||
deprecated: strs[3] === '1', | ||
leadingSlash | ||
leadingSlash, | ||
}; | ||
@@ -633,3 +633,3 @@ } | ||
textEdit: item.textEdit, | ||
text: doc.getText(item.textEdit.range) | ||
text: doc.getText(item.textEdit.range), | ||
}; | ||
@@ -636,0 +636,0 @@ } |
{ | ||
"name": "@vue/language-service", | ||
"version": "3.0.0-beta.2", | ||
"version": "3.0.0-beta.3", | ||
"license": "MIT", | ||
@@ -21,3 +21,3 @@ "files": [ | ||
"@volar/language-service": "2.4.14", | ||
"@vue/language-core": "3.0.0-beta.2", | ||
"@vue/language-core": "3.0.0-beta.3", | ||
"@vue/shared": "^3.5.0", | ||
@@ -42,6 +42,6 @@ "path-browserify": "^1.0.1", | ||
"@vue/compiler-dom": "^3.5.0", | ||
"@vue/typescript-plugin": "3.0.0-beta.2", | ||
"@vue/typescript-plugin": "3.0.0-beta.3", | ||
"vscode-css-languageservice": "^6.3.1" | ||
}, | ||
"gitHead": "ea40288f6fceebb65346732b6de5859c300cf1ee" | ||
"gitHead": "17e3beabc13e9eb59a82fb1a9f0252fd6685e444" | ||
} |
@@ -85,5 +85,5 @@ // @ts-check | ||
localeWorker(); | ||
for (const lang of langs) { | ||
if (lang.supported) { | ||
localeWorker(lang); | ||
templateWorker(lang); | ||
@@ -95,3 +95,3 @@ sfcWorker(lang); | ||
function localeWorker(lang) { | ||
function localeWorker() { | ||
@@ -422,3 +422,3 @@ const data = langs.map(({ name, url }) => ({ name, url })); | ||
text = text.replace(/```vue-html/g, '```html'); | ||
text = text.replace(/\{\#.*?\}/g, '') | ||
text = text.replace(/\{#.*?\}/g, '') | ||
text = resolveMarkdownLinks(text, baseUrl); | ||
@@ -425,0 +425,0 @@ return text; |
861780
0.01%9904
0.05%+ Added
- Removed