Skip to content

Commit c15e48b

Browse files
authored
Reenable chat test (microsoft#203706)
I think this isn't an issue with the test- every time it fails, we see "The Web Worker Extension Host did not start in 60s". The chat tests are the first tests, and so they just time out due to being affected by the slow startup. That EH timeout issue looks old. Fix microsoft#203429
1 parent 3fe7086 commit c15e48b

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

extensions/vscode-api-tests/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"enabledApiProposals": [
88
"authSession",
99
"chatAgents2",
10-
"chatVariables",
1110
"contribViewsRemote",
1211
"contribStatusBarItems",
1312
"createFileSystemWatcher",

extensions/vscode-api-tests/src/singlefolder-tests/chat.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'mocha';
88
import { CancellationToken, chat, ChatAgentRequest, ChatVariableLevel, Disposable, interactive, InteractiveSession, ProviderResult } from 'vscode';
99
import { assertNoRpc, closeAllEditors, DeferredPromise, disposeAll } from '../utils';
1010

11-
suite.skip('chat', () => {
11+
suite('chat', () => {
1212

1313
let disposables: Disposable[] = [];
1414
setup(() => {
@@ -48,9 +48,9 @@ suite.skip('chat', () => {
4848
test('agent and slash command', async () => {
4949
const deferred = getDeferredForRequest();
5050
interactive.sendInteractiveRequestToProvider('provider', { message: '@agent /hello friend' });
51-
const lastResult = await deferred.p;
52-
assert.deepStrictEqual(lastResult.slashCommand, { name: 'hello', description: 'Hello' });
53-
assert.strictEqual(lastResult.prompt, 'friend');
51+
const request = await deferred.p;
52+
assert.deepStrictEqual(request.subCommand, 'hello');
53+
assert.strictEqual(request.prompt, 'friend');
5454
});
5555

5656
test('agent and variable', async () => {
@@ -62,8 +62,8 @@ suite.skip('chat', () => {
6262

6363
const deferred = getDeferredForRequest();
6464
interactive.sendInteractiveRequestToProvider('provider', { message: '@agent hi #myVar' });
65-
const lastResult = await deferred.p;
66-
assert.strictEqual(lastResult.prompt, 'hi [#myVar](values:myVar)');
67-
assert.strictEqual(lastResult.variables['myVar'][0].value, 'myValue');
65+
const request = await deferred.p;
66+
assert.strictEqual(request.prompt, 'hi [#myVar](values:myVar)');
67+
assert.strictEqual(request.variables['myVar'][0].value, 'myValue');
6868
});
6969
});

0 commit comments

Comments
 (0)