Skip to content

Commit

Permalink
Trigger completions on < inside jsx
Browse files Browse the repository at this point in the history
Fixes #40539
  • Loading branch information
mjbvz committed May 1, 2018
1 parent ffb8d04 commit 9f16378
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ namespace CompletionConfiguration {

export default class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider {

public static readonly triggerCharacters = ['.', '"', '\'', '/', '@'];
public static readonly triggerCharacters = ['.', '"', '\'', '/', '@', '<'];

constructor(
private readonly client: ITypeScriptServiceClient,
Expand Down Expand Up @@ -473,6 +473,10 @@ export default class TypeScriptCompletionItemProvider implements vscode.Completi
}
}

if (context.triggerCharacter === '<') {
return this.client.apiVersion.has290Features();
}

return true;
}

Expand Down

0 comments on commit 9f16378

Please sign in to comment.