Add update tag placeholder.

Fixes #128110
This commit is contained in:
Raymond Zhao
2021-10-06 16:40:52 -07:00
parent d8c6fdef96
commit 665e0adaec
2 changed files with 38 additions and 17 deletions

View File

@@ -42,13 +42,7 @@ export function activateEmmetExtension(context: vscode.ExtensionContext) {
if (inputTag && typeof inputTag === 'string') {
return updateTag(inputTag);
}
return vscode.window.showInputBox({ prompt: 'Enter Tag' }).then(tagName => {
if (tagName) {
const update = updateTag(tagName);
return update ? update : false;
}
return false;
});
return updateTag(undefined);
}));
context.subscriptions.push(vscode.commands.registerCommand('editor.emmet.action.matchTag', () => {