From d20656b723b3fbc4146d23b62e2ddcf753a2da05 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Jul 2026 21:57:47 +0000 Subject: [PATCH 1/2] Initial plan From a17835083bf475b10a381abd6c0afe0751914f03 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Jul 2026 21:59:11 +0000 Subject: [PATCH 2/2] Hide Run Python File button for .pyi stub files --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f5b0d6b56dca..a6087eb86952 100644 --- a/package.json +++ b/package.json @@ -1441,13 +1441,13 @@ "command": "python.execInTerminal-icon", "group": "navigation@0", "title": "%python.command.python.execInTerminalIcon.title%", - "when": "resourceLangId == python && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported" + "when": "resourceLangId == python && resourceExtname != .pyi && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported" }, { "command": "python.execInDedicatedTerminal", "group": "navigation@0", "title": "%python.command.python.execInDedicatedTerminal.title%", - "when": "resourceLangId == python && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported" + "when": "resourceLangId == python && resourceExtname != .pyi && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported" } ], "explorer/context": [