diff --git a/extensions/github/package.json b/extensions/github/package.json index 254437081dc77..01e18c0a34059 100644 --- a/extensions/github/package.json +++ b/extensions/github/package.json @@ -110,7 +110,12 @@ "editor/lineNumber/context": [ { "command": "github.copyVscodeDevLink", - "when": "github.hasGitHubRepo && resourceScheme != untitled", + "when": "github.hasGitHubRepo && resourceScheme != untitled && activeEditor == workbench.editors.files.textFileEditor && config.editor.lineNumbers == on", + "group": "1_cutcopypaste@2" + }, + { + "command": "github.copyVscodeDevLink", + "when": "github.hasGitHubRepo && resourceScheme != untitled && activeEditor == workbench.editor.notebook && notebookCellLineNumbers == on", "group": "1_cutcopypaste@2" } ],