|
44 | 44 | "icon": "$(debug-alt)", |
45 | 45 | "title": "%debugpy.command.debugInTerminal.title%" |
46 | 46 | }, |
| 47 | + { |
| 48 | + "category": "Python Debugger", |
| 49 | + "command": "debugpy.debugUsingLaunchConfig", |
| 50 | + "icon": "$(debug-alt)", |
| 51 | + "title": "%debugpy.command.debugUsingLaunchConfig.title%" |
| 52 | + }, |
47 | 53 | { |
48 | 54 | "category": "Python Debugger", |
49 | 55 | "command": "debugpy.clearCacheAndReload", |
|
70 | 76 | "category": "Python Debugger", |
71 | 77 | "command": "debugpy.debugInTerminal", |
72 | 78 | "icon": "$(debug-alt)", |
73 | | - "title": "%debugpy.command.debugInTerminal.title%" |
| 79 | + "title": "%debugpy.command.debugInTerminal.title%", |
| 80 | + "when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python" |
| 81 | + }, |
| 82 | + { |
| 83 | + "category": "Python Debugger", |
| 84 | + "command": "debugpy.debugUsingLaunchConfig", |
| 85 | + "icon": "$(debug-alt)", |
| 86 | + "title": "%debugpy.command.debugUsingLaunchConfig.title%", |
| 87 | + "when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python" |
74 | 88 | }, |
75 | 89 | { |
76 | 90 | "category": "Python Debugger", |
77 | 91 | "command": "debugpy.viewOutput", |
78 | 92 | "title": "%debugpy.command.viewOutput.title%" |
79 | 93 | } |
| 94 | + ], |
| 95 | + "editor/title/run": [ |
| 96 | + { |
| 97 | + "command": "debugpy.debugInTerminal", |
| 98 | + "title": "%debugpy.command.debugInTerminal.title%", |
| 99 | + "when": "resourceLangId == python && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported" |
| 100 | + }, |
| 101 | + { |
| 102 | + "command": "debugpy.debugUsingLaunchConfig", |
| 103 | + "title": "%debugpy.command.debugUsingLaunchConfig.title%", |
| 104 | + "when": "resourceLangId == python && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported" |
| 105 | + } |
80 | 106 | ] |
81 | 107 | }, |
82 | 108 | "configuration": { |
|
0 commit comments