Skip to content

Recommendations on other extensions using your CMake extension #3773

Closed Answered by gcampbell-msft
DavidPoliakoff asked this question in Q&A
Discussion options

You must be logged in to vote

@DavidPoliakoff I would agree that directly modifying JSON files doesn't sound like the best idea, however there are vscode supported ways to do this that are much better. Additionally, we don't currently have an API that directly allows for updating settings.

The suggested way, from my point of view, would be to use the vscode.workspace.getConfiguration().update('cmake.cmakePath', "<newPath>") for example. The API is here: https://code.visualstudio.com/api/references/vscode-api

Replies: 2 comments

Comment options

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

You must be logged in to vote
0 replies
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