Skip to content

Commit 8c55e3e

Browse files
committed
Simplify argument passing
1 parent 039343e commit 8c55e3e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

extensions/ql-vscode/src/interface.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ export class InterfaceManager extends DisposableObject {
207207
}
208208

209209
private async changeRawSortState(
210-
server: cli.CodeQLCliServer,
211210
resultSetName: string,
212211
sortState: RawResultsSortState | undefined
213212
): Promise<void> {
@@ -220,7 +219,7 @@ export class InterfaceManager extends DisposableObject {
220219
// Notify the webview that it should expect new results.
221220
await this.postMessage({ t: 'resultsUpdating' });
222221
await this._displayedQuery.updateSortState(
223-
server,
222+
this.cliServer,
224223
resultSetName,
225224
sortState
226225
);
@@ -261,7 +260,7 @@ export class InterfaceManager extends DisposableObject {
261260
this._panelLoadedCallBacks = [];
262261
break;
263262
case 'changeSort':
264-
await this.changeRawSortState(this.cliServer, msg.resultSetName, msg.sortState);
263+
await this.changeRawSortState(msg.resultSetName, msg.sortState);
265264
break;
266265
case 'changeInterpretedSort':
267266
await this.changeInterpretedSortState(msg.sortState);

0 commit comments

Comments
 (0)