Selaa lähdekoodia

Aligns protocol/event naming

main
Eric Amodio 2 vuotta sitten
vanhempi
commit
95c7f84e55
2 muutettua tiedostoa jossa 7 lisäystä ja 7 poistoa
  1. +4
    -4
      src/plus/webviews/graph/graphWebview.ts
  2. +3
    -3
      src/plus/webviews/graph/protocol.ts

+ 4
- 4
src/plus/webviews/graph/graphWebview.ts Näytä tiedosto

@ -361,10 +361,10 @@ export class GraphWebview extends WebviewBase {
onIpc(SearchOpenInViewCommandType, e, params => this.onSearchOpenInView(params));
break;
case UpdateColumnCommandType.method:
onIpc(UpdateColumnCommandType, e, params => this.onColumnUpdated(params));
onIpc(UpdateColumnCommandType, e, params => this.onColumnChanged(params));
break;
case UpdateSelectedRepositoryCommandType.method:
onIpc(UpdateSelectedRepositoryCommandType, e, params => this.onRepositorySelectionChanged(params));
onIpc(UpdateSelectedRepositoryCommandType, e, params => this.onSelectedRepositoryChanged(params));
break;
case UpdateSelectionCommandType.method:
onIpc(UpdateSelectionCommandType, e, this.onSelectionChanged.bind(this));
@ -487,7 +487,7 @@ export class GraphWebview extends WebviewBase {
void this.container.storage.storeWorkspace('graph:banners:dismissed', banners);
}
private onColumnUpdated(e: UpdateColumnParams) {
private onColumnChanged(e: UpdateColumnParams) {
this.updateColumn(e.name, e.config);
}
@ -674,7 +674,7 @@ export class GraphWebview extends WebviewBase {
});
}
private onRepositorySelectionChanged(e: UpdateSelectedRepositoryParams) {
private onSelectedRepositoryChanged(e: UpdateSelectedRepositoryParams) {
this.repository = this.container.git.getRepository(e.path);
}

+ 3
- 3
src/plus/webviews/graph/protocol.ts Näytä tiedosto

@ -138,19 +138,19 @@ export interface UpdateColumnParams {
name: GraphColumnName;
config: GraphColumnConfig;
}
export const UpdateColumnCommandType = new IpcCommandType<UpdateColumnParams>('graph/update/column');
export const UpdateColumnCommandType = new IpcCommandType<UpdateColumnParams>('graph/column/update');
export interface UpdateSelectedRepositoryParams {
path: string;
}
export const UpdateSelectedRepositoryCommandType = new IpcCommandType<UpdateSelectedRepositoryParams>(
'graph/update/repositorySelection',
'graph/selectedRepository/update',
);
export interface UpdateSelectionParams {
selection: { id: string; type: GitGraphRowType }[];
}
export const UpdateSelectionCommandType = new IpcCommandType<UpdateSelectionParams>('graph/update/selection');
export const UpdateSelectionCommandType = new IpcCommandType<UpdateSelectionParams>('graph/selection/update');
// Notifications
export interface DidChangeParams {

Ladataan…
Peruuta
Tallenna