@@ -10,7 +10,6 @@ import { IStringDictionary } from 'vs/base/common/collections';
10
10
import { toErrorMessage } from 'vs/base/common/errorMessage' ;
11
11
import { getErrorMessage } from 'vs/base/common/errors' ;
12
12
import { Emitter } from 'vs/base/common/event' ;
13
- import { randomPath } from 'vs/base/common/extpath' ;
14
13
import { Disposable } from 'vs/base/common/lifecycle' ;
15
14
import { ResourceSet } from 'vs/base/common/map' ;
16
15
import { Schemas } from 'vs/base/common/network' ;
@@ -415,7 +414,6 @@ export class ExtensionsScanner extends Disposable {
415
414
@IFileService private readonly fileService : IFileService ,
416
415
@IExtensionsScannerService private readonly extensionsScannerService : IExtensionsScannerService ,
417
416
@IExtensionsProfileScannerService private readonly extensionsProfileScannerService : IExtensionsProfileScannerService ,
418
- @INativeEnvironmentService private readonly environmentService : INativeEnvironmentService ,
419
417
@ILogService private readonly logService : ILogService ,
420
418
) {
421
419
super ( ) ;
@@ -458,7 +456,7 @@ export class ExtensionsScanner extends Disposable {
458
456
459
457
async extractUserExtension ( extensionKey : ExtensionKey , zipPath : string , metadata : Metadata , token : CancellationToken ) : Promise < ILocalExtension > {
460
458
const folderName = extensionKey . toString ( ) ;
461
- const tempPath = randomPath ( this . environmentService . tmpDir . fsPath ) ;
459
+ const tempPath = path . join ( this . extensionsScannerService . userExtensionsLocation . fsPath , `. ${ generateUuid ( ) } ` ) ;
462
460
const extensionPath = path . join ( this . extensionsScannerService . userExtensionsLocation . fsPath , folderName ) ;
463
461
464
462
try {
0 commit comments