-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 Coloring #1845
Comments
Not clear what you mean could you elaborate? |
Here is an example of a dsl implemented with racket. Dsl's implemented in racket can register a color-lexer and indenter that is used by Dr. Racket - the official racket IDE. Just finished adding support for formatting and rangeFormatting to the racket langserver. Next goal is to get syntax highlighting and formatting working for arbitrary racket dsls. As you can see on the right the |
Isn't this basically semantic highlighting? |
Not sure what it has to do with semantics (type checking rules and evaluation rules) but it seems that this is what people call it. So what needs to happen for semantic highlighting? Is this a duplicate of #1683? |
Yes, that is semantic coloring. We will soon write a real proposal for that for the LSP and then implement it here and for the TS, Java, Go, Xtext language servers. |
No, in that ticket we discuss 'syntactic' coloring based on regexps or lexers. |
Are you going to publish that Racket extension somewhere? Looks cool :) |
Do you want to add another repo to theia-ide? It's probably not too popular out of an academic setting and may have a similar target audience as xtext, although I doubt that any company being able to afford typefox support would consider this an alternative... |
Academic is good and choice, too. I don't know how much effort it would be to support it, but if you or someone else is willing to take care of that it would be great. It should be a separate repo (below theia-ide or not). |
So what are your thoughts on the protocol? There are a couple of implementation issues to consider:
|
This is best to be discussed on https://github.com/Microsoft/language-server-protocol. |
One note on the Xtext language server support (maybe it is relevant for TS, Java, and Go as well): I assume we would like to support the semantic coloring in the diff editors too. If yes, it could be tricky to get the semantic coloring information for a historical revision. Historical revisions are not part of the workspace anymore. |
There is another use-case we need to support in Theia: the preview editor. When for instance the user triggers the |
Here are a few more related links for this task:
Edit: updated the links. |
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
Closes #1845 Signed-off-by: Akos Kitta <[email protected]>
… capabilities. Closes eclipse-theia#1845 Signed-off-by: Akos Kitta <[email protected]>
This would be useful for embedded dsls. Thoughts?
The text was updated successfully, but these errors were encountered: