microsoft / microsoft/language-server-protocol

Make the completion trigger character conditional

Open
#1,413 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

completion feature-request
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:

completion

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.