From 0e4664bab1f5cf30b35f081d3226b9217df95109 Mon Sep 17 00:00:00 2001 From: rebornix Date: Tue, 13 Jun 2017 19:22:43 -0700 Subject: [PATCH] Rename Stash Explorer --- src/commands/showStashList.ts | 4 ++-- src/extension.ts | 4 ++-- src/views/{gitStashExplorer.ts => stashExplorer.ts} | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/views/{gitStashExplorer.ts => stashExplorer.ts} (95%) diff --git a/src/commands/showStashList.ts b/src/commands/showStashList.ts index 9fb3666..5567fd5 100644 --- a/src/commands/showStashList.ts +++ b/src/commands/showStashList.ts @@ -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); } diff --git a/src/extension.ts b/src/extension.ts index e82a655..1161723 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -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!)); } diff --git a/src/views/gitStashExplorer.ts b/src/views/stashExplorer.ts similarity index 95% rename from src/views/gitStashExplorer.ts rename to src/views/stashExplorer.ts index fbc68eb..16ec027 100644 --- a/src/views/gitStashExplorer.ts +++ b/src/views/stashExplorer.ts @@ -6,7 +6,7 @@ import { StashCommitNode } from './stashCommitNode'; export * from './gitExplorerNodes'; -export class GitStashExplorer implements TreeDataProvider { +export class StashExplorer implements TreeDataProvider { private _node: ExplorerNode; private _onDidChangeTreeData = new EventEmitter(); public get onDidChangeTreeData(): Event {