|
120 | 120 | "icon": "$(gear)", |
121 | 121 | "when": "config.python.useEnvironmentsExtension != false" |
122 | 122 | }, |
| 123 | + { |
| 124 | + "command": "python-envs.addFolderToPythonPath", |
| 125 | + "title": "%python-envs.addFolderToPythonPath.title%", |
| 126 | + "category": "Python", |
| 127 | + "icon": "$(new-folder)", |
| 128 | + "when": "config.python.useEnvironmentsExtension != false" |
| 129 | + }, |
| 130 | + { |
| 131 | + "command": "python-envs.openPythonPathFile", |
| 132 | + "title": "%python-envs.openPythonPathFile.title%", |
| 133 | + "category": "Python", |
| 134 | + "icon": "$(file-text)", |
| 135 | + "when": "config.python.useEnvironmentsExtension != false" |
| 136 | + }, |
123 | 137 | { |
124 | 138 | "command": "python-envs.setPkgManager", |
125 | 139 | "title": "%python-envs.setPkgManager.title%", |
|
280 | 294 | ], |
281 | 295 | "menus": { |
282 | 296 | "commandPalette": [ |
| 297 | + { |
| 298 | + "command": "python-envs.addFolderToPythonPath", |
| 299 | + "when": "config.python.useEnvironmentsExtension != false" |
| 300 | + }, |
283 | 301 | { |
284 | 302 | "command": "python-envs.refreshAllManagers", |
285 | 303 | "when": "false" |
|
405 | 423 | "command": "python-envs.refreshPackages", |
406 | 424 | "when": "view == env-managers && viewItem =~ /.*pythonEnvironment.*/" |
407 | 425 | }, |
| 426 | + { |
| 427 | + "command": "python-envs.addFolderToPythonPath", |
| 428 | + "group": "inline", |
| 429 | + "when": "view == env-managers && viewItem =~ /.*pythonEnvironment.*/" |
| 430 | + }, |
| 431 | + { |
| 432 | + "command": "python-envs.openPythonPathFile", |
| 433 | + "when": "view == env-managers && viewItem =~ /.*pythonEnvironment.*/" |
| 434 | + }, |
408 | 435 | { |
409 | 436 | "command": "python-envs.packages", |
410 | 437 | "group": "inline", |
|
495 | 522 | "command": "python-envs.addPythonProjectGivenResource", |
496 | 523 | "group": "inline", |
497 | 524 | "when": "explorerViewletVisible && resourceExtname == .py" |
| 525 | + }, |
| 526 | + { |
| 527 | + "command": "python-envs.addFolderToPythonPath", |
| 528 | + "group": "inline", |
| 529 | + "when": "explorerViewletVisible && explorerResourceIsFolder" |
498 | 530 | } |
499 | 531 | ], |
500 | 532 | "editor/title/run": [ |
|
0 commit comments