Skip to content

Commit c83dbde

Browse files
committed
Add cli version for message
1 parent e033578 commit c83dbde

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

extensions/ql-vscode/src/cli.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export class CodeQLCliServer implements Disposable {
151151
/**
152152
* CLI version where the `codeql resolve qlref` command is available.
153153
*/
154-
private static CLI_VERSION_WITH_RESOLVE_QLREF = new SemVer('2.5.1');
154+
public static CLI_VERSION_WITH_RESOLVE_QLREF = new SemVer('2.5.1');
155155

156156
/** The process for the cli server, or undefined if one doesn't exist yet */
157157
process?: child_process.ChildProcessWithoutNullStreams;
@@ -937,11 +937,11 @@ class SplitBuffer {
937937

938938
/**
939939
* A version of startsWith that isn't overriden by a broken version of ms-python.
940-
*
940+
*
941941
* The definition comes from
942942
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith
943943
* which is CC0/public domain
944-
*
944+
*
945945
* See https://github.com/github/vscode-codeql/issues/802 for more context as to why we need it.
946946
*/
947947
private static startsWith(s: string, searchString: string, position: number): boolean {

extensions/ql-vscode/src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,9 @@ async function activateWithInstalledDistribution(
492492
helpers.showAndLogErrorMessage(
493493
'Jumping from a .qlref file to the .ql file it references is not '
494494
+ 'supported with the CLI version you are running.\n'
495-
+ 'Please upgrade your CLI to use this feature.');
495+
+ `Please upgrade your CLI to version ${
496+
CodeQLCliServer.CLI_VERSION_WITH_RESOLVE_QLREF
497+
} or later to use this feature.`);
496498
}
497499
}
498500
}

0 commit comments

Comments
 (0)