Skip to content

Commit a178350

Browse files
authored
Hide Run Python File button for .pyi stub files
1 parent d20656b commit a178350

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,13 +1441,13 @@
14411441
"command": "python.execInTerminal-icon",
14421442
"group": "navigation@0",
14431443
"title": "%python.command.python.execInTerminalIcon.title%",
1444-
"when": "resourceLangId == python && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported"
1444+
"when": "resourceLangId == python && resourceExtname != .pyi && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported"
14451445
},
14461446
{
14471447
"command": "python.execInDedicatedTerminal",
14481448
"group": "navigation@0",
14491449
"title": "%python.command.python.execInDedicatedTerminal.title%",
1450-
"when": "resourceLangId == python && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported"
1450+
"when": "resourceLangId == python && resourceExtname != .pyi && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported"
14511451
}
14521452
],
14531453
"explorer/context": [

0 commit comments

Comments
 (0)