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
This commit is contained in:
Joyce Er 2023-03-04 18:58:31 -08:00 committed by GitHub
parent 2b44aa50fd
commit 5271145f3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"
}
],