mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 07:47:23 +01:00
fix build
This commit is contained in:
@@ -319,7 +319,7 @@ impl AgentHostManager {
|
||||
e = child.wait() => {
|
||||
info!(self.log, "[{} process]: exited: {:?}", commit_prefix, e);
|
||||
if let Some(o) = opener.take() {
|
||||
o.open(Err(format!("Server exited before ready: {:?}", e)));
|
||||
o.open(Err(format!("Server exited before ready: {e:?}")));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
|
||||
import { InstantiationType, registerSingleton } from '../../instantiation/common/extensions.js';
|
||||
import { IRemoteAgentHostService } from '../common/remoteAgentHostService.js';
|
||||
import { RemoteAgentHostService } from '../node/remoteAgentHostService.js';
|
||||
import { RemoteAgentHostService } from './remoteAgentHostServiceImpl.js';
|
||||
|
||||
registerSingleton(IRemoteAgentHostService, RemoteAgentHostService, InstantiationType.Delayed);
|
||||
|
||||
@@ -15,6 +15,7 @@ import { SessionStatus } from '../../common/state/sessionState.js';
|
||||
import { AgentSideEffects } from '../../node/agentSideEffects.js';
|
||||
import { SessionStateManager } from '../../node/sessionStateManager.js';
|
||||
import { MockAgent } from './mockAgent.js';
|
||||
import { cwd } from '../../../../base/common/process.js';
|
||||
|
||||
// ---- Tests ------------------------------------------------------------------
|
||||
|
||||
@@ -283,7 +284,7 @@ suite('AgentSideEffects', () => {
|
||||
|
||||
test('throws when the target is not a directory', async () => {
|
||||
await assert.rejects(
|
||||
() => sideEffects.handleBrowseDirectory(URI.file('/Users/roblou/code/vscode/package.json')),
|
||||
() => sideEffects.handleBrowseDirectory(URI.file(cwd() + '/package.json')),
|
||||
/Not a directory/,
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user