Przeglądaj źródła

Adds info button to Workspaces View title with link to help page (#2737)

Adds info button to Workspaces View title with link to help page
main
Ramin Tadayon 1 rok temu
committed by GitHub
rodzic
commit
2fdc9b26f0
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 22 dodań i 1 usunięć
  1. +15
    -0
      package.json
  2. +1
    -0
      src/constants.ts
  3. +6
    -1
      src/views/workspacesView.ts

+ 15
- 0
package.json Wyświetl plik

@ -6903,6 +6903,12 @@
"icon": "$(add)"
},
{
"command": "gitlens.views.workspaces.info",
"title": "Learn more about GitKraken Workspaces...",
"category": "GitLens",
"icon": "$(info)"
},
{
"command": "gitlens.views.workspaces.convert",
"title": "Convert to Cloud Workspace...",
"category": "GitLens",
@ -9451,6 +9457,10 @@
"when": "false"
},
{
"command": "gitlens.views.workspaces.info",
"when": "false"
},
{
"command": "gitlens.views.workspaces.convert",
"when": "false"
},
@ -10930,6 +10940,11 @@
"group": "navigation@99"
},
{
"command": "gitlens.views.workspaces.info",
"when": "view =~ /^gitlens\\.views\\.workspaces/",
"group": "8_info@1"
},
{
"command": "gitlens.views.workspaces.create",
"when": "view =~ /^gitlens\\.views\\.workspaces/ && gitlens:plus",
"group": "navigation@1"

+ 1
- 0
src/constants.ts Wyświetl plik

@ -399,6 +399,7 @@ export type TreeViewCommands = `gitlens.views.${
| `setFilesLayoutTo${'Auto' | 'List' | 'Tree'}`
| `setShowAvatars${'On' | 'Off'}`}`
| `workspaces.${
| 'info'
| 'copy'
| 'refresh'
| 'addRepos'

+ 6
- 1
src/views/workspacesView.ts Wyświetl plik

@ -1,5 +1,5 @@
import type { Disposable } from 'vscode';
import { ProgressLocation, window } from 'vscode';
import { env, ProgressLocation, Uri, window } from 'vscode';
import type { WorkspacesViewConfig } from '../config';
import { Commands } from '../constants';
import type { Container } from '../container';
@ -57,6 +57,11 @@ export class WorkspacesView extends ViewBase<'workspaces', WorkspacesViewNode, W
return [
registerViewCommand(
this.getQualifiedCommand('info'),
() => env.openExternal(Uri.parse('https://help.gitkraken.com/gitlens/side-bar/#workspaces-☁%ef%b8%8f')),
this,
),
registerViewCommand(
this.getQualifiedCommand('copy'),
() => executeCommand(Commands.ViewsCopy, this.activeSelection, this.selection),
this,

Ładowanie…
Anuluj
Zapisz