microsoft / microsoft/vscode-languageserver-node

SemanticTokensModifier: Add `unused` token modifier

Open
#604 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

depends on VS Code feature-request
Dominant language
TypeScript
Stars
1.8k
Forks
404
Avg merge
2d 8h
Merged PRs (30d)
14

Description

I was thinking today how one might implement "grey out unreachable code" and I think we could do it with semantic tokens. Furthermore it's a pretty common operation spanning many languages. As such I think a modifier for "unused" or "unreachable" should be added to the protocol for consistency across languages.

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

No files or tests are named. Start by locating the semantic-token protocol definitions and existing token modifiers in the repository, then review how a new unused or unreachable modifier would be specified and validated. Done requires an agreed protocol meaning and implementation scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.