File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
extensions/ql-vscode/src/mocks Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ export class MockGitHubApiServer extends DisposableObject {
5656 }
5757
5858 this . recorder . start ( ) ;
59+ // Set a value in the context to track whether we are recording. This allows us to use this to show/hide commands (see package.json)
5960 await commands . executeCommand ( 'setContext' , 'codeQLMockGitHubApiServer.recording' , true ) ;
6061
6162 await window . showInformationMessage ( 'Recording scenario. To save the scenario, use the "CodeQL Mock GitHub API Server: Save Scenario" command.' ) ;
@@ -67,6 +68,7 @@ export class MockGitHubApiServer extends DisposableObject {
6768 return ;
6869 }
6970
71+ // Set a value in the context to track whether we are recording. This allows us to use this to show/hide commands (see package.json)
7072 await commands . executeCommand ( 'setContext' , 'codeQLMockGitHubApiServer.recording' , false ) ;
7173
7274 if ( ! this . recorder . isRecording ) {
@@ -112,6 +114,7 @@ export class MockGitHubApiServer extends DisposableObject {
112114 }
113115
114116 private async stopRecording ( ) : Promise < void > {
117+ // Set a value in the context to track whether we are recording. This allows us to use this to show/hide commands (see package.json)
115118 await commands . executeCommand ( 'setContext' , 'codeQLMockGitHubApiServer.recording' , false ) ;
116119
117120 await this . recorder . stop ( ) ;
You can’t perform that action at this time.
0 commit comments