Fix language-specific tab expansion and polish (#157035)

* Fix language-specific tab expansion and polish

Fixes #156075

* Add back check
This commit is contained in:
Raymond Zhao
2022-08-03 16:31:19 -07:00
committed by GitHub
parent 357d14621c
commit 9f80085795
5 changed files with 42 additions and 36 deletions

View File

@@ -140,7 +140,7 @@ function getNextAttribute(document: vscode.TextDocument, selectionStart: number,
}
// Fetch the next word in the attr value
if (attr.value.toString().indexOf(' ') === -1) {
if (!attr.value.toString().includes(' ')) {
// attr value does not have space, so no next word to find
continue;
}