LSP icon indicating copy to clipboard operation
LSP copied to clipboard

Allow selecting a specific output for syntax coloring

Open SIGFUN opened this issue 8 months ago • 1 comments

clangd's compilation database command schema supports an output field which labels the command's output. This is used to disambiguate different processing modes for the same source file (e.g. a single source file that builds release vs. debug variants which have different compiler flags). It'd be great if the Sublime LSP package could index all the outputs present in the compile_commands.json database and allow me to switch among all the processing modes it discovered.

I've got an issue open with clangd to also do something with this field (it's documented, but apparently unused), but they also said that the LSP package could do this itself, and I think they're right.

SIGFUN avatar Apr 15 '25 16:04 SIGFUN