Commit Graph
20 Commits
Author SHA1 Message Date
meganrogge 6b8d169dc1 set tab focus when editable widget focused 2024-03-26 12:46:32 -07:00
Matt BiernerandGitHub 81d996c90e Fix vuln logging in code blocks (#208716) 2024-03-25 15:55:20 -07:00
Matt BiernerandGitHub 050dbc12c3 Centralize updates to chat code block text models (#208130)
* Centralize updates to chat code block text models

There currently is a race when updating code block models. This can cause weird flashes during progressive rendering

With this fix, I've removed code in `chatListRenderer` that was updating the model. Now the `codeBlockModelCollection`/`chatViewModel` updates the text model and also computes vulns

* Update snapshots
2024-03-19 14:54:08 -07:00
Rob LourensandGitHub f6c192f16e Fix #207432 (#207515)
* Fix #207450

* Fix #207432

* Fix #207442
Fix #207434
2024-03-12 23:58:59 +01:00
meganrogge 1de50c8f6f allow code block to be editable 2024-03-08 13:11:18 -08:00
meganrogge 5f511caaaf reorder 2024-03-04 15:05:26 -08:00
meganrogge 7c9b582529 get all actions to work 2024-03-04 15:02:30 -08:00
Matt BiernerandGitHub de7da9f4af Improve creation of text models for chat code blocks (#205943)
* Improve creation of text models for chat code blocks

Refactors the chat code block logic to better support cross code blocks IntelliSense. Previously we only created text models for the visible editors in chat. With this new approach, we instead create a unique text model for each code block in the conversation. This allows us our IntelliSense features to work even if a code block is not visible in chat

Also uses this as a change to remove some duplicate I introduced to support local file editors in chat

Still a draft as the text model creation should be moved out of the chat list renderer

* Move model updating logic into view model

* Small cleanup
2024-02-26 20:29:37 +01:00
Henning DieterichsandGitHub 0bd70d48ad code editor move (#206074) 2024-02-23 14:35:45 +01:00
Matt BiernerandGitHub 4217d852ae Make chat code blocks non-simple (#204780)
This enables some features we don't want but we want to test it in insiders to see the impact
2024-02-08 15:11:30 -08:00
Matt BiernerandGitHub bc056d2978 Enable go to definition in chat code blocks (#204555)
* Enable go to definition in chat code blocks

Hooks up code blocks to the `ITextModelService` so that link decorations work as well

* Register ref
2024-02-07 10:03:28 -08:00
Matt BiernerandGitHub 95386afadd Expose chat code blocks as documents (#204551)
Exposes code blocks as documents. Also:

- Enables hovers in code blocks
- Makes sure hover widgets are cleared when chat is cleared or scrolled
2024-02-06 18:29:47 -08:00
Matt BiernerandGitHub 01a9560863 Revert model uri change (#204541)
Only testing, not ready yet
2024-02-06 15:22:15 -08:00
Matt BiernerandGitHub ea16ecb7ac Fix code block sizing (#204536)
Missed this in previous PR
2024-02-06 21:09:45 +01:00
Matt BiernerandGitHub 5700e15f44 Prototype local file editors in chat (#202754)
Adds support for rendering local file editors in chat

These editors have full editor support and are loaded from the workspace instead of having their content provided in chat

These editors can be created with a special markdown code block like:

~~~md
```vscode-local-file
{
     "uri": uri_json,
     "range": optional_range_data
}
```
2024-02-06 20:42:50 +01:00
Rob LourensandGitHub dd2a645bcf Show detected vulnerabilities in chat codeblocks (#198595)
* Add vulnerability annotations for chat

* Make vulnerabilities label a Button

* Update test snapshots
2023-11-20 09:50:15 -08:00
Rob Lourens 894fdee64d Mark chat codeblock textmodel as 'simple'
Fix microsoft/vscode-copilot#2719
2023-11-09 13:16:33 -06:00
Daniel Imms 66306d0c56 Force chat block toolbar visibility on ctx menu change
Fixes #196109
2023-10-20 11:49:29 -07:00
Daniel Imms 31a49e1e19 Show chat run in terminal as primary for shell langs
Fixes #196106
2023-10-20 11:31:19 -07:00
Martin AeschlimannandGitHub 9f46428a17 Support code block part in inline chat (#195725)
* extract CodeBlockPart

* separate css

* layout updating

* Use code block actions in inline chat

* improve css

* polish

* fix test mocks
2023-10-16 15:55:18 -07:00