Pārlūkot izejas kodu

Rename Stash Explorer

main
rebornix pirms 7 gadiem
revīziju iesūtīja Eric Amodio
vecāks
revīzija
0e4664bab1
4 mainītis faili ar 47 papildinājumiem un 47 dzēšanām
  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 Parādīt failu

@ -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 Parādīt failu

@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt