Skip to content

Commit 0d7eb93

Browse files
authored
Merge pull request #182 from henrymercer/tweak-view-results-message
Use quoted query name in view results message
2 parents 1577dfd + cf118ce commit 0d7eb93

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

extensions/ql-vscode/src/interface.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,8 @@ export class InterfaceManager extends DisposableObject {
236236
// user's workflow by immediately revealing the panel.
237237
const showButton = 'View Results';
238238
const queryName = helpers.getQueryName(info);
239-
let queryNameForMessage: string;
240-
if (queryName.length > 0) {
241-
// lower case the first character
242-
queryNameForMessage = queryName.charAt(0).toLowerCase() + queryName.substring(1);
243-
} else {
244-
queryNameForMessage = 'query';
245-
}
246239
const resultPromise = vscode.window.showInformationMessage(
247-
`Finished running ${queryNameForMessage}.`,
240+
`Finished running query ${(queryName.length > 0) ? ` “${queryName}”` : ''}.`,
248241
showButton
249242
);
250243
// Address this click asynchronously so we still update the

0 commit comments

Comments
 (0)