File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/vs/workbench/services/encryption/browser Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { ProxyChannel } from 'vs/base/parts/ipc/common/ipc';
7
7
import { registerSingleton } from 'vs/platform/instantiation/common/extensions' ;
8
8
import { ILogService } from 'vs/platform/log/common/log' ;
9
9
import { IEncryptionService } from 'vs/workbench/services/encryption/common/encryptionService' ;
10
- import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common /environmentService' ;
10
+ import { IBrowserWorkbenchEnvironmentService } from 'vs/workbench/services/environment/browser /environmentService' ;
11
11
import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteAgentService' ;
12
12
13
13
export class EncryptionService implements IEncryptionService {
@@ -16,11 +16,11 @@ export class EncryptionService implements IEncryptionService {
16
16
17
17
constructor (
18
18
@IRemoteAgentService remoteAgentService : IRemoteAgentService ,
19
- @IWorkbenchEnvironmentService environmentService : IWorkbenchEnvironmentService ,
19
+ @IBrowserWorkbenchEnvironmentService environmentService : IBrowserWorkbenchEnvironmentService ,
20
20
@ILogService logService : ILogService
21
21
) {
22
22
// This allows the remote side to handle any encryption requests
23
- if ( environmentService . remoteAuthority ) {
23
+ if ( environmentService . remoteAuthority && ! environmentService . options ?. credentialsProvider ) {
24
24
logService . trace ( 'EncryptionService#constructor - Detected remote environment, registering proxy for encryption instead' ) ;
25
25
return ProxyChannel . toService < IEncryptionService > ( remoteAgentService . getConnection ( ) ! . getChannel ( 'encryption' ) ) ;
26
26
}
You can’t perform that action at this time.
0 commit comments