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