mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
Enable dot completions in a few more contexts
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user