From da450a614d4c26f229a4399a7aa983f023adcf14 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 14 Jun 2017 00:12:06 -0400 Subject: [PATCH] Renames explorerNodes --- src/commands/common.ts | 2 +- src/views/explorerNodes.ts | 9 +++++++++ src/views/gitExplorer.ts | 4 ++-- src/views/gitExplorerNodes.ts | 9 --------- src/views/stashExplorer.ts | 5 +++-- 5 files changed, 15 insertions(+), 14 deletions(-) create mode 100644 src/views/explorerNodes.ts delete mode 100644 src/views/gitExplorerNodes.ts diff --git a/src/commands/common.ts b/src/commands/common.ts index 391ce6d..0781185 100644 --- a/src/commands/common.ts +++ b/src/commands/common.ts @@ -1,6 +1,6 @@ 'use strict'; import { commands, Disposable, SourceControlResourceGroup, SourceControlResourceState, TextDocumentShowOptions, TextEditor, TextEditorEdit, Uri, window, workspace } from 'vscode'; -import { ExplorerNode } from '../views/gitExplorerNodes'; +import { ExplorerNode } from '../views/explorerNodes'; import { Logger } from '../logger'; import { Telemetry } from '../telemetry'; diff --git a/src/views/explorerNodes.ts b/src/views/explorerNodes.ts new file mode 100644 index 0000000..49a3806 --- /dev/null +++ b/src/views/explorerNodes.ts @@ -0,0 +1,9 @@ +'use strict'; + +export * from './explorerNode'; +export * from './commitFileNode'; +export * from './commitNode'; +export * from './fileHistoryNode'; +export * from './repositoryNode'; +export * from './stashCommitNode'; +export * from './stashNode'; \ No newline at end of file diff --git a/src/views/gitExplorer.ts b/src/views/gitExplorer.ts index fbd0220..a58afb2 100644 --- a/src/views/gitExplorer.ts +++ b/src/views/gitExplorer.ts @@ -1,10 +1,10 @@ 'use strict'; import { Event, EventEmitter, ExtensionContext, TreeDataProvider, TreeItem, Uri, window } from 'vscode'; import { UriComparer } from '../comparers'; -import { ExplorerNode, FileHistoryNode, RepositoryNode, ResourceType, StashNode } from './gitExplorerNodes'; +import { ExplorerNode, FileHistoryNode, RepositoryNode, ResourceType, StashNode } from './explorerNodes'; import { GitService, GitUri } from '../gitService'; -export * from './gitExplorerNodes'; +export * from './explorerNodes'; export class GitExplorer implements TreeDataProvider { diff --git a/src/views/gitExplorerNodes.ts b/src/views/gitExplorerNodes.ts deleted file mode 100644 index 49a3806..0000000 --- a/src/views/gitExplorerNodes.ts +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -export * from './explorerNode'; -export * from './commitFileNode'; -export * from './commitNode'; -export * from './fileHistoryNode'; -export * from './repositoryNode'; -export * from './stashCommitNode'; -export * from './stashNode'; \ No newline at end of file diff --git a/src/views/stashExplorer.ts b/src/views/stashExplorer.ts index 16ec027..e599f8d 100644 --- a/src/views/stashExplorer.ts +++ b/src/views/stashExplorer.ts @@ -1,12 +1,13 @@ 'use strict'; import { Event, EventEmitter, ExtensionContext, TreeDataProvider, TreeItem, Uri, window } from 'vscode'; -import { ExplorerNode, StashNode } from './gitExplorerNodes'; +import { ExplorerNode, StashNode } from './explorerNodes'; import { GitService, GitUri } from '../gitService'; import { StashCommitNode } from './stashCommitNode'; -export * from './gitExplorerNodes'; +export * from './explorerNodes'; export class StashExplorer implements TreeDataProvider { + private _node: ExplorerNode; private _onDidChangeTreeData = new EventEmitter(); public get onDidChangeTreeData(): Event {