Skip to content

Commit

Permalink
add configurationSnippets
Browse files Browse the repository at this point in the history
  • Loading branch information
gcampbell-msft committed Aug 10, 2023
1 parent 08511df commit 921de87
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
42 changes: 40 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"vscode": "^1.63.0"
},
"categories": [
"Other"
"Other",
"Debuggers"
],
"galleryBanner": {
"color": "#13578c",
Expand All @@ -50,6 +51,7 @@
"onCommand:cmake.buildKit",
"onCommand:cmake.tasksBuildCommand",
"onDebugResolve:cmake",
"onDebugInitialConfigurations",
"workspaceContains:CMakeLists.txt",
"workspaceContains:*/CMakeLists.txt",
"workspaceContains:*/*/CMakeLists.txt",
Expand Down Expand Up @@ -871,7 +873,43 @@
}
]
}
}
},
"configurationSnippets": [
{
"label": "%cmake-tools.debugger.configure.snippet.label%",
"description": "%cmake-tools.debugger.configure.snippet.description%",
"body": {
"type": "cmake",
"request": "launch",
"name": "%cmake-tools.debugger.configure.snippet.body.name%",
"cmakeDebugType": "configure",
"clean": false,
"configureAll": false
}
},
{
"label": "%cmake-tools.debugger.script.snippet.label%",
"description": "%cmake-tools.debugger.script.snippet.description%",
"body": {
"type": "cmake",
"request": "launch",
"name": "%cmake-tools.debugger.script.snippet.body.name%",
"cmakeDebugType": "script",
"scriptPath": "^\"\\${workspaceFolder}/<...>\""
}
},
{
"label": "%cmake-tools.debugger.external.snippet.label%",
"description": "%cmake-tools.debugger.external.snippet.description%",
"body": {
"type": "cmake",
"request": "launch",
"name": "%cmake-tools.debugger.external.snippet.body.name%",
"cmakeDebugType": "external",
"pipeName": "<...>"
}
}
]
}
],
"menus": {
Expand Down
9 changes: 9 additions & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,15 @@
"cmake-tools.debugger.name": "Name",
"cmake-tools.debugger.value": "Value",
"cmake-tools.debugger.debugType.description": "The type of the CMake debug session. Available options are: \"configure\", \"external\", \"script\".",
"cmake-tools.debugger.configure.snippet.label": "CMake: Configure",
"cmake-tools.debugger.configure.snippet.description": "Debug a CMake project configuration",
"cmake-tools.debugger.configure.snippet.body.name": "CMake: Configure project",
"cmake-tools.debugger.script.snippet.label": "CMake: Script",
"cmake-tools.debugger.script.snippet.description": "Debug a CMake script",
"cmake-tools.debugger.script.snippet.body.name": "CMake: Script debugging",
"cmake-tools.debugger.external.snippet.label": "CMake: External",
"cmake-tools.debugger.external.snippet.description": "Connect to an externally launched CMake invocation",
"cmake-tools.debugger.external.snippet.body.name": "CMake: Externally launched",
"cmake-tools.taskDefinitions.properties.label.description": "The name of the task",
"cmake-tools.taskDefinitions.properties.command.description": "CMake command",
"cmake-tools.taskDefinitions.properties.targets.description": "CMake build targets",
Expand Down

0 comments on commit 921de87

Please sign in to comment.