Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 155 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,16 @@
"title": "%cmake-tools.command.cmake.quickStart.title%",
"category": "CMake"
},
{
"command": "cmake.addFileToCMakeLists",
"title": "%cmake-tools.command.cmake.addFileToCMakeLists.title%",
"category": "CMake"
},
{
"command": "cmake.removeFileFromCMakeLists",
"title": "%cmake-tools.command.cmake.removeFileFromCMakeLists.title%",
"category": "CMake"
},
{
"command": "cmake.debugTarget",
"title": "%cmake-tools.command.cmake.debugTarget.title%",
Expand Down Expand Up @@ -3842,6 +3852,151 @@
"default": false,
"description": "%cmake-tools.configuration.cmake.useFolderPropertyInBuildTargetDropdown.description%",
"scope": "resource"
},
"cmake.modifyLists.addNewSourceFiles": {
"type": "string",
"default": "yes",
"enum": [
"no",
"yes",
"ask"
],
"description": "%cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.description%",
"enumDescriptions": [
"%cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.no.description%",
"%cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.yes.description%",
"%cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.ask.description%"
],
"order": 100,
"scope": "resource"
},
"cmake.modifyLists.removeDeletedSourceFiles": {
"type": "string",
"default": "yes",
"enum": [
"no",
"yes",
"ask"
],
"description": "%cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.description%",
"enumDescriptions": [
"%cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.no.description%",
"%cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.yes.description%",
"%cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.ask.description%"
],
"order": 101,
"scope": "resource"
},
"cmake.modifyLists.variableSelection": {
"type": "string",
"enum": [
"never",
"auto",
"askFirstParentDir",
"askParentDirs"
],
"default": "never",
"markdownDescription": "%cmake-tools.configuration.cmake.modifyLists.variableSelection.markdownDescription%",
"markdownEnumDescriptions": [
"%cmake-tools.configuration.cmake.modifyLists.variableSelection.never.description%",
"%cmake-tools.configuration.cmake.modifyLists.variableSelection.auto.description%",
"%cmake-tools.configuration.cmake.modifyLists.variableSelection.askFirstParentDir.description%",
"%cmake-tools.configuration.cmake.modifyLists.variableSelection.askParentDirs.description%"
],
"order": 102,
"scope": "resource"
},
"cmake.modifyLists.sourceVariables": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"SRC",
"SRCS",
"SOURCES",
"SOURCE_FILES",
"*_SRC",
"*_SRCS",
"*_SOURCES",
"*_SOURCE_FILES"
],
"markdownDescription": "%cmake-tools.configuration.cmake.modifyLists.sourceVariables.markdownDescription%",
"order": 103,
"scope": "resource"
},
"cmake.modifyLists.targetSelection": {
"type": "string",
"enum": [
"auto",
"askNearestSourceDir",
"askParentSourceDirs"
],
"default": "askParentSourceDirs",
"description": "%cmake-tools.configuration.cmake.modifyLists.targetSelection.description%",
"enumDescriptions": [
"%cmake-tools.configuration.cmake.modifyLists.targetSelection.auto.description%",
"%cmake-tools.configuration.cmake.modifyLists.targetSelection.askNearestSourceDir.description%",
"%cmake-tools.configuration.cmake.modifyLists.targetSelection.askParentSourceDirs.description%"
],
"order": 104,
"scope": "resource"
},
"cmake.modifyLists.targetCommandInvocationSelection": {
"type": "string",
"enum": [
"auto",
"askFirstParentDir",
"askParentDirs"
],
"default": "askParentDirs",
"description": "%cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.description%",
"enumDescriptions": [
"%cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.auto.description%",
"%cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.askFirstParentDir.description%",
"%cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.askParentDirs.description%"
],
"order": 105,
"scope": "resource"
},
"cmake.modifyLists.targetSourceCommands": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"target_sources",
"add_executable",
"add_library"
],
"markdownDescription": "%cmake-tools.configuration.cmake.modifyLists.targetSourceCommands.markdownDescription%",
"order": 106,
"scope": "resource"
},
"cmake.modifyLists.scopeSelection": {
"type": "string",
"enum": [
"auto",
"ask"
],
"default": "ask",
"description": "%cmake-tools.configuration.cmake.modifyLists.scopeSelection.description%",
"enumDescriptions": [
"%cmake-tools.configuration.cmake.modifyLists.scopeSelection.auto.description%",
"%cmake-tools.configuration.cmake.modifyLists.scopeSelection.ask.description%"
],
"order": 107,
"scope": "resource"
},
"cmake.modifyLists.sourceListKeywords": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "%cmake-tools.configuration.cmake.modifyLists.sourceListKeywords.markdownDescription%",
"order": 108,
"scope": "resource"
}
}
},
Expand Down
56 changes: 55 additions & 1 deletion package.nls.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"cmake-tools.command.cmake.addFileToCMakeLists.title": "Add File to CMake Lists",
"cmake-tools.command.cmake.removeFileFromCMakeLists.title": "Remove File from CMake Lists",
"cmake-tools.command.cmake.openCMakePresets.title": "Open CMakePresets.json",
"cmake-tools.command.cmake.addConfigurePreset.title": "Add Configure Preset",
"cmake-tools.command.cmake.addBuildPreset.title": "Add Build Preset",
Expand Down Expand Up @@ -383,5 +385,57 @@
"cmake-tools.debugger.label": "CMake Debugger",
"cmake-tools.command.cmake.appendBuildDirectoryToWorkspace.title": "Append Build Directory to Current Workspace",
"cmake-tools.command.workbench.action.tasks.configureTaskRunner.title":"Configure Task",
"cmake-tools.command.workbench.action.tasks.runTask.title":"Run Task"
"cmake-tools.command.workbench.action.tasks.runTask.title":"Run Task",
"cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.description": "Add source files to CMake lists when they are created.",
"cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.no.description": "Do not automatically add source files to CMake lists",
"cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.yes.description": "Automatically add source files to CMake lists",
"cmake-tools.configuration.cmake.modifyLists.addNewSourceFiles.ask.description": "Show a preview panel of proposed changes to apply",
"cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.description": "Remove source files from CMake lists when they are deleted.",
"cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.no.description": "Do not automatically remove source files from CMake lists",
"cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.yes.description": "Automatically remove source files from CMake lists",
"cmake-tools.configuration.cmake.modifyLists.removeDeletedSourceFiles.ask.description": "Show a preview panel of proposed changes to apply",
"cmake-tools.configuration.cmake.modifyLists.variableSelection.markdownDescription": {
"message": "How to choose which `set()` or `list(APPEND/PREPEND/INSERT)` command invocation to edit when adding source files to CMake lists.",
"comment": [
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
]
},
"cmake-tools.configuration.cmake.modifyLists.variableSelection.never.description": "Do not look for variable modification command invocations, only look for source command invocations.",
"cmake-tools.configuration.cmake.modifyLists.variableSelection.auto.description": "Choose the best candidate automatically.",
"cmake-tools.configuration.cmake.modifyLists.variableSelection.askFirstParentDir.description": {
"message": "Present a Quick Pick with options from the first `CMakeLists.txt` found when searching up from the location of the new source file.",
"comment": [
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
]
},
"cmake-tools.configuration.cmake.modifyLists.variableSelection.askParentDirs.description": {
"message": "Present a Quick Pick with options from all `CMakeLists.txt` files found when searching up from the location of the new source file.",
"comment": [
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
]
},
"cmake-tools.configuration.cmake.modifyLists.sourceVariables.markdownDescription": {
"message": "Variables to add source files to. Variables appearing earlier in this list will be given higher priority. Only used if `#cmake.modifyLists.variableSelection#` is not `never`. Supports glob patterns.",
"comment": [
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
]
},
"cmake-tools.configuration.cmake.modifyLists.targetSelection.description": "How to choose which target to add new source files to when adding source files to CMake lists.",
"cmake-tools.configuration.cmake.modifyLists.targetSelection.auto.description": "Choose the best candidate automatically.",
"cmake-tools.configuration.cmake.modifyLists.targetSelection.askNearestSourceDir.description": "Present a Quick Pick with targets whose source directories are closest to location of the new source file.",
"cmake-tools.configuration.cmake.modifyLists.targetSelection.askParentSourceDirs.description": "Present a Quick Pick with targets whose source directories contain the location of the new source file.",
"cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.description": "How to choose which of a target's source command invocations to edit when adding source files to CMake lists.",
"cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.auto.description": "Choose the best candidate automatically.",
"cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.askFirstParentDir.description": "Present a Quick Pick with options from the CMake list file in the parent directory closest to the location of the new source file.",
"cmake-tools.configuration.cmake.modifyLists.targetCommandInvocationSelection.askParentDirs.description": "Present a Quick Pick with options from all CMake list files in the parent directories of the new source file.",
"cmake-tools.configuration.cmake.modifyLists.targetSourceCommands.markdownDescription": {
"message": "Commands to treat as target source commands when adding source files CMake lists. Commands appearing earlier in this list will be given higher priority. Supports glob patterns.\n\nIf you are using the File API (see `#cmake.cmakeCommunicationMode#`), user-defined functions and macros which call the commands in this list are detected automatically and added to it.",
"comment": [
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
]
},
"cmake-tools.configuration.cmake.modifyLists.scopeSelection.description": "How to choose which of a target's visibility scopes, file sets, or source keyword parameters to edit when adding source files to CMake lists.",
"cmake-tools.configuration.cmake.modifyLists.scopeSelection.auto.description": "Choose the best candidate automatically.",
"cmake-tools.configuration.cmake.modifyLists.scopeSelection.ask.description": "Present a Quick Pick with options from the selected target source command invocation.",
"cmake-tools.configuration.cmake.modifyLists.sourceListKeywords.markdownDescription": "Keyword arguments to user-defined functions and macros which introduce lists of source files. If left empty, all arguments consisting of only upper-case letters and underscores will be considered. Supports glob patterns"
}
Loading