File tree Expand file tree Collapse file tree 2 files changed +6
-19
lines changed
extensions/ql-vscode/src/model-editor Expand file tree Collapse file tree 2 files changed +6
-19
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export class ModelAlertsView extends AbstractWebview<
5858
5959 await this . waitForPanelLoaded ( ) ;
6060 await this . setViewState ( ) ;
61- await this . updateReposResults ( reposResults ) ;
61+ await this . setReposResults ( reposResults ) ;
6262 }
6363
6464 protected async getPanelConfig ( ) : Promise < WebviewPanelConfig > {
@@ -121,7 +121,7 @@ export class ModelAlertsView extends AbstractWebview<
121121 } ) ;
122122 }
123123
124- public async updateVariantAnalysis (
124+ public async setVariantAnalysis (
125125 variantAnalysis : VariantAnalysis ,
126126 ) : Promise < void > {
127127 if ( ! this . isShowingPanel ) {
@@ -134,20 +134,7 @@ export class ModelAlertsView extends AbstractWebview<
134134 } ) ;
135135 }
136136
137- public async updateRepoResults (
138- repositoryResult : VariantAnalysisScannedRepositoryResult ,
139- ) : Promise < void > {
140- if ( ! this . isShowingPanel ) {
141- return ;
142- }
143-
144- await this . postMessage ( {
145- t : "setRepoResults" ,
146- repoResults : [ repositoryResult ] ,
147- } ) ;
148- }
149-
150- public async updateReposResults (
137+ public async setReposResults (
151138 repoResults : VariantAnalysisScannedRepositoryResult [ ] ,
152139 ) : Promise < void > {
153140 if ( ! this . isShowingPanel ) {
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ export class ModelEvaluator extends DisposableObject {
155155 ) ;
156156 await this . modelAlertsView . showView ( reposResults ) ;
157157
158- await this . modelAlertsView . updateVariantAnalysis ( variantAnalysis ) ;
158+ await this . modelAlertsView . setVariantAnalysis ( variantAnalysis ) ;
159159 }
160160 }
161161
@@ -271,7 +271,7 @@ export class ModelEvaluator extends DisposableObject {
271271 } ) ;
272272
273273 // Update model alerts view
274- await this . modelAlertsView ?. updateVariantAnalysis ( variantAnalysis ) ;
274+ await this . modelAlertsView ?. setVariantAnalysis ( variantAnalysis ) ;
275275 }
276276 } ,
277277 ) ,
@@ -295,7 +295,7 @@ export class ModelEvaluator extends DisposableObject {
295295 this . push (
296296 this . variantAnalysisManager . onRepoResultsLoaded ( async ( e ) => {
297297 if ( e . variantAnalysisId === variantAnalysisId ) {
298- await this . modelAlertsView ?. updateRepoResults ( e ) ;
298+ await this . modelAlertsView ?. setReposResults ( [ e ] ) ;
299299 }
300300 } ) ,
301301 ) ;
You can’t perform that action at this time.
0 commit comments