|
160 | 160 | "editor/title/run": [
|
161 | 161 | {
|
162 | 162 | "command": "qsharp-vscode.runProgram",
|
163 |
| - "when": "resourceLangId == qsharp || resourceLangId == openqasm || resourceLangId == qsharpcircuit", |
| 163 | + "when": "(resourceLangId == qsharp || resourceLangId == qsharpcircuit) || (resourceLangId == openqasm && !config.qdk.openqasm.enableSpecMode)", |
164 | 164 | "group": "navigation@1"
|
165 | 165 | },
|
166 | 166 | {
|
167 | 167 | "command": "qsharp-vscode.debugProgram",
|
168 |
| - "when": "resourceLangId == qsharp || resourceLangId == openqasm || resourceLangId == qsharpcircuit", |
| 168 | + "when": "(resourceLangId == qsharp || resourceLangId == qsharpcircuit) || (resourceLangId == openqasm && !config.qdk.openqasm.enableSpecMode)", |
169 | 169 | "group": "navigation@2"
|
170 | 170 | }
|
171 | 171 | ],
|
172 | 172 | "commandPalette": [
|
173 | 173 | {
|
174 | 174 | "command": "qsharp-vscode.runProgram",
|
175 |
| - "when": "resourceLangId == qsharp || resourceLangId == openqasm || resourceLangId == qsharpcircuit" |
| 175 | + "when": "(resourceLangId == qsharp || resourceLangId == qsharpcircuit) || (resourceLangId == openqasm && !config.qdk.openqasm.enableSpecMode)" |
176 | 176 | },
|
177 | 177 | {
|
178 | 178 | "command": "qsharp-vscode.debugProgram",
|
179 |
| - "when": "resourceLangId == qsharp || resourceLangId == openqasm || resourceLangId == qsharpcircuit" |
| 179 | + "when": "(resourceLangId == qsharp || resourceLangId == qsharpcircuit) || (resourceLangId == openqasm && !config.qdk.openqasm.enableSpecMode)" |
180 | 180 | },
|
181 | 181 | {
|
182 | 182 | "command": "qsharp-vscode.runEditorContentsWithCircuit",
|
183 |
| - "when": "resourceLangId == qsharp || resourceLangId == openqasm" |
| 183 | + "when": "(resourceLangId == qsharp || resourceLangId == qsharpcircuit) || (resourceLangId == openqasm && !config.qdk.openqasm.enableSpecMode)" |
184 | 184 | },
|
185 | 185 | {
|
186 | 186 | "command": "qsharp-vscode.targetSubmit",
|
|
204 | 204 | },
|
205 | 205 | {
|
206 | 206 | "command": "qsharp-vscode.getQir",
|
207 |
| - "when": "resourceLangId == qsharp || resourceLangId == openqasm" |
| 207 | + "when": "(resourceLangId == qsharp || resourceLangId == qsharpcircuit) || (resourceLangId == openqasm && !config.qdk.openqasm.enableSpecMode)" |
208 | 208 | },
|
209 | 209 | {
|
210 | 210 | "command": "qsharp-vscode.showHistogram",
|
211 |
| - "when": "resourceLangId == qsharp || resourceLangId == openqasm" |
| 211 | + "when": "(resourceLangId == qsharp || resourceLangId == qsharpcircuit) || (resourceLangId == openqasm && !config.qdk.openqasm.enableSpecMode)" |
212 | 212 | },
|
213 | 213 | {
|
214 | 214 | "command": "qsharp-vscode.showRe",
|
215 |
| - "when": "resourceLangId == qsharp || resourceLangId == openqasm" |
| 215 | + "when": "(resourceLangId == qsharp || resourceLangId == qsharpcircuit) || (resourceLangId == openqasm && !config.qdk.openqasm.enableSpecMode)" |
216 | 216 | },
|
217 | 217 | {
|
218 | 218 | "command": "qsharp-vscode.showHelp",
|
219 | 219 | "when": "resourceLangId == qsharp"
|
220 | 220 | },
|
221 | 221 | {
|
222 | 222 | "command": "qsharp-vscode.showCircuit",
|
223 |
| - "when": "resourceLangId == qsharp || resourceLangId == openqasm" |
| 223 | + "when": "(resourceLangId == qsharp || resourceLangId == qsharpcircuit) || (resourceLangId == openqasm && !config.qdk.openqasm.enableSpecMode)" |
224 | 224 | },
|
225 | 225 | {
|
226 | 226 | "command": "qsharp-vscode.showDocumentation",
|
227 | 227 | "when": "resourceLangId == qsharp"
|
228 | 228 | },
|
229 | 229 | {
|
230 | 230 | "command": "qsharp-vscode.setTargetProfile",
|
231 |
| - "when": "resourceLangId == qsharp || resourceLangId == openqasm" |
| 231 | + "when": "resourceLangId == qsharp || (resourceLangId == openqasm && !config.qdk.openqasm.enableSpecMode)" |
232 | 232 | },
|
233 | 233 | {
|
234 | 234 | "command": "qsharp-vscode.webOpener",
|
|
0 commit comments