Rename recordScenario to startRecording
This commit is contained in:
@@ -1196,7 +1196,7 @@ async function activateWithInstalledDistribution(
|
||||
ctx.subscriptions.push(
|
||||
commandRunner(
|
||||
'codeQLMockGitHubApiServer.startRecording',
|
||||
async () => await mockServer.recordScenario(),
|
||||
async () => await mockServer.startRecording(),
|
||||
)
|
||||
);
|
||||
ctx.subscriptions.push(
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user