Parcourir la source

Rename Stash Explorer

main
rebornix il y a 7 ans
committed by Eric Amodio
Parent
révision
0e4664bab1
4 fichiers modifiés avec 47 ajouts et 47 suppressions
  1. +2
    -2
      src/commands/showStashList.ts
  2. +2
    -2
      src/extension.ts
  3. +1
    -1
      src/views/stashExplorer.ts

+ 2
- 2
src/commands/showStashList.ts Voir le fichier

@ -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);
}

+ 2
- 2
src/extension.ts Voir le fichier

@ -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!));
}

src/views/gitStashExplorer.ts → src/views/stashExplorer.ts Voir le fichier

@ -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> {

Chargement…
Annuler
Enregistrer