Skip to content

Add flag to generate tasks.json for VSCode from chpl-shim#27530

Merged
jabraham17 merged 7 commits intochapel-lang:mainfrom
jabraham17:gen-vscode-tasks
Aug 5, 2025
Merged

Add flag to generate tasks.json for VSCode from chpl-shim#27530
jabraham17 merged 7 commits intochapel-lang:mainfrom
jabraham17:gen-vscode-tasks

Conversation

@jabraham17
Copy link
Member

@jabraham17 jabraham17 commented Jul 16, 2025

Adds a new flag to chpl-shim to generate tasks.json for VSCode. Resolves #24678

Users can now pass the --vscode flag to chpl-shim and it will generate the tasks required to use VSCode to build their project. This allows users to compile their code once using the terminal, and then always rely on the VSCode GUI.

For example

chpl-shim --vscode chpl MyFile.chpl OtherFile.chpl

This will generate a .vscode/tasks.json, in addition to the generated .cls-commands.json file.

[Reviewed by @DanilaFe]

Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
@jabraham17 jabraham17 requested a review from DanilaFe July 28, 2025 19:09
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
@jabraham17 jabraham17 merged commit b59ccae into chapel-lang:main Aug 5, 2025
11 checks passed
@jabraham17 jabraham17 deleted the gen-vscode-tasks branch August 5, 2025 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LSP: have chpl-shim generate launch / debugging configurations for VSCode etc.

2 participants