Enable dot completions in a few more contexts

This commit is contained in:
Matt Bierner
2017-01-13 15:05:36 -08:00
parent 8e58e70914
commit 052f6405c7

View File

@@ -198,7 +198,7 @@ export default class TypeScriptCompletionItemProvider implements CompletionItemP
const preText = document.getText(new Range(
new Position(position.line, 0),
new Position(position.line, position.character - 1)));
enableDotCompletions = preText.match(/[a-z_$]\s*$/ig) !== null;
enableDotCompletions = preText.match(/[a-z_$\)\]\}]\s*$/ig) !== null;
}
for (let i = 0; i < body.length; i++) {