mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-20 09:45:36 -05:00
Rename Stash Explorer
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
'use strict';
|
||||
import { TextEditor, TextEditorEdit, Uri, window } from 'vscode';
|
||||
import { Commands, EditorCommand, getCommandUri } from './common';
|
||||
import { GitStashExplorer } from '../views/gitStashExplorer';
|
||||
import { StashExplorer } from '../views/stashExplorer';
|
||||
import { GitService, GitUri } from '../gitService';
|
||||
import { Messages } from '../messages';
|
||||
import { Logger } from '../logger';
|
||||
|
||||
export class ShowStashListCommand extends EditorCommand {
|
||||
|
||||
constructor(private git: GitService, private explorer: GitStashExplorer) {
|
||||
constructor(private git: GitService, private explorer: StashExplorer) {
|
||||
super(Commands.ShowStashList);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import { ApplicationInsightsKey, CommandContext, ExtensionKey, QualifiedExtensio
|
||||
import { CurrentLineController, LineAnnotationType } from './currentLineController';
|
||||
import { GitContentProvider } from './gitContentProvider';
|
||||
import { GitExplorer } from './views/gitExplorer';
|
||||
import { GitStashExplorer } from './views/gitStashExplorer';
|
||||
import { StashExplorer } from './views/stashExplorer';
|
||||
import { GitRevisionCodeLensProvider } from './gitRevisionCodeLensProvider';
|
||||
import { GitContextTracker, GitService } from './gitService';
|
||||
import { Keyboard } from './keyboard';
|
||||
@@ -96,7 +96,7 @@ export async function activate(context: ExtensionContext) {
|
||||
}
|
||||
let stashExplorer;
|
||||
if (cfg.insiders) {
|
||||
stashExplorer = new GitStashExplorer(context, git);
|
||||
stashExplorer = new StashExplorer(context, git);
|
||||
context.subscriptions.push(window.registerTreeDataProvider('gitstash-explorer', stashExplorer));
|
||||
context.subscriptions.push(new ShowStashListCommand(git, stashExplorer!));
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import { StashCommitNode } from './stashCommitNode';
|
||||
|
||||
export * from './gitExplorerNodes';
|
||||
|
||||
export class GitStashExplorer implements TreeDataProvider<ExplorerNode> {
|
||||
export class StashExplorer implements TreeDataProvider<ExplorerNode> {
|
||||
private _node: ExplorerNode;
|
||||
private _onDidChangeTreeData = new EventEmitter<ExplorerNode>();
|
||||
public get onDidChangeTreeData(): Event<StashCommitNode> {
|
||||
Reference in New Issue
Block a user