Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Colour cfg'ed code grey #384

Open
nrc opened this issue Jun 29, 2017 · 4 comments
Open

Colour cfg'ed code grey #384

nrc opened this issue Jun 29, 2017 · 4 comments
Labels
enhancement Indicates new feature requests protocol

Comments

@nrc
Copy link
Member

nrc commented Jun 29, 2017

I'm not sure how to implement this, since the syntax highlighter is not connected to the RLS. We need to know from the compiler what code is compiled and what is not, then inform the highlighter some how. We might only be able to do that in rustw.

@HighCommander4
Copy link

cquery (a C++ language server) does this by implementing a new server -> client message called publishInactiveRegions as a protocol extension. The message contains an array of Ranges identifying the inactive regions in the file.

@Xanewok Xanewok added the enhancement Indicates new feature requests label Mar 3, 2019
@Xanewok
Copy link
Member

Xanewok commented Mar 3, 2019

I think this is in the semantic highlighting area: microsoft/vscode-languageserver-node#368

@HighCommander4
Copy link

I think it's distinct from semantic highlighting. Semantic highlighting involves coloring individual tokens based on their role (or the role of the entity they resolve to). This feature involves taking entire sections of code (entire lines) and greying them out, possibly combining the grey filter with the semantic colors of the tokens inside.

@Xanewok
Copy link
Member

Xanewok commented Apr 17, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Indicates new feature requests protocol
Projects
None yet
Development

No branches or pull requests

3 participants