|
57 | 57 | "displayName": "Java: Get File Structure", |
58 | 58 | "canBeReferencedInPrompt": true, |
59 | 59 | "icon": "$(symbol-class)", |
| 60 | + "when": "vscode-java-dependency.enableLspTools", |
60 | 61 | "inputSchema": { |
61 | 62 | "type": "object", |
62 | 63 | "properties": { |
|
75 | 76 | "displayName": "Java: Find Symbol", |
76 | 77 | "canBeReferencedInPrompt": true, |
77 | 78 | "icon": "$(search)", |
| 79 | + "when": "vscode-java-dependency.enableLspTools", |
78 | 80 | "inputSchema": { |
79 | 81 | "type": "object", |
80 | 82 | "properties": { |
|
97 | 99 | "displayName": "Java: Get File Imports", |
98 | 100 | "canBeReferencedInPrompt": true, |
99 | 101 | "icon": "$(references)", |
| 102 | + "when": "vscode-java-dependency.enableLspTools", |
100 | 103 | "inputSchema": { |
101 | 104 | "type": "object", |
102 | 105 | "properties": { |
|
115 | 118 | "displayName": "Java: Get Type at Position", |
116 | 119 | "canBeReferencedInPrompt": true, |
117 | 120 | "icon": "$(symbol-field)", |
| 121 | + "when": "vscode-java-dependency.enableLspTools", |
118 | 122 | "inputSchema": { |
119 | 123 | "type": "object", |
120 | 124 | "properties": { |
|
141 | 145 | "displayName": "Java: Get Call Hierarchy", |
142 | 146 | "canBeReferencedInPrompt": true, |
143 | 147 | "icon": "$(call-incoming)", |
| 148 | + "when": "vscode-java-dependency.enableLspTools", |
144 | 149 | "inputSchema": { |
145 | 150 | "type": "object", |
146 | 151 | "properties": { |
|
173 | 178 | "displayName": "Java: Get Type Hierarchy", |
174 | 179 | "canBeReferencedInPrompt": true, |
175 | 180 | "icon": "$(type-hierarchy)", |
| 181 | + "when": "vscode-java-dependency.enableLspTools", |
176 | 182 | "inputSchema": { |
177 | 183 | "type": "object", |
178 | 184 | "properties": { |
|
511 | 517 | "type": "boolean", |
512 | 518 | "description": "%configuration.java.project.explorer.showNonJavaResources%", |
513 | 519 | "default": true |
| 520 | + }, |
| 521 | + "vscode-java-dependency.enableLspTools": { |
| 522 | + "type": "boolean", |
| 523 | + "scope": "application", |
| 524 | + "description": "%configuration.vscode-java-dependency.enableLspTools.description%", |
| 525 | + "default": false, |
| 526 | + "tags": ["experimental"], |
| 527 | + "experiment": { |
| 528 | + "mode": "startup" |
| 529 | + } |
514 | 530 | } |
515 | 531 | } |
516 | 532 | }, |
|
1232 | 1248 | ], |
1233 | 1249 | "chatSkills": [ |
1234 | 1250 | { |
1235 | | - "path": "./resources/skills/java-lsp-tools/SKILL.md" |
| 1251 | + "path": "./resources/skills/java-lsp-tools/SKILL.md", |
| 1252 | + "when": "vscode-java-dependency.enableLspTools" |
1236 | 1253 | } |
1237 | 1254 | ], |
1238 | 1255 | "chatInstructions": [ |
1239 | 1256 | { |
1240 | | - "path": "./resources/instruments/javaLspContext.instructions.md" |
| 1257 | + "path": "./resources/instruments/javaLspContext.instructions.md", |
| 1258 | + "when": "vscode-java-dependency.enableLspTools" |
1241 | 1259 | } |
1242 | 1260 | ] |
1243 | 1261 | }, |
|
0 commit comments