Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semantic legend #308

Closed
SPGoding opened this issue Jan 28, 2020 · 1 comment
Closed

Semantic legend #308

SPGoding opened this issue Jan 28, 2020 · 1 comment
Assignees
Labels
✨ feature New feature or request *released The changes has been released

Comments

@SPGoding
Copy link
Member

SPGoding commented Jan 28, 2020

A new documentation can be found at the wiki.


Main issue: #307.

See here for LSP reference.
See here for TextMate scope conventiion

Communication

Server

string -> number by enumerators.

Client

number -> string by arrays in the returned legend.

Legend

Semantic Token Types

  • annotation
  • boolean
  • comment
  • entity
  • keyword
  • literal
  • namespacedID
  • number
  • operator
  • property
  • string
  • type
  • variable
  • vector

Semantic Token Modifiers

  • declaration
  • deprecated
  • documentation
  • firstArgument

Default Styles

Semantic Token Selector TextMate Scope Note
annotation markup.heading.annotation.mcfunction A doc comment annotation
boolean constant.language.boolean.mcfunction A boolean value
comment N/A -
entity support.class.entity.mcfunction An entity or a score holder
keyword N/A .. in number ranges and time units
literal keyword.other.mcfunction A literal argument
literal.firstArgument keyword.control.mcfunction A literal argument which is also the first argument
namespacedID entity.name.function A namespaced ID
number N/A -
operator N/A matches, =, /=, etc.
property N/A entity selector arguments keys, block property keys, NBT compound tag keys, and NBT path keys
string N/A -
type N/A Item slots, scoreboard slots, and objective criteria
variable N/A Objectives, teams, and tags
vector constant.numeric.vector.mcfunction A vector
  • N/A means that this token is a standard token and is implemented in VSCode by default.
@SPGoding SPGoding added ✨ feature New feature or request 🔷 lsp-related labels Jan 28, 2020
@SPGoding SPGoding added this to the Release 1.12.0 milestone Jan 28, 2020
@SPGoding SPGoding self-assigned this Jan 28, 2020
@SPGoding SPGoding mentioned this issue Jan 28, 2020
3 tasks
@SPGoding SPGoding mentioned this issue Feb 1, 2020
@SPGoding
Copy link
Member Author

🎉 This issue has been resolved in version 1.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@SPGoding SPGoding added the *released The changes has been released label Feb 18, 2020
@SPGoding SPGoding changed the title A set of semantic tokens Semantic legend Mar 8, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
✨ feature New feature or request *released The changes has been released
Projects
None yet
Development

No branches or pull requests

1 participant