Skip to content

Customize validator and generator using workspace.ConfigurationProvider #1651

Answered by msujew
borisbrodski asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @borisbrodski,

the configuration you're talking about is essentially a compiler configuration. Most programming languages (like TypeScript's tsconfig.json) feature a separate configuration format for that. The CLI and the language server would both read that file to determine the compiler options.

In general, you shouldn't use compiler options as language server configuration items. As you've already seen, reading those in a CLI is effectively impossible and there's even one more important argument: The language server provides language services to an IDE. Therefore, unless absolutely necessary, only language service related configurations should appear as configuration items (i.e. st…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by borisbrodski
Comment options

You must be logged in to vote
1 reply
@msujew
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants