mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Inline chat UI overhaul (#215927)
* don't dimiss inline chat content widget when already having typed something https://github.com/microsoft/vscode-copilot/issues/6067 * extract `TextOnlyMenuEntryActionViewItem` for reuse * remove unused variables * * show chat input below request/response pairs * setting for text-only buttons * more dynamic buttons * always show the first request, don't repopulate input with last message * keep progress bar hidden, rely on "Generating..." * no more special background color * add `minimal` renderer style for chat renderings * tweak font-size for details when render mode is minimal * stable scroll position for inline chat, don't push down the lines chat is editing but push the inline chat upwards * more buttons more compact, tweak labels * * add missing service dependency * repopulate input for some unit test * allow output from `InteractiveChatController` suite
This commit is contained in:
@@ -203,13 +203,17 @@ async function loadTests(opts) {
|
||||
'throw ListenerLeakError'
|
||||
]);
|
||||
|
||||
const _allowedSuitesWithOutput = new Set([
|
||||
'InteractiveChatController'
|
||||
]);
|
||||
|
||||
let _testsWithUnexpectedOutput = false;
|
||||
|
||||
for (const consoleFn of [console.log, console.error, console.info, console.warn, console.trace, console.debug]) {
|
||||
console[consoleFn.name] = function (msg) {
|
||||
if (!currentTest) {
|
||||
consoleFn.apply(console, arguments);
|
||||
} else if (!_allowedTestOutput.some(a => a.test(msg)) && !_allowedTestsWithOutput.has(currentTest.title)) {
|
||||
} else if (!_allowedTestOutput.some(a => a.test(msg)) && !_allowedTestsWithOutput.has(currentTest.title) && !_allowedSuitesWithOutput.has(currentTest.parent?.title)) {
|
||||
_testsWithUnexpectedOutput = true;
|
||||
consoleFn.apply(console, arguments);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user