|
707 | 707 | "title": "%cmake-tools.command.cmake.quickStart.title%", |
708 | 708 | "category": "CMake" |
709 | 709 | }, |
| 710 | + { |
| 711 | + "command": "cmake.addFileToCMakeLists", |
| 712 | + "title": "Add File to CMake Lists", |
| 713 | + "category": "CMake" |
| 714 | + }, |
| 715 | + { |
| 716 | + "command": "cmake.removeFileFromCMakeLists", |
| 717 | + "title": "Remove File from CMake Lists", |
| 718 | + "category": "CMake" |
| 719 | + }, |
710 | 720 | { |
711 | 721 | "command": "cmake.debugTarget", |
712 | 722 | "title": "%cmake-tools.command.cmake.debugTarget.title%", |
|
3665 | 3675 | "default": false, |
3666 | 3676 | "description": "%cmake-tools.configuration.cmake.useFolderPropertyInBuildTargetDropdown.description%", |
3667 | 3677 | "scope": "resource" |
| 3678 | + }, |
| 3679 | + "cmake.modifyLists.addNewSourceFiles": { |
| 3680 | + "type": "string", |
| 3681 | + "default": "yes", |
| 3682 | + "enum": [ |
| 3683 | + "no", |
| 3684 | + "yes", |
| 3685 | + "ask" |
| 3686 | + ], |
| 3687 | + "description": "Add source files to CMake lists when they are created.", |
| 3688 | + "enumDescriptions": [ |
| 3689 | + "Do not automatically add source files to CMake lists", |
| 3690 | + "Automatically add source files to CMake lists", |
| 3691 | + "Show a preview panel of proposed changes to apply" |
| 3692 | + ], |
| 3693 | + "order": 100, |
| 3694 | + "scope": "resource" |
| 3695 | + }, |
| 3696 | + "cmake.modifyLists.removeDeletedSourceFiles": { |
| 3697 | + "type": "string", |
| 3698 | + "default": "yes", |
| 3699 | + "enum": [ |
| 3700 | + "no", |
| 3701 | + "yes", |
| 3702 | + "ask" |
| 3703 | + ], |
| 3704 | + "description": "Remove source files from CMake lists when they are deleted.", |
| 3705 | + "enumDescriptions": [ |
| 3706 | + "Do not automatically remove source files from CMake lists", |
| 3707 | + "Automatically remove source files from CMake lists", |
| 3708 | + "Show a preview panel of proposed changes to apply" |
| 3709 | + ], |
| 3710 | + "order": 101, |
| 3711 | + "scope": "resource" |
| 3712 | + }, |
| 3713 | + "cmake.modifyLists.variableSelection": { |
| 3714 | + "type": "string", |
| 3715 | + "enum": [ |
| 3716 | + "never", |
| 3717 | + "auto", |
| 3718 | + "askFirstParentDir", |
| 3719 | + "askParentDirs" |
| 3720 | + ], |
| 3721 | + "default": "never", |
| 3722 | + "markdownDescription": "How to choose which `set()` or `list(APPEND/PREPEND/INSERT)` command invocation to edit when adding source files to CMake lists.", |
| 3723 | + "markdownEnumDescriptions": [ |
| 3724 | + "Do not look for variable modification command invocations, only look for source command invocations.", |
| 3725 | + "Choose the best candidate automatically.", |
| 3726 | + "Present a Quick Pick with options from the first `CMakeLists.txt` found when searching up from the location of the new source file.", |
| 3727 | + "Present a Quick Pick with options from all `CMakeLists.txt` files found when searching up from the location of the new source file." |
| 3728 | + ], |
| 3729 | + "order": 102, |
| 3730 | + "scope": "resource" |
| 3731 | + }, |
| 3732 | + "cmake.modifyLists.sourceVariables": { |
| 3733 | + "type": "array", |
| 3734 | + "items": { |
| 3735 | + "type": "string" |
| 3736 | + }, |
| 3737 | + "default": [ |
| 3738 | + "SRC", |
| 3739 | + "SRCS", |
| 3740 | + "SOURCES", |
| 3741 | + "SOURCE_FILES", |
| 3742 | + "*_SRC", |
| 3743 | + "*_SRCS", |
| 3744 | + "*_SOURCES", |
| 3745 | + "*_SOURCE_FILES" |
| 3746 | + ], |
| 3747 | + "markdownDescription": "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.", |
| 3748 | + "order": 103, |
| 3749 | + "scope": "resource" |
| 3750 | + }, |
| 3751 | + "cmake.modifyLists.targetSelection": { |
| 3752 | + "type": "string", |
| 3753 | + "enum": [ |
| 3754 | + "auto", |
| 3755 | + "askNearestSourceDir", |
| 3756 | + "askParentSourceDirs" |
| 3757 | + ], |
| 3758 | + "default": "askParentSourceDirs", |
| 3759 | + "description": "How to choose which target to add new source files to when adding source files to CMake lists.", |
| 3760 | + "enumDescriptions": [ |
| 3761 | + "Choose the best candidate automatically.", |
| 3762 | + "Present a Quick Pick with targets whose source directories are closest to location of the new source file.", |
| 3763 | + "Present a Quick Pick with targets whose source directories contain the location of the new source file." |
| 3764 | + ], |
| 3765 | + "order": 104, |
| 3766 | + "scope": "resource" |
| 3767 | + }, |
| 3768 | + "cmake.modifyLists.targetCommandInvocationSelection": { |
| 3769 | + "type": "string", |
| 3770 | + "enum": [ |
| 3771 | + "auto", |
| 3772 | + "askFirstParentDir", |
| 3773 | + "askParentDirs" |
| 3774 | + ], |
| 3775 | + "default": "askParentDirs", |
| 3776 | + "description": "How to choose which of a target's source command invocations to edit when adding source files to CMake lists.", |
| 3777 | + "enumDescriptions": [ |
| 3778 | + "Choose the best candidate automatically.", |
| 3779 | + "Present a Quick Pick with options from the CMake list file in the parent directory closest to the location of the new source file.", |
| 3780 | + "Present a Quick Pick with options from all CMake list files in the parent directories of the new source file." |
| 3781 | + ], |
| 3782 | + "order": 105, |
| 3783 | + "scope": "resource" |
| 3784 | + }, |
| 3785 | + "cmake.modifyLists.targetSourceCommands": { |
| 3786 | + "type": "array", |
| 3787 | + "items": { |
| 3788 | + "type": "string" |
| 3789 | + }, |
| 3790 | + "default": [ |
| 3791 | + "target_sources", |
| 3792 | + "add_executable", |
| 3793 | + "add_library" |
| 3794 | + ], |
| 3795 | + "markdownDescription": "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.", |
| 3796 | + "order": 106, |
| 3797 | + "scope": "resource" |
| 3798 | + }, |
| 3799 | + "cmake.modifyLists.scopeSelection": { |
| 3800 | + "type": "string", |
| 3801 | + "enum": [ |
| 3802 | + "auto", |
| 3803 | + "ask" |
| 3804 | + ], |
| 3805 | + "default": "ask", |
| 3806 | + "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.", |
| 3807 | + "enumDescriptions": [ |
| 3808 | + "Choose the best candidate automatically.", |
| 3809 | + "Present a Quick Pick with options from the selected target source command invocation." |
| 3810 | + ], |
| 3811 | + "order": 107, |
| 3812 | + "scope": "resource" |
| 3813 | + }, |
| 3814 | + "cmake.modifyLists.sourceListKeywords": { |
| 3815 | + "type": "array", |
| 3816 | + "items": { |
| 3817 | + "type": "string" |
| 3818 | + }, |
| 3819 | + "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", |
| 3820 | + "order": 108, |
| 3821 | + "scope": "resource" |
3668 | 3822 | } |
3669 | 3823 | } |
3670 | 3824 | }, |
|
0 commit comments