|
64 | 64 | } |
65 | 65 | ], |
66 | 66 | "menus": { |
| 67 | + "commandPalette": [ |
| 68 | + { |
| 69 | + "command": "qtForPython.editForm", |
| 70 | + "when": "resourceExtname == .ui && resourceLangId == xml" |
| 71 | + }, |
| 72 | + { |
| 73 | + "command": "qtForPython.compileForm", |
| 74 | + "when": "resourceExtname == .ui && resourceLangId == xml" |
| 75 | + }, |
| 76 | + { |
| 77 | + "command": "qtForPython.updateTranslation", |
| 78 | + "when": "resourceLangId == python" |
| 79 | + }, |
| 80 | + { |
| 81 | + "command": "qtForPython.editTranslation", |
| 82 | + "when": "resourceExtname == .ts && resourceLangId == xml" |
| 83 | + }, |
| 84 | + { |
| 85 | + "command": "qtForPython.releaseTranslation", |
| 86 | + "when": "resourceExtname == .ts && resourceLangId == xml" |
| 87 | + }, |
| 88 | + { |
| 89 | + "command": "qtForPython.previewQml", |
| 90 | + "when": "resourceLangId == qml" |
| 91 | + }, |
| 92 | + { |
| 93 | + "command": "qtForPython.compileResource", |
| 94 | + "when": "resourceExtname == .qrc && resourceLangId == xml" |
| 95 | + } |
| 96 | + ], |
67 | 97 | "explorer/context": [ |
68 | 98 | { |
69 | 99 | "command": "qtForPython.newForm", |
|
106 | 136 | "group": "qtForPython@8" |
107 | 137 | } |
108 | 138 | ], |
109 | | - "commandPalette": [ |
| 139 | + "editor/title": [ |
110 | 140 | { |
111 | 141 | "command": "qtForPython.editForm", |
112 | | - "when": "resourceExtname == .ui && resourceLangId == xml" |
| 142 | + "when": "resourceExtname == .ui && resourceLangId == xml", |
| 143 | + "group": "qtForPython@2" |
113 | 144 | }, |
114 | 145 | { |
115 | 146 | "command": "qtForPython.compileForm", |
116 | | - "when": "resourceExtname == .ui && resourceLangId == xml" |
| 147 | + "when": "resourceExtname == .ui && resourceLangId == xml", |
| 148 | + "group": "qtForPython@3" |
117 | 149 | }, |
118 | 150 | { |
119 | 151 | "command": "qtForPython.updateTranslation", |
120 | | - "when": "resourceLangId == python" |
| 152 | + "when": "resourceLangId == python", |
| 153 | + "group": "qtForPython@4" |
121 | 154 | }, |
122 | 155 | { |
123 | 156 | "command": "qtForPython.editTranslation", |
124 | | - "when": "resourceExtname == .ts && resourceLangId == xml" |
| 157 | + "when": "resourceExtname == .ts && resourceLangId == xml", |
| 158 | + "group": "qtForPython@5" |
125 | 159 | }, |
126 | 160 | { |
127 | 161 | "command": "qtForPython.releaseTranslation", |
128 | | - "when": "resourceExtname == .ts && resourceLangId == xml" |
| 162 | + "when": "resourceExtname == .ts && resourceLangId == xml", |
| 163 | + "group": "qtForPython@6" |
129 | 164 | }, |
130 | 165 | { |
131 | 166 | "command": "qtForPython.previewQml", |
132 | | - "when": "resourceLangId == qml" |
| 167 | + "when": "resourceLangId == qml", |
| 168 | + "group": "qtForPython@7" |
133 | 169 | }, |
134 | 170 | { |
135 | 171 | "command": "qtForPython.compileResource", |
136 | | - "when": "resourceExtname == .qrc && resourceLangId == xml" |
| 172 | + "when": "resourceExtname == .qrc && resourceLangId == xml", |
| 173 | + "group": "qtForPython@8" |
| 174 | + } |
| 175 | + ], |
| 176 | + "editor/context": [ |
| 177 | + { |
| 178 | + "command": "qtForPython.editForm", |
| 179 | + "when": "resourceExtname == .ui && resourceLangId == xml", |
| 180 | + "group": "qtForPython@2" |
| 181 | + }, |
| 182 | + { |
| 183 | + "command": "qtForPython.compileForm", |
| 184 | + "when": "resourceExtname == .ui && resourceLangId == xml", |
| 185 | + "group": "qtForPython@3" |
| 186 | + }, |
| 187 | + { |
| 188 | + "command": "qtForPython.updateTranslation", |
| 189 | + "when": "resourceLangId == python", |
| 190 | + "group": "qtForPython@4" |
| 191 | + }, |
| 192 | + { |
| 193 | + "command": "qtForPython.editTranslation", |
| 194 | + "when": "resourceExtname == .ts && resourceLangId == xml", |
| 195 | + "group": "qtForPython@5" |
| 196 | + }, |
| 197 | + { |
| 198 | + "command": "qtForPython.releaseTranslation", |
| 199 | + "when": "resourceExtname == .ts && resourceLangId == xml", |
| 200 | + "group": "qtForPython@6" |
| 201 | + }, |
| 202 | + { |
| 203 | + "command": "qtForPython.previewQml", |
| 204 | + "when": "resourceLangId == qml", |
| 205 | + "group": "qtForPython@7" |
| 206 | + }, |
| 207 | + { |
| 208 | + "command": "qtForPython.compileResource", |
| 209 | + "when": "resourceExtname == .qrc && resourceLangId == xml", |
| 210 | + "group": "qtForPython@8" |
137 | 211 | } |
138 | 212 | ] |
139 | 213 | }, |
|
0 commit comments