diff --git a/src/vs/workbench/api/common/extHostCommands.ts b/src/vs/workbench/api/common/extHostCommands.ts index 7b883742cf026..586056f01a359 100644 --- a/src/vs/workbench/api/common/extHostCommands.ts +++ b/src/vs/workbench/api/common/extHostCommands.ts @@ -31,6 +31,7 @@ import { StopWatch } from 'vs/base/common/stopwatch'; import { ExtensionIdentifier, IExtensionDescription } from 'vs/platform/extensions/common/extensions'; import { TelemetryTrustedValue } from 'vs/platform/telemetry/common/telemetryUtils'; import { IExtHostTelemetry } from 'vs/workbench/api/common/extHostTelemetry'; +import { generateUuid } from 'vs/base/common/uuid'; interface CommandHandler { callback: Function; @@ -342,7 +343,7 @@ export const IExtHostCommands = createDecorator('IExtHostComma export class CommandsConverter implements extHostTypeConverter.Command.ICommandsConverter { - readonly delegatingCommandId: string = `__vsc${Date.now().toString(36)} `; + readonly delegatingCommandId: string = `__vsc${generateUuid()}`; private readonly _cache = new Map(); private _cachIdPool = 0;