diff --git a/extensions/positron-r/package.json b/extensions/positron-r/package.json index f96e5b37dc9..9b48cabb0db 100644 --- a/extensions/positron-r/package.json +++ b/extensions/positron-r/package.json @@ -397,7 +397,7 @@ "command": "r.sourceCurrentFile", "key": "ctrl+shift+enter", "mac": "cmd+shift+enter", - "when": "editorLangId == r" + "when": "editorLangId == r && !isRPackage" }, { "command": "r.insertSection", @@ -485,7 +485,7 @@ "command": "r.sourceCurrentFile", "group": "R", "title": "%r.command.sourceCurrentFile.title%", - "when": "editorLangId == r" + "when": "editorLangId == r && !isRPackage" }, { "command": "r.rmarkdownRender", @@ -500,7 +500,7 @@ "group": "navigation@0", "icon": "$(play)", "title": "%r.command.sourceCurrentFile.title%", - "when": "resourceLangId == r && !isInDiffEditor" + "when": "resourceLangId == r && !isInDiffEditor && !isRPackage" }, { "command": "r.rmarkdownRender",