|
44 | 44 | ],
|
45 | 45 | "menus": {
|
46 | 46 | "commandPalette": [
|
| 47 | + { |
| 48 | + "command": "phpAddProperty.add", |
| 49 | + "when": "editorLangId == php" |
| 50 | + }, |
47 | 51 | {
|
48 | 52 | "command": "phpAddProperty.append",
|
49 | 53 | "when": "editorLangId == php"
|
| 54 | + }, |
| 55 | + { |
| 56 | + "command": "phpAddProperty.remove", |
| 57 | + "when": "editorLangId == php" |
| 58 | + }, |
| 59 | + { |
| 60 | + "command": "phpAddProperty.breakConstructorIntoMultiline", |
| 61 | + "when": "editorLangId == php" |
50 | 62 | }
|
51 | 63 | ],
|
52 | 64 | "editor/context": [
|
53 | 65 | {
|
54 |
| - "when": "resourceLangId == php && config.phpAddProperty.showContextMenuOptions", |
| 66 | + "when": "resourceLangId == php && config.phpAddProperty.contextMenuOptions.enable && config.phpAddProperty.contextMenuOptions.addProperty", |
55 | 67 | "command": "phpAddProperty.add",
|
56 | 68 | "alt": "phpAddProperty.add",
|
57 | 69 | "group": "0_phpAddProperty@1"
|
58 | 70 | },
|
59 | 71 | {
|
60 |
| - "when": "resourceLangId == php && config.phpAddProperty.showContextMenuOptions", |
| 72 | + "when": "resourceLangId == php && config.phpAddProperty.contextMenuOptions.enable && config.phpAddProperty.contextMenuOptions.appendProperty", |
61 | 73 | "command": "phpAddProperty.append",
|
62 | 74 | "alt": "phpAddProperty.append",
|
63 | 75 | "group": "0_phpAddProperty@2"
|
64 | 76 | },
|
65 | 77 | {
|
66 |
| - "when": "resourceLangId == php && config.phpAddProperty.showContextMenuOptions", |
| 78 | + "when": "resourceLangId == php && config.phpAddProperty.contextMenuOptions.enable && config.phpAddProperty.contextMenuOptions.removeProperty", |
67 | 79 | "command": "phpAddProperty.remove",
|
68 | 80 | "alt": "phpAddProperty.remove",
|
69 | 81 | "group": "0_phpAddProperty@3"
|
|
169 | 181 | "default": false,
|
170 | 182 | "description": "Specifies whether to show messages on status bar instead of notification box"
|
171 | 183 | },
|
172 |
| - "phpAddProperty.showContextMenuOptions": { |
| 184 | + "phpAddProperty.contextMenuOptions.enable": { |
173 | 185 | "type": "boolean",
|
174 | 186 | "default": false,
|
175 | 187 | "description": "Specifies whether to show the context menu options"
|
| 188 | + }, |
| 189 | + "phpAddProperty.contextMenuOptions.addProperty": { |
| 190 | + "type": "boolean", |
| 191 | + "default": true, |
| 192 | + "description": "Specifies whether to show the add property command in the context menu options" |
| 193 | + }, |
| 194 | + "phpAddProperty.contextMenuOptions.appendProperty": { |
| 195 | + "type": "boolean", |
| 196 | + "default": true, |
| 197 | + "description": "Specifies whether to show the append property command in the context menu options" |
| 198 | + }, |
| 199 | + "phpAddProperty.contextMenuOptions.removeProperty": { |
| 200 | + "type": "boolean", |
| 201 | + "default": true, |
| 202 | + "description": "Specifies whether to show the remove property command in the context menu options" |
176 | 203 | }
|
177 | 204 | }
|
178 | 205 | }
|
|
0 commit comments