@@ -28,7 +28,7 @@ import { VSBuffer } from '../../../base/common/buffer.js';
28
28
import { SerializableObjectWithBuffers } from '../../services/extensions/common/proxyIdentifier.js' ;
29
29
import { toErrorMessage } from '../../../base/common/errorMessage.js' ;
30
30
import { StopWatch } from '../../../base/common/stopwatch.js' ;
31
- import { ExtensionIdentifier , IExtensionDescription } from '../../../platform/extensions/common/extensions.js' ;
31
+ import { IExtensionDescription } from '../../../platform/extensions/common/extensions.js' ;
32
32
import { TelemetryTrustedValue } from '../../../platform/telemetry/common/telemetryUtils.js' ;
33
33
import { IExtHostTelemetry } from './extHostTelemetry.js' ;
34
34
import { generateUuid } from '../../../base/common/uuid.js' ;
@@ -41,7 +41,7 @@ interface CommandHandler {
41
41
}
42
42
43
43
export interface ArgumentProcessor {
44
- processArgument ( arg : any , extensionId : ExtensionIdentifier | undefined ) : any ;
44
+ processArgument ( arg : any , extension : IExtensionDescription | undefined ) : any ;
45
45
}
46
46
47
47
export class ExtHostCommands implements ExtHostCommandsShape {
@@ -310,7 +310,7 @@ export class ExtHostCommands implements ExtHostCommandsShape {
310
310
if ( ! cmdHandler ) {
311
311
return Promise . reject ( new Error ( `Contributed command '${ id } ' does not exist.` ) ) ;
312
312
} else {
313
- args = args . map ( arg => this . _argumentProcessors . reduce ( ( r , p ) => p . processArgument ( r , cmdHandler . extension ?. identifier ) , arg ) ) ;
313
+ args = args . map ( arg => this . _argumentProcessors . reduce ( ( r , p ) => p . processArgument ( r , cmdHandler . extension ) , arg ) ) ;
314
314
return this . _executeContributedCommand ( id , args , true ) ;
315
315
}
316
316
}
0 commit comments