mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Improves editor title
This commit is contained in:
parent
4328415767
commit
9e69692508
|
@ -3653,12 +3653,12 @@ export class CommandCenter {
|
|||
|
||||
@command('git.viewChanges', { repository: true })
|
||||
viewChanges(repository: Repository): void {
|
||||
this._viewChanges('Changes', repository.workingTreeGroup.resourceStates);
|
||||
this._viewChanges('Git: Changes', repository.workingTreeGroup.resourceStates);
|
||||
}
|
||||
|
||||
@command('git.viewStagedChanges', { repository: true })
|
||||
viewStagedChanges(repository: Repository): void {
|
||||
this._viewChanges('Staged Changes', repository.indexGroup.resourceStates);
|
||||
this._viewChanges('Git: Staged Changes', repository.indexGroup.resourceStates);
|
||||
}
|
||||
|
||||
private _viewChanges(title: string, resources: Resource[]): void {
|
||||
|
|
|
@ -36,7 +36,7 @@ export class MultiDiffEditorInput extends EditorInput implements ILanguageSuppor
|
|||
}
|
||||
|
||||
override getName(): string {
|
||||
return this.label ?? localize('name', "Multi Diff Editor");
|
||||
return (this.label ?? localize('name', "Multi Diff Editor")) + ` (${this.resources.length} files)`;
|
||||
}
|
||||
|
||||
override get editorId(): string {
|
||||
|
|
Loading…
Reference in a new issue