Quellcode durchsuchen

Adds a welcome view

main
Eric Amodio vor 4 Jahren
Ursprung
Commit
a59b8f817e
5 geänderte Dateien mit 54 neuen und 0 gelöschten Zeilen
  1. +33
    -0
      package.json
  2. +1
    -0
      src/commands.ts
  3. +14
    -0
      src/commands/closeWelcomeView.ts
  4. +1
    -0
      src/commands/common.ts
  5. +5
    -0
      src/config.ts

+ 33
- 0
package.json Datei anzeigen

@ -2030,6 +2030,12 @@
"markdownDescription": "Specifies when to switch between displaying files as a `tree` or `list` based on the number of files in a nesting level in the _Tags_ view. Only applies when `#gitlens.views.tags.files.layout#` is set to `auto`",
"scope": "window"
},
"gitlens.views.welcome.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Specifies whether to show the _Welcome_ view",
"scope": "window"
},
"gitlens.advanced.abbreviatedShaLength": {
"type": "number",
"default": "7",
@ -7507,7 +7513,34 @@
}
]
},
"viewsWelcome": [
{
"view": "gitlens.views.welcome",
"contents": "GitLens is powerful and feature rich, while also highly customizable. You can use the GitLens Welcome experience to quickly customize GitLens to meet your needs. And for many more options, use the GitLens Interactive Settings.\n\n[Welcome (Quick Setup)](command:gitlens.showWelcomePage \"Opens GitLens Quick Setup\")\n\n[Open Settings](command:gitlens.showSettingsPage \"Opens GitLens Interactive Settings\")"
},
{
"view": "gitlens.views.welcome",
"contents": "You can also quickly switch between different side bar layouts for GitLens views to best match your workflow.\n\n[Change View Layout](command:gitlens.setViewsLayout \"Change GitLens Views Layout\")"
},
{
"view": "gitlens.views.welcome",
"contents": "While GitLens is generously offered to everyone free of charge, if you find it useful, please consider sponsoring it.\n\n[Sponsor GitLens ❤](command:gitlens.supportGitLens \"Sponsor GitLens\")"
},
{
"view": "gitlens.views.welcome",
"contents": "Once you are satisfied, feel free to close this view.\n\n[Close Welcome View](command:gitlens.closeWelcomeView \"Close View\")"
}
],
"views": {
"gitlens": [
{
"id": "gitlens.views.welcome",
"name": "Welcome",
"when": "config.gitlens.views.welcome.enabled",
"contextualTitle": "GitLens",
"icon": "images/gitlens-activitybar.svg"
}
],
"scm": [
{
"id": "gitlens.views.repositories",

+ 1
- 0
src/commands.ts Datei anzeigen

@ -3,6 +3,7 @@
export * from './commands/addAuthors';
export * from './commands/browseRepoAtRevision';
export * from './commands/closeUnchangedFiles';
export * from './commands/closeWelcomeView';
export * from './commands/common';
export * from './commands/copyMessageToClipboard';
export * from './commands/copyShaToClipboard';

+ 14
- 0
src/commands/closeWelcomeView.ts Datei anzeigen

@ -0,0 +1,14 @@
'use strict';
import { configuration } from '../configuration';
import { command, Command, Commands } from './common';
@command()
export class CloseWelcomeViewCommand extends Command {
constructor() {
super(Commands.CloseWelcomeView);
}
async execute() {
void (await configuration.updateEffective('views', 'welcome', 'enabled', false));
}
}

+ 1
- 0
src/commands/common.ts Datei anzeigen

@ -29,6 +29,7 @@ export enum Commands {
BrowseRepoAtRevisionInNewWindow = 'gitlens.browseRepoAtRevisionInNewWindow',
ClearFileAnnotations = 'gitlens.clearFileAnnotations',
CloseUnchangedFiles = 'gitlens.closeUnchangedFiles',
CloseWelcomeView = 'gitlens.closeWelcomeView',
ComputingFileAnnotations = 'gitlens.computingFileAnnotations',
ConnectRemoteProvider = 'gitlens.connectRemoteProvider',
CopyMessageToClipboard = 'gitlens.copyMessageToClipboard',

+ 5
- 0
src/config.ts Datei anzeigen

@ -434,6 +434,7 @@ interface ViewsConfigs {
search: SearchViewConfig;
stashes: StashesViewConfig;
tags: TagsViewConfig;
welcome: WelcomeViewConfig;
}
export type ViewsConfigKeys = keyof ViewsConfigs;
@ -526,6 +527,10 @@ export interface TagsViewConfig {
files: ViewsFilesConfig;
}
export interface WelcomeViewConfig {
enabled: boolean;
}
export interface ViewsFilesConfig {
compact: boolean;
layout: ViewFilesLayout;

Laden…
Abbrechen
Speichern