mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
Fixes #2638: [json] intellisense eats colon
This commit is contained in:
@@ -456,7 +456,7 @@ export class JSONCompletion {
|
||||
private getCurrentWord(document: ITextDocument, offset: number) {
|
||||
var i = offset - 1;
|
||||
var text = document.getText();
|
||||
while (i >= 0 && ' \t\n\r\v"'.indexOf(text.charAt(i)) === -1) {
|
||||
while (i >= 0 && ' \t\n\r\v":{[,'.indexOf(text.charAt(i)) === -1) {
|
||||
i--;
|
||||
}
|
||||
return text.substring(i+1, offset);
|
||||
|
||||
Reference in New Issue
Block a user