Skip to content

Commit be9a7a3

Browse files
committed
Address review comments
- Change function name - Fix import
1 parent d49c2d7 commit be9a7a3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { env } from 'vscode';
22
import * as path from 'path';
33
import { QueryHistoryConfig } from './config';
44
import { LocalQueryInfo } from './query-results';
5-
import { getRawName, QueryHistoryInfo } from './query-history-info';
5+
import { getRawQueryName, QueryHistoryInfo } from './query-history-info';
66
import { RemoteQueryHistoryItem } from './remote-queries/remote-query-history-item';
77
import { pluralize } from './helpers';
88
import { VariantAnalysisHistoryItem } from './remote-queries/variant-analysis-history-item';
@@ -53,7 +53,7 @@ export class HistoryItemLabelProvider {
5353
getShortLabel(item: QueryHistoryInfo): string {
5454
return item.userSpecifiedLabel
5555
? this.getLabel(item)
56-
: getRawName(item);
56+
: getRawQueryName(item);
5757
}
5858

5959

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { assertNever } from './pure/helpers-pure';
55

66
export type QueryHistoryInfo = LocalQueryInfo | RemoteQueryHistoryItem | VariantAnalysisHistoryItem;
77

8-
export function getRawName(item: QueryHistoryInfo): string {
8+
export function getRawQueryName(item: QueryHistoryInfo): string {
99
switch (item.t) {
1010
case 'local':
1111
return item.getQueryName();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { DisposableObject } from './pure/disposable-object';
3030
import { commandRunner } from './commandRunner';
3131
import { ONE_HOUR_IN_MS, TWO_HOURS_IN_MS } from './pure/time';
3232
import { assertNever, getErrorMessage, getErrorStack } from './pure/helpers-pure';
33-
import { CompletedLocalQueryInfo, LocalQueryInfo as LocalQueryInfo } from './query-results';
33+
import { CompletedLocalQueryInfo, LocalQueryInfo } from './query-results';
3434
import { QueryHistoryInfo } from './query-history-info';
3535
import { DatabaseManager } from './databases';
3636
import { registerQueryHistoryScrubber } from './query-history-scrubber';

0 commit comments

Comments
 (0)