Fixes compatibility with pre-1.104 versions where the source property
may be undefined for deserialized tool invocations. Uses optional chaining
when accessing the source property to prevent errors.
- Make source property optional in IChatToolInvocationSerialized interface
- Use optional chaining operator when checking source.type in chat renderer
- Add comment explaining the pre-1.104 compatibility requirement
Ref https://github.com/microsoft/vscode/issues/288489
(Commit message generated by Copilot)
- Remove context menu for open in editor since there's a button now
- Faster pinch zoom
- Only pan when holding alt/option
- Fix transparent button on hover
When the input has content, the widget now stays visible and clamps to viewport edges (respecting sticky scroll height) instead of hiding when the anchor line scrolls out of view.
Fixes https://github.com/microsoft/vscode/issues/291075
* Fix issue with runSubagent result text
It was collecting text between tool calls when it should only collect the text after the final tool calls.
And edits in subagents left behind an empty codeblock in the result text.
* Delete comment
* chat: use ConnectionObserverElement to track template mount state
Replaces the hacky 'renderedPartsMounted' boolean with a custom element
that leverages the native connectedCallback and disconnectedCallback
lifecycle hooks to track whether parts are mounted in the DOM.
- Adds ConnectionObserverElement custom element (connection-observer) that
fires onDidConnect and onDidDisconnect callbacks
- Updates IChatListItemTemplate to use connectionObserver element instead
of renderedPartsMounted boolean
- Removes manual mount state management in disposeElement since the
element's disconnectedCallback handles it automatically
- Uses native element.isConnected property to check mount state
Fixes https://github.com/microsoft/vscode/issues/290903
(Commit message generated by Copilot)
* pr comments
Users disliked that the inline chat affordance (sparkle icon) would
only show once per selection and require changing the selection to
see it again. This change removes the suppressAffordance mechanism
so the affordance remains visible as long as there is a valid text
selection.
Fixes#291036
Guard old sessions from Insiders that may have Pending or NeedsInput states,
converting them to Complete state for consistency. This ensures proper handling
of sessions migrated from pre-PR #288161 versions.
- Added check to convert Pending/NeedsInput states to Complete state
- Preserves backward compatibility with old session data
- Prevents state display issues in migrated sessions
(Commit message generated by Copilot)