Rename recordScenario to startRecording

This commit is contained in:
Koen Vlaswinkel
2022-10-21 10:41:38 +02:00
parent 9278422406
commit 463633334c
2 changed files with 2 additions and 2 deletions

View File

@@ -1196,7 +1196,7 @@ async function activateWithInstalledDistribution(
ctx.subscriptions.push(
commandRunner(
'codeQLMockGitHubApiServer.startRecording',
async () => await mockServer.recordScenario(),
async () => await mockServer.startRecording(),
)
);
ctx.subscriptions.push(

View File

@@ -49,7 +49,7 @@ export class MockGitHubApiServer extends DisposableObject {
// TODO: Implement logic to list all available scenarios.
}
public async recordScenario(): Promise<void> {
public async startRecording(): Promise<void> {
if (this.recorder.isRecording) {
void window.showErrorMessage('A scenario is already being recorded. Use the "Save Scenario" or "Cancel Scenario" commands to finish recording.');
return;