@@ -107,7 +107,7 @@ class TestTerminalInstanceService implements Partial<ITerminalInstanceService> {
107
107
return [ ] ;
108
108
}
109
109
}
110
- } as Partial < ITerminalBackend > as any ;
110
+ } satisfies Partial < ITerminalBackend > as any ;
111
111
}
112
112
setProfiles ( remoteAuthority : string | undefined , profiles : ITerminalProfile [ ] ) {
113
113
this . _profiles . set ( remoteAuthority ?? '' , profiles ) ;
@@ -123,7 +123,7 @@ class TestRemoteAgentService implements Partial<IRemoteAgentService> {
123
123
this . _os = os ;
124
124
}
125
125
async getEnvironment ( ) : Promise < IRemoteAgentEnvironment | null > {
126
- return { os : this . _os } as IRemoteAgentEnvironment ;
126
+ return { os : this . _os } satisfies Partial < IRemoteAgentEnvironment > as any ;
127
127
}
128
128
}
129
129
@@ -167,7 +167,7 @@ suite('TerminalProfileService', () => {
167
167
remoteAgentService = new TestRemoteAgentService ( ) ;
168
168
terminalInstanceService = new TestTerminalInstanceService ( ) ;
169
169
extensionService = new TestTerminalExtensionService ( ) ;
170
- environmentService = { remoteAuthority : undefined } as IWorkbenchEnvironmentService ;
170
+ environmentService = { remoteAuthority : undefined } satisfies Partial < IWorkbenchEnvironmentService > as any ;
171
171
172
172
const themeService = new TestThemeService ( ) ;
173
173
const terminalContributionService = new TestTerminalContributionService ( ) ;
@@ -266,7 +266,7 @@ suite('TerminalProfileService', () => {
266
266
} ) ;
267
267
268
268
test ( 'should get profiles from remoteTerminalService when there is a remote authority' , async ( ) => {
269
- environmentService = { remoteAuthority : 'fakeremote' } as IWorkbenchEnvironmentService ;
269
+ environmentService = { remoteAuthority : 'fakeremote' } satisfies Partial < IWorkbenchEnvironmentService > as any ;
270
270
instantiationService . stub ( IWorkbenchEnvironmentService , environmentService ) ;
271
271
terminalProfileService = store . add ( instantiationService . createInstance ( TestTerminalProfileService ) ) ;
272
272
await terminalProfileService . hasRefreshedProfiles ;
0 commit comments