提交 0b2249b4 编写于 作者: R Ramya Achutha Rao

Fixes #27767

上级 eb097f89
......@@ -35,12 +35,12 @@
"type": "object",
"title": "Emmet configuration",
"properties": {
"emmet.suggestExpandedAbbreviation": {
"emmet.showExpandedAbbreviation": {
"type": "boolean",
"default": true,
"description": "Shows expanded emmet abbreviations as suggestions"
},
"emmet.suggestAbbreviations": {
"emmet.showAbbreviationSuggestions": {
"type": "boolean",
"default": true,
"description": "Shows possible emmet abbreviations as suggestions"
......
......@@ -29,7 +29,7 @@ export class EmmetCompletionItemProvider implements vscode.CompletionItemProvide
}
function getExpandedAbbreviation(document: vscode.TextDocument, position: vscode.Position): vscode.CompletionItem {
if (!vscode.workspace.getConfiguration('emmet')['suggestExpandedAbbreviation']) {
if (!vscode.workspace.getConfiguration('emmet')['showExpandedAbbreviation']) {
return;
}
let [rangeToReplace, wordToExpand] = extractAbbreviation(position);
......@@ -72,7 +72,7 @@ function removeTabStops(expandedWord: string): string {
return expandedWord.replace(/\$\{\d+\}/g, '').replace(/\$\{\d+:([^\}]+)\}/g, '$1');
}
function getAbbreviationSuggestions(syntax: string, prefix: string, skipExactMatch: boolean) {
if (!vscode.workspace.getConfiguration('emmet')['suggestAbbreviations'] || !prefix || isStyleSheet(syntax)) {
if (!vscode.workspace.getConfiguration('emmet')['showAbbreviationSuggestions'] || !prefix || isStyleSheet(syntax)) {
return [];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册