提交 ac75d806 编写于 作者: M Martin Aeschlimann

Fixes #2638: [json] intellisense eats colon

上级 a41236c1
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册