Skip to content

Package the CLI with a VSCODE extension #1243

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

You must be logged in to vote

Hey @lazkany,

it really depends on what you want to do with the CLI/generator/interpreter:

  1. Do you want it to run on dirty states of files?
  2. Do you want to have the option to also publish it to npm as a standalone tool?
  3. Do you want to have it run explicitly or implicitly on document change?

Generally, it's no problem to deploy some additional tooling with the vscode extension. One simple example would be to simply run a generator when the DocumentBuilder.onBuildPhase(DocumentState.Validated, callback) callback triggers. You would then implicitly run the generator on every document that has successfully validated.

Another approach would be to register a command in vscode that does exactly …

Replies: 1 comment 1 reply

Comment options

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

Answer selected by lazkany
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