Skip to content

Commit

Permalink
Fix cmake tools selection for import and examples
Browse files Browse the repository at this point in the history
Signed-off-by: paulober <[email protected]>
  • Loading branch information
paulober committed Sep 23, 2024
1 parent 2c12de2 commit d07eb73
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ var exampleSupportedBoards = [];
submitted = false;
return;
}
const useCmakeTools = document.getElementById('use-cmake-tools-cb').checked;

if (doProjectImport) {
vscode.postMessage({
Expand All @@ -293,7 +294,8 @@ var exampleSupportedBoards = [];
pythonPath: pythonPath,

// debugger selection
debugger: 0
debugger: 0,
useCmakeTools
}
});
return;
Expand All @@ -319,7 +321,8 @@ var exampleSupportedBoards = [];
pythonPath: pythonPath,

// debugger selection
debugger: debuggerSelection
debugger: debuggerSelection,
useCmakeTools
}
});
return;
Expand Down Expand Up @@ -366,7 +369,6 @@ var exampleSupportedBoards = [];
const cppCodeGen = document.getElementById('cpp-code-gen-cblist').checked;
const cppRttiCodeGen = document.getElementById('cpp-rtti-code-gen-cblist').checked;
const cppExceptionsCodeGen = document.getElementById('cpp-exceptions-code-gen-cblist').checked;
const useCmakeTools = document.getElementById('use-cmake-tools-cb').checked;

//post all data values to the extension
vscode.postMessage({
Expand Down

0 comments on commit d07eb73

Please sign in to comment.