From 5271145f3ff283fde3dbb58d9a18b0ee3bfff478 Mon Sep 17 00:00:00 2001 From: Joyce Er Date: Sat, 4 Mar 2023 18:58:31 -0800 Subject: [PATCH] Only show `Copy vscode.dev link` when line numbers are enabled (#176153) * Only show `Copy vscode.dev link` when line numbers are enabled * Fix line endings --- extensions/github/package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/extensions/github/package.json b/extensions/github/package.json index 254437081dc..01e18c0a340 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" } ],