Browse Source

Removes WorkspacesViewConfig

main
Eric Amodio 1 year ago
parent
commit
f90def9af3
3 changed files with 2 additions and 9 deletions
  1. +0
    -5
      src/config.ts
  2. +0
    -2
      src/views/viewBase.ts
  3. +2
    -2
      src/views/workspacesView.ts

+ 0
- 5
src/config.ts View File

@ -656,7 +656,6 @@ interface ViewsConfigs {
searchAndCompare: SearchAndCompareViewConfig;
stashes: StashesViewConfig;
tags: TagsViewConfig;
workspaces: WorkspacesViewConfig;
worktrees: WorktreesViewConfig;
}
@ -673,7 +672,6 @@ export const viewsConfigKeys: ViewsConfigKeys[] = [
'searchAndCompare',
'stashes',
'tags',
'workspaces',
'worktrees',
];
@ -816,9 +814,6 @@ export interface WorktreesViewConfig {
showBranchComparison: false | ViewShowBranchComparison.Branch;
}
// TODO@ramint
export type WorkspacesViewConfig = RepositoriesViewConfig;
export interface ViewsFilesConfig {
compact: boolean;
icon: 'status' | 'type';

+ 0
- 2
src/views/viewBase.ts View File

@ -24,7 +24,6 @@ import type {
TagsViewConfig,
ViewsCommonConfig,
ViewsConfigKeys,
WorkspacesViewConfig,
WorktreesViewConfig,
} from '../config';
import { viewsCommonConfigKeys, viewsConfigKeys } from '../config';
@ -107,7 +106,6 @@ export abstract class ViewBase<
| SearchAndCompareViewConfig
| StashesViewConfig
| TagsViewConfig
| WorkspacesViewConfig
| WorktreesViewConfig,
>
implements TreeDataProvider<ViewNode>, Disposable

+ 2
- 2
src/views/workspacesView.ts View File

@ -1,5 +1,5 @@
import { Disposable, env, ProgressLocation, Uri, window } from 'vscode';
import type { WorkspacesViewConfig } from '../config';
import type { RepositoriesViewConfig } from '../config';
import { Commands } from '../constants';
import type { Container } from '../container';
import { unknownGitUri } from '../git/gitUri';
@ -16,7 +16,7 @@ import { WorkspacesViewNode } from './nodes/workspacesViewNode';
import { ViewBase } from './viewBase';
import { registerViewCommand } from './viewCommands';
export class WorkspacesView extends ViewBase<'workspaces', WorkspacesViewNode, WorkspacesViewConfig> {
export class WorkspacesView extends ViewBase<'workspaces', WorkspacesViewNode, RepositoriesViewConfig> {
protected readonly configKey = 'repositories';
private _disposable: Disposable;

Loading…
Cancel
Save