mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
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:
parent
2b44aa50fd
commit
5271145f3f
|
@ -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"
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue