microsoft / microsoft/language-server-protocol

More SemanticTokenModifiers

Open
#1,052 1 comment 0 reactions 1 assignee View on GitHub

@aeschli is already working on this.

Since Nov 11, 2020.

feature-request semantic tokens
Dominant language
TypeScript
Stars
13k
Forks
1k
Avg merge
6d 1h
Merged PRs (30d)
10

Description

I propose to add the following (type based) semantic token modifiers:

  • nullable
  • unknown-type (or maybe just "any-type")

Nullable would indicate that an expression is nullable.

Unknown-type would indicate that the type inference was not able to infer the type.
For example, in Typescript, any call to an expression of type any yields an unknown type, since the inference-engine has no way to know the target of the call.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.