|
943 | 943 | "command": "git.stageSelectedRanges", |
944 | 944 | "key": "ctrl+k ctrl+alt+s", |
945 | 945 | "mac": "cmd+k cmd+alt+s", |
946 | | - "when": "editorTextFocus && resourceScheme =~ /^git$|^file$/" |
| 946 | + "when": "editorTextFocus && resourceScheme == file" |
947 | 947 | }, |
948 | 948 | { |
949 | 949 | "command": "git.unstageSelectedRanges", |
950 | 950 | "key": "ctrl+k ctrl+n", |
951 | 951 | "mac": "cmd+k cmd+n", |
952 | | - "when": "isInDiffEditor && resourceScheme =~ /^git$|^file$/" |
| 952 | + "when": "editorTextFocus && isInDiffEditor && isInDiffRightEditor && resourceScheme == git" |
953 | 953 | }, |
954 | 954 | { |
955 | 955 | "command": "git.revertSelectedRanges", |
956 | 956 | "key": "ctrl+k ctrl+r", |
957 | 957 | "mac": "cmd+k cmd+r", |
958 | | - "when": "editorTextFocus && resourceScheme =~ /^git$|^file$/" |
| 958 | + "when": "editorTextFocus && resourceScheme == file" |
959 | 959 | } |
960 | 960 | ], |
961 | 961 | "menus": { |
|
1026 | 1026 | }, |
1027 | 1027 | { |
1028 | 1028 | "command": "git.stageSelectedRanges", |
1029 | | - "when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && resourceScheme =~ /^git$|^file$/" |
| 1029 | + "when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && resourceScheme == file" |
1030 | 1030 | }, |
1031 | 1031 | { |
1032 | 1032 | "command": "git.stageChange", |
1033 | 1033 | "when": "false" |
1034 | 1034 | }, |
1035 | 1035 | { |
1036 | 1036 | "command": "git.revertSelectedRanges", |
1037 | | - "when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && resourceScheme =~ /^git$|^file$/" |
| 1037 | + "when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && resourceScheme == file" |
1038 | 1038 | }, |
1039 | 1039 | { |
1040 | 1040 | "command": "git.revertChange", |
|
1054 | 1054 | }, |
1055 | 1055 | { |
1056 | 1056 | "command": "git.unstageSelectedRanges", |
1057 | | - "when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /^git$|^file$/" |
| 1057 | + "when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInDiffEditor && isInDiffRightEditor && resourceScheme == git" |
1058 | 1058 | }, |
1059 | 1059 | { |
1060 | 1060 | "command": "git.clean", |
|
2068 | 2068 | { |
2069 | 2069 | "command": "git.stageSelectedRanges", |
2070 | 2070 | "group": "2_git@1", |
2071 | | - "when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /^git$|^file$/" |
| 2071 | + "when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInDiffEditor && isInDiffRightEditor && !isEmbeddedDiffEditor && resourceScheme == file" |
2072 | 2072 | }, |
2073 | 2073 | { |
2074 | 2074 | "command": "git.unstageSelectedRanges", |
2075 | 2075 | "group": "2_git@2", |
2076 | | - "when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /^git$|^file$/" |
| 2076 | + "when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInDiffEditor && isInDiffRightEditor && !isEmbeddedDiffEditor && resourceScheme == git" |
2077 | 2077 | }, |
2078 | 2078 | { |
2079 | 2079 | "command": "git.revertSelectedRanges", |
2080 | 2080 | "group": "2_git@3", |
2081 | | - "when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /^git$|^file$/" |
| 2081 | + "when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInDiffEditor && isInDiffRightEditor && !isEmbeddedDiffEditor && resourceScheme == file" |
2082 | 2082 | }, |
2083 | 2083 | { |
2084 | 2084 | "command": "git.stashApplyEditor", |
|
2096 | 2096 | { |
2097 | 2097 | "command": "git.stageSelectedRanges", |
2098 | 2098 | "group": "2_git@1", |
2099 | | - "when": "isInDiffRightEditor && !isEmbeddedDiffEditor && config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /^git$|^file$/" |
| 2099 | + "when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInDiffEditor && isInDiffRightEditor && !isEmbeddedDiffEditor && resourceScheme == file" |
2100 | 2100 | }, |
2101 | 2101 | { |
2102 | 2102 | "command": "git.unstageSelectedRanges", |
2103 | 2103 | "group": "2_git@2", |
2104 | | - "when": "isInDiffRightEditor && !isEmbeddedDiffEditor && config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /^git$|^file$/" |
| 2104 | + "when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInDiffEditor && isInDiffRightEditor && !isEmbeddedDiffEditor && resourceScheme == git" |
2105 | 2105 | }, |
2106 | 2106 | { |
2107 | 2107 | "command": "git.revertSelectedRanges", |
2108 | 2108 | "group": "2_git@3", |
2109 | | - "when": "isInDiffRightEditor && !isEmbeddedDiffEditor && config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /^git$|^file$/" |
| 2109 | + "when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInDiffEditor && isInDiffRightEditor && !isEmbeddedDiffEditor && resourceScheme == file" |
2110 | 2110 | } |
2111 | 2111 | ], |
2112 | 2112 | "editor/content": [ |
|
0 commit comments