瀏覽代碼

Aligns protocol/event naming

main
Eric Amodio 2 年之前
父節點
當前提交
95c7f84e55
共有 2 個檔案被更改,包括 7 行新增7 行删除
  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 查看文件

@ -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 查看文件

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

Loading…
取消
儲存