microsoft / microsoft/language-server-protocol
Make the completion trigger character conditional
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13k
- Forks
- 1k
- Avg merge
- 6d 1h
- Merged PRs (30d)
- 10
Description
This is a feature request to make the completion trigger character take effect conditionally.
Considering the following Java code:
String s = new |
When user enter the space, it would be helpful to show a completion list. This behavior can be observed in other IDEs:

But simply adding space to the trigger characters could be a problem because not every space needs to follow a completion action.
Is it possible to make it conditional? For example, only taking effect when there is a "new" before space.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the completion-trigger behavior described in the issue and the Java example, then determine how conditional triggering should be represented in the protocol. Done means the specification clearly defines when a space triggers completion, such as after new, without triggering completion for every space.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100