Add editedFileEvents (#246996)

* Start plumbing working set events

* more

* More fixes

* Update tests
This commit is contained in:
Rob Lourens
2025-04-20 09:54:07 -07:00
committed by GitHub
parent 676fadad06
commit 714f54156f
16 changed files with 194 additions and 35 deletions

View File

@@ -5,7 +5,7 @@
import * as assert from 'assert';
import 'mocha';
import { ChatContext, ChatRequest, ChatResult, Disposable, Event, EventEmitter, chat, commands, lm } from 'vscode';
import { ChatContext, ChatRequest, ChatRequestTurn, ChatRequestTurn2, ChatResult, Disposable, Event, EventEmitter, chat, commands, lm } from 'vscode';
import { DeferredPromise, asPromise, assertNoRpc, closeAllEditors, delay, disposeAll } from '../utils';
suite('chat', () => {
@@ -71,6 +71,7 @@ suite('chat', () => {
assert.strictEqual(request.context.history.length, 2);
assert.strictEqual(request.context.history[0].participant, 'api-test.participant');
assert.strictEqual(request.context.history[0].command, 'hello');
assert.ok(request.context.history[0] instanceof ChatRequestTurn && request.context.history[0] instanceof ChatRequestTurn2);
deferred.complete();
}
} catch (e) {