File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 717717 {
718718 "command" : " codeQLQueryHistory.showEvalLog" ,
719719 "group" : " 9_qlCommands" ,
720- "when" : " viewItem == rawResultsItem || viewItem == interpretedResultsItem || viewItem == cancelledResultsItem"
720+ "when" : " codeql.supportsEvalLog && ( viewItem == rawResultsItem || viewItem == interpretedResultsItem || viewItem == cancelledResultsItem) "
721721 },
722722 {
723723 "command" : " codeQLQueryHistory.showEvalLogSummary" ,
724724 "group" : " 9_qlCommands" ,
725- "when" : " viewItem == rawResultsItem || viewItem == interpretedResultsItem || viewItem == cancelledResultsItem"
725+ "when" : " codeql.supportsEvalLog && ( viewItem == rawResultsItem || viewItem == interpretedResultsItem || viewItem == cancelledResultsItem) "
726726 },
727727 {
728728 "command" : " codeQLQueryHistory.showQueryText" ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { Readable } from 'stream';
88import { StringDecoder } from 'string_decoder' ;
99import * as tk from 'tree-kill' ;
1010import { promisify } from 'util' ;
11- import { CancellationToken , Disposable , Uri } from 'vscode' ;
11+ import { CancellationToken , commands , Disposable , Uri } from 'vscode' ;
1212
1313import { BQRSInfo , DecodedBqrsChunk } from './pure/bqrs-cli-types' ;
1414import { CliConfig } from './config' ;
@@ -957,6 +957,10 @@ export class CodeQLCliServer implements Disposable {
957957 public async getVersion ( ) {
958958 if ( ! this . _version ) {
959959 this . _version = await this . refreshVersion ( ) ;
960+ // this._version is only undefined upon config change, so we reset CLI-based context key only when necessary.
961+ await commands . executeCommand (
962+ 'setContext' , 'codeql.supportsEvalLog' , await this . cliConstraints . supportsPerQueryEvalLog ( )
963+ ) ;
960964 }
961965 return this . _version ;
962966 }
You can’t perform that action at this time.
0 commit comments