Commit Graph

128112 Commits

Author SHA1 Message Date
Ladislau Szomoru
ca3ff9f564 SCM - quick diff should better handle untracked files (#236315) 2024-12-17 09:26:30 +01:00
Megan Rogge
95386dec78 make screen reader notification more descriptive, useful (#236295) 2024-12-17 10:27:10 +09:00
Matt Bierner
9d8d1d7ea0 Merge pull request #236299 from mjbvz/sensible-manatee
Inline simple methods
2024-12-16 16:57:01 -08:00
tcostew
19c7c0190d Allow Github Copilot chat to appear in QuickAccess (#210805) 2024-12-17 00:01:11 +00:00
Matt Bierner
6be3f02482 Inline simple methods
These don't add much
2024-12-16 15:50:05 -08:00
Oleg Solomko
8264792d81 add prompt snippets support (#234220)
* [prompt snippets]: working on recursive file references

* [prompt snippets]: working on file contents codec

* [prompt snippets]: implement the `LinesCodecDecoder`

* [prompt snippets]: working on the `SimpleTokensCodecDecoder`

* [prompt snippets]: implement first version of `PromptSyntaxCodec`

* [prompt snippets]: add `Range` attributes to all the tokens

* [prompt snippets]: refactoring components to standalone files

* [prompt snippets]: move out components to separate files, working on the first unit test

* [prompt snippets]: add the first unit test for `LinesDecoder`

* [prompt snippets]: add first unit test for the `SimpleDecoder`

* [prompt snippets]: refactor `SimpleDecoder` logic

* [prompt snippets]: make `SimpleDecoder` handle `\t` characters and improve unit tests

* [prompt snippets]: add unit tests for the `ChatbotPromptCodec` codec

* [prompt snippets]: add unit test for the `ChatbotPromptReference`

* [prompt snippets]: working on enhancing prompt context

* [prompt snippets]: enahnce working set file references on submit

* [prompt snippets]: cleanup

* [prompt snippets]: implement automatic references resolution on file variable addition

* [prompt snippets]: implement prompt snippets for implicit context files

* [prompt snippets]: improve implicit context file rendering

* [prompt snippets]: remove redundant `ChatReference` class

* [prompt snippets]: `PromptReference` can now subscribe to filesystem changes, added unit test for the `assertDefined` util

* [prompt snippets]: make `LinesDecoder` to also emit `NewLine` tokens, add more unit tests for it

* [prompt snippets]: resolve nested references for dynamic variables and update variable label

* [prompt snippets]: add nested file references to implicit context of prompt request

* [prompt snippets]: variable hover label now includes nested file references

* [prompt snippets]: add the `TestDecoder` and `TestLinesDecoder` reusable test utilities

* [prompt snippets]: add unit tests for `ChatbotPromptDecoder` decoder

* [prompt snippets]: refactor decoders to eliminate static type hacks

* [prompt snippets]: improve `BaseDecoder` logic and docs

* [prompt snippets]: add unit tests for the new reduce-less logic of the stream

* [prompt snippets]: improve doc comments, finish the basic unit test for the `PromptFileReference` class

* [prompt snippets]: finish the main unit test for the `PromptFileReference` class

* [prompt snippets]: make the `PromptFileReference` class ininite-reference-recursion-proof and add approptiate tests

* [prompt snippets]: cleanup

* [prompt snippets]: ensure codecs work well with UTF16 codepoints

* [prompt snippets]: add `randomInt()` utility and related tests

* [prompt snippets]: refactor and add more unit tests

* [prompt snippets]: fix unresolved `Buffer` import reference

* [prompt snippets]: refactor `LinesDecoder` to use `VSBuffer` as underlying data source

* [prompt snippets]: make the `ImplicitContext` to create prompt file reference object only if `prompt-snippets` config value is set

* [prompt snippets]: make the `ChatDynamicVariable` to resolve prompt file reference object only if `prompt-snippets` config value is set

* [prompt snippets]: localize (+N more) labels

* [prompt snippets]: pre PR cleanups

* [prompt snippets]: minor cleanups

* [prompt snippets]: address some PR feedback, fix an unit test issue

* [prompt snippets]: move file to common layers

* [prompt snippets]: move base codec types to base/common

* [prompt snippets]: move more codec files around

* [prompt snippets]: update a code comment

* [prompt snippets]: fix `assert.throws()` API incompatibility issue

* [prompt snippets]: minor cleanup

* [prompt snippets]: improve unit tests for the `PromptFileReference`

* [prompt snippets]: skip unit tests of `PromptFileReference` on Windows for now

* [prompt snippets]: address PR feedback

* [prompt snippets]: add `PromptFileReference.isPromptSnippetFile` getter

* [prompt snippets]: move the `assertDefined` utility to `types.ts`

* use service injection in `PromptFileReference` class

* [prompt snippets]: remove formatting changes

* [prompt snippets]: remove more formatting changes

* [prompt snippets]: revert more formatting changes

* [prompt snippets]: add logic to dispose existing variables in `ChatDynamicVariableModel`

* [prompt snippets]: cleanup

* [prompt snippets]: minor cleanup

* [prompt snippets]: remove redundant disposable registrations, cleanup more formatting changes

* [prompt snippets]: improve cross-platform newline handling, add `vertical tab` and `form feed` tokens

* [prompt snippets]: minor types naming cleanup

* [prompt snippets]: make `ChatPromptCodec` to be a global singleton object and improve doc comments

* [prompt snippets]: address PR feedback

* [prompt snippets]: remove (+N more) label, ensure that `ChatFileReferences` are scoped to files only

* [prompt snippets]: revert changes for the `ImplicitContext`

* [prompt snippets]: cleanup changes in `ChatDynamicVariableModel`

* [prompt snippets]: revert changes in the `ChatRequestParser`

* [prompt snippets]: improve history navigation

* [prompt snippets]: address PR feedback

* [prompt snippets]: allow non-prompt-snippet files to be referenced, but don't parse their contents
2024-12-16 15:07:15 -08:00
Megan Rogge
d0ecdc1f55 get terminal editor's name to persist upon rename cancellation (#236281)
fix #235931
2024-12-16 23:38:14 +01:00
Megan Rogge
057dd7b933 get No suggestions to show up when triggered for terminal suggest (#236264) 2024-12-16 22:31:45 +01:00
Ladislau Szomoru
40582112ab SCM - more quick diff cleanup (#236280) 2024-12-16 21:53:25 +01:00
Sandeep Somavarapu
f1a2ce694a remove rarely used reinstall extension command (#236278) 2024-12-16 21:52:59 +01:00
Ladislau Szomoru
58399f1f68 Git - truncate the git blame information after 50 characters (#236279) 2024-12-16 21:22:49 +01:00
Daniel Imms
c82097ddab Merge pull request #236276 from microsoft/tyriar/236148
Remove workaround for swiftshader upstream issue
2024-12-16 11:52:29 -08:00
Benjamin Pasero
a09be5db23 Bug: setup hangs (fix microsoft/vscode-copilot#11361) (#236275) 2024-12-16 20:46:57 +01:00
Megan Rogge
e678c2e0c8 don't filter available commands in the extension (#236101) 2024-12-16 20:43:40 +01:00
Daniel Imms
24b8e3ce99 Remove workaround for swiftshader upstream issue
Fixes #236148
2024-12-16 11:36:39 -08:00
Ladislau Szomoru
a690eb691d Git - only show git blame information for the active text editor (#236274) 2024-12-16 20:28:00 +01:00
Sandeep Somavarapu
70409435e5 debt: remove migrations (#236239)
* debt: remove migrations

* remove migration test
2024-12-16 19:25:11 +00:00
Megan Rogge
466eb0be75 fix replacement index,length for terminal completions (#236260)
fix bugs
2024-12-16 19:24:42 +00:00
Megan Rogge
50dca635cb add rm from context aria label (#236096)
fix #236094
2024-12-16 19:02:45 +00:00
Megan Rogge
fd9ed2494b onCommandExecuted, hide suggest widget (#236261)
fix #224492
2024-12-16 10:51:24 -08:00
Martin Aeschlimann
b7f7aeaf81 std-in files (/tmp/code-stdin-*) are not removed on remote and should have user only access rights (#236251) 2024-12-16 18:33:46 +01:00
Aiday Marlen Kyzy
2008c6338c Immediately re-render sticky scroll on pressing Shift key (#236244)
immediately rerender
2024-12-16 17:23:19 +00:00
Benjamin Christopher Simmonds
7e8ac0f74f Fix titlebar update for longer extension names (#236235)
fix #171742
2024-12-16 17:59:03 +01:00
Bhavya U
a6a6e8e380 remove width and height attributes from multi-file-edits.svg (#236010) 2024-12-16 08:45:54 -08:00
Martin Aeschlimann
4fa8dfa8e1 set insertMode: replace mode for snippets (#236245) 2024-12-16 17:42:26 +01:00
Alexandru Dima
d3bd083824 Scroll in the preview editor when necessary (#236241) 2024-12-16 17:20:04 +01:00
Connor Peet
7fe3227d13 cli: fix incorrect GLIBC version parsing (#236082)
* Fix incorrect GLIBC version parsing

Fixes #230370

* fixed formatting

* fixed formattting error
2024-12-16 07:57:12 -08:00
Alexandru Dima
cb279a8eb2 Use position:fixed to make sure to be on top of everything in the workbench (#236236) 2024-12-16 16:55:47 +01:00
Johannes Rieken
a58957af82 fix https://github.com/microsoft/vscode/issues/232918 (#236233) 2024-12-16 16:39:38 +01:00
Ladislau Szomoru
a31ec0d89a GitHub - do not show the "Publish to GitHub" command in an empty workspace (#236234) 2024-12-16 16:39:11 +01:00
Benjamin Christopher Simmonds
3bbe456892 Polish tab bar focus styles (#236232)
polish tab bar focus + 💄
2024-12-16 16:23:54 +01:00
Ladislau Szomoru
6338f2920c SCM - quick diff decorators use legancy diff algorithm to avoid touching diffs (#236231) 2024-12-16 16:21:01 +01:00
aslezar
386d58d0de fixed formattting error 2024-12-16 20:49:25 +05:30
Shivam Garg
adb6e19bf2 Merge branch 'microsoft:main' into fix-glibc-parse 2024-12-16 20:45:22 +05:30
Aiday Marlen Kyzy
845f0ac17b Refactoring hover controller (#236228)
refactoring hover computation
2024-12-16 15:48:58 +01:00
Johannes Rieken
9b05bdafb3 * make sure to cancel request when disposing session (#236225)
* make sure to stop editing when request is cancalled

fixes https://github.com/microsoft/vscode-copilot/issues/11349
fixes https://github.com/microsoft/vscode-copilot-release/issues/2684
2024-12-16 15:11:31 +01:00
Benjamin Christopher Simmonds
7abd349c80 Hide Panel (X) tooltip now includes key binding (#236062)
* #209193

* fix glitching render
2024-12-16 15:10:34 +01:00
Alexandru Dima
0c995148f4 Do not inherit outer editor padding (#236219) 2024-12-16 13:27:29 +01:00
Daniel Imms
c08aa73f66 Merge pull request #236216 from microsoft/tyriar/228136_2
Only add additional margin on hover children with bg
2024-12-16 03:35:15 -08:00
Daniel Imms
188b1f1b31 Only add additional margin on hover children with bg
Fixes #228136
2024-12-16 03:15:28 -08:00
Benjamin Christopher Simmonds
1bbe4e9d96 Focus panel if maximized otherwise editor (#236211)
fix #205584
2024-12-16 12:15:15 +01:00
Johannes Rieken
002eaa541a remove console.log fyi @connor4312 (#236209) 2024-12-16 12:11:06 +01:00
Ladislau Szomoru
dc3bf2d878 Git - fix submodule decoration (#236208) 2024-12-16 11:45:03 +01:00
Aiday Marlen Kyzy
17320a061a Fixing escape does not hide hover (#236200)
* fixing escape does not work

* making same fix
2024-12-16 11:40:19 +01:00
Johannes Rieken
27a8a26b36 update area labels (#236207) 2024-12-16 11:38:23 +01:00
Ladislau Szomoru
864d5d8aff Revert "Git - ignore changes reported to the submodule folder (#205125) (#236098)" (#236206)
This reverts commit 899afc0311.
2024-12-16 11:28:44 +01:00
Henning Dieterichs
92d2d5d984 Observables: Adds debug logging (#236205) 2024-12-16 11:20:39 +01:00
Henning Dieterichs
3a1e3f7f92 Adds derived owners (#236204) 2024-12-16 11:16:31 +01:00
Alex Ross
8db8225de6 Allow file level comments to start collapsed (#236201)
Fixes https://github.com/microsoft/vscode-pull-request-github/issues/6465
2024-12-16 11:05:31 +01:00
Benjamin Christopher Simmonds
276e247921 Align view and container actions (#236199)
align view and container actions
2024-12-16 11:03:13 +01:00