Skip to content

Commit 2ba3964

Browse files
committed
Remove statusString method
1 parent 48ff62f commit 2ba3964

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

extensions/ql-vscode/src/compare/compare-view.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ export class CompareView extends AbstractWebview<
125125
// only run interpolation if the label is user-defined
126126
// otherwise we will wind up with duplicated rows
127127
name: this.labelProvider.getShortLabel(from),
128-
status: from.completedQuery.statusString,
128+
status: from.completedQuery.message,
129129
time: from.startTime,
130130
},
131131
toQuery: {
132132
name: this.labelProvider.getShortLabel(to),
133-
status: to.completedQuery.statusString,
133+
status: to.completedQuery.message,
134134
time: to.startTime,
135135
},
136136
},

extensions/ql-vscode/src/query-history/history-item-label-provider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ export class HistoryItemLabelProvider {
7777
private getLocalInterpolateReplacements(
7878
item: LocalQueryInfo,
7979
): InterpolateReplacements {
80-
const { resultCount = 0, statusString = "in progress" } =
80+
const { resultCount = 0, message = "in progress" } =
8181
item.completedQuery || {};
8282
return {
8383
t: item.startTime,
8484
q: item.getQueryName(),
8585
d: item.databaseName,
8686
r: `(${resultCount} results)`,
87-
s: statusString,
87+
s: message,
8888
f: item.getQueryFileName(),
8989
l: this.getLanguageLabel(item),
9090
"%": "%",

extensions/ql-vscode/src/query-history/query-history-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ export class QueryHistoryManager extends DisposableObject {
10581058
.map((item) => ({
10591059
label: this.labelProvider.getLabel(item),
10601060
description: item.databaseName,
1061-
detail: item.completedQuery.statusString,
1061+
detail: item.completedQuery.message,
10621062
query: item,
10631063
}));
10641064
if (comparableQueryLabels.length < 1) {

extensions/ql-vscode/src/query-results.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ export class CompletedQueryInfo implements QueryWithResults {
7575
this.resultCount = value;
7676
}
7777

78-
get statusString(): string {
79-
return this.message;
80-
}
81-
8278
getResultsPath(selectedTable: string, useSorted = true): string {
8379
if (!useSorted) {
8480
return this.query.resultsPaths.resultsPath;

0 commit comments

Comments
 (0)