File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 736736 {
737737 "command" : " codeQLQueryHistory.showEvalLog" ,
738738 "group" : " 9_qlCommands" ,
739- "when" : " viewItem == rawResultsItem || viewItem == interpretedResultsItem || viewItem == cancelledResultsItem"
739+ "when" : " codeql.supportsEvalLog && ( viewItem == rawResultsItem || viewItem == interpretedResultsItem || viewItem == cancelledResultsItem) "
740740 },
741741 {
742742 "command" : " codeQLQueryHistory.showEvalLogSummary" ,
743743 "group" : " 9_qlCommands" ,
744- "when" : " viewItem == rawResultsItem || viewItem == interpretedResultsItem || viewItem == cancelledResultsItem"
744+ "when" : " codeql.supportsEvalLog && ( viewItem == rawResultsItem || viewItem == interpretedResultsItem || viewItem == cancelledResultsItem) "
745745 },
746746 {
747747 "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