Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/platform/agentHost/test/node/protocol/agentHostServer.integrationTest.ts
13405 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { PROTOCOL_VERSION } from '../../../common/state/sessionCapabilities.js';
7
import { IServerHandle, startServer, TestProtocolClient } from './testHelpers.js';
8
9
suite('Agent Host Server', function () {
10
11
let server: IServerHandle;
12
13
suiteSetup(async function () {
14
this.timeout(15_000);
15
server = await startServer({ quiet: false });
16
});
17
18
suiteTeardown(function () {
19
server.process.kill();
20
});
21
22
test('starts with production agent services registered', async function () {
23
this.timeout(10_000);
24
25
const client = new TestProtocolClient(server.port);
26
try {
27
await client.connect();
28
await client.call('initialize', { protocolVersion: PROTOCOL_VERSION, clientId: 'test-agent-host-server-services' });
29
} finally {
30
client.close();
31
}
32
});
33
});
34
35