File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1427,8 +1427,7 @@ export class CliVersionConstraint {
14271427 }
14281428
14291429 async supportsNewQueryServer ( ) {
1430- // TODO while under development, users _must_ opt-in to the new query server
1431- // by setting the `codeql.canaryQueryServer` setting to `true`.
1430+ // This allows users to explicitly opt-out of the new query server.
14321431 return allowCanaryQueryServer ( ) &&
14331432 this . isVersionAtLeast ( CliVersionConstraint . CLI_VERSION_WITH_NEW_QUERY_SERVER ) ;
14341433 }
Original file line number Diff line number Diff line change @@ -346,9 +346,10 @@ export function isCanary() {
346346 */
347347export const CANARY_QUERY_SERVER = new Setting ( 'canaryQueryServer' , ROOT_SETTING ) ;
348348
349-
349+ // The default value for this setting is now `true`
350350export function allowCanaryQueryServer ( ) {
351- return ! ! CANARY_QUERY_SERVER . getValue < boolean > ( ) ;
351+ const value = CANARY_QUERY_SERVER . getValue < boolean > ( ) ;
352+ return value === undefined ? true : ! ! value ;
352353}
353354
354355export const JOIN_ORDER_WARNING_THRESHOLD = new Setting ( 'joinOrderWarningThreshold' , LOG_INSIGHTS_SETTING ) ;
@@ -458,7 +459,7 @@ const MOCK_GH_API_SERVER_ENABLED = new Setting('enabled', MOCK_GH_API_SERVER);
458459
459460/**
460461 * A path to a directory containing test scenarios. If this setting is not set,
461- * the mock server will a default location for test scenarios in dev mode, and
462+ * the mock server will a default location for test scenarios in dev mode, and
462463 * will show a menu to select a directory in production mode.
463464 */
464465const MOCK_GH_API_SERVER_SCENARIOS_PATH = new Setting ( 'scenariosPath' , MOCK_GH_API_SERVER ) ;
You can’t perform that action at this time.
0 commit comments