@@ -9,10 +9,8 @@ import { localize2 } from '../../../../nls.js';
99import { INativeEnvironmentService } from '../../../../platform/environment/common/environment.js' ;
1010import { IRemoteAuthorityResolverService } from '../../../../platform/remote/common/remoteAuthorityResolver.js' ;
1111import { registerTerminalAction } from '../browser/terminalActions.js' ;
12- import { TerminalCommandId , ITerminalProfileResolverService } from '../common/terminal.js' ;
13- import { ITerminalLogService } from '../../../../platform/terminal/common/terminal.js' ;
12+ import { TerminalCommandId } from '../common/terminal.js' ;
1413import { IHistoryService } from '../../../services/history/common/history.js' ;
15- import { OS } from '../../../../base/common/platform.js' ;
1614
1715export function registerRemoteContributions ( ) {
1816 registerTerminalAction ( {
@@ -22,9 +20,6 @@ export function registerRemoteContributions() {
2220 const historyService = accessor . get ( IHistoryService ) ;
2321 const remoteAuthorityResolverService = accessor . get ( IRemoteAuthorityResolverService ) ;
2422 const nativeEnvironmentService = accessor . get ( INativeEnvironmentService ) ;
25- const terminalProfileResolverService = accessor . get ( ITerminalProfileResolverService ) ;
26- const terminalLogService = accessor . get ( ITerminalLogService ) ;
27-
2823 let cwd : URI | undefined ;
2924 try {
3025 const activeWorkspaceRootUri = historyService . getLastActiveWorkspaceRoot ( Schemas . vscodeRemote ) ;
@@ -38,23 +33,7 @@ export function registerRemoteContributions() {
3833 if ( ! cwd ) {
3934 cwd = nativeEnvironmentService . userHome ;
4035 }
41-
42- // Make sure to explicitly get the local default profile
43- const localProfile = await terminalProfileResolverService . getDefaultProfile ( {
44- remoteAuthority : undefined ,
45- os : OS
46- } ) ;
47- terminalLogService . trace ( 'terminalRemote#newLocal resolved profile' , {
48- os : OS ,
49- profileName : localProfile ?. profileName ,
50- isAutoDetected : localProfile ?. isAutoDetected ?? false
51- } ) ;
52-
53- // Create terminal with explicit local profile configuration
54- const instance = await c . service . createTerminal ( {
55- cwd,
56- config : localProfile
57- } ) ;
36+ const instance = await c . service . createTerminal ( { cwd } ) ;
5837 if ( ! instance ) {
5938 return Promise . resolve ( undefined ) ;
6039 }
0 commit comments