diff --git a/src/gitHubCopilotForAzure.ts b/src/gitHubCopilotForAzure.ts index aad55a00..68205e17 100644 --- a/src/gitHubCopilotForAzure.ts +++ b/src/gitHubCopilotForAzure.ts @@ -5,7 +5,7 @@ import { callWithTelemetryAndErrorHandling, IActionContext, openUrl } from "@microsoft/vscode-azext-utils"; import { commands, Extension, ExtensionContext, extensions, window } from "vscode"; -import { delay } from "./cloudConsole/cloudConsoleUtils"; +import { delay } from "./utils/delay"; import { localize } from "./utils/localize"; const ghcpExtensionId = 'github.copilot'; diff --git a/src/utils/delay.ts b/src/utils/delay.ts new file mode 100644 index 00000000..09bbfa51 --- /dev/null +++ b/src/utils/delay.ts @@ -0,0 +1,8 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +export async function delay(delayMs: number): Promise { + await new Promise((resolve: () => void): void => { setTimeout(resolve, delayMs); }); +}