Commit Graph

128156 Commits (b6270f8f56adefba4aced29e774116801f049db2)

Author SHA1 Message Date
Oleg Solomko b6270f8f56
[refactor]: working on unit tests for the `FilePromptContentsProvider` 2024-12-19 03:35:12 +00:00
Oleg Solomko 83bfc47be5
[refactor]: add unit tests for the `Decoder.transform()` utility 2024-12-18 02:35:41 +00:00
Oleg Solomko fabbb55fa2
[refactor]: add II of `FilePromptContentsProvider` and `TextModelPromptContentsProvider`, improve docs 2024-12-18 01:59:54 +00:00
Oleg Solomko 8af1c7cb66
[refactor]: add II of `PromptContentsProviderBase` and the `cancelPreviousCalls` decorator 2024-12-18 01:03:54 +00:00
Ladislau Szomoru 7722c2bb0f
Git - adjust command `when` clauses (#236392)
* Add telemetry for troubleshooting

* Adjust command when clause
2024-12-17 20:27:55 +01:00
Tyler James Leonhardt 6baeecd419
Add my labels (#236391) 2024-12-17 20:23:55 +01:00
Connor Peet 9bb364f332
testing: fix scrollbar overlaps coverage indicators (#236387)
Fixes #235343
2024-12-17 20:17:01 +01:00
Connor Peet 1649b305c6
testing: fix can toggle inline test coverage for non-text files outside the workspace (#236386)
Fixes #235346
2024-12-17 20:13:06 +01:00
Logan Ramos e689b912ba
Update telemetry package (#236378) 2024-12-17 20:12:49 +01:00
Henning Dieterichs 068676662c
Fixes https://github.com/microsoft/vscode-copilot/issues/10296 (#236383) 2024-12-17 20:05:05 +01:00
Peng Lyu d08f30ded4
Update area labels (#236116) 2024-12-17 19:57:39 +01:00
Megan Rogge d3b582676f
add rerun action to terminal chat to align w editor (#236381) 2024-12-17 19:57:14 +01:00
Sandeep Somavarapu 625bae2375
debt: clean up obsolete file usage (#236379)
- remove it from scanner, with profiles reading this file is not needed
- rename it usage for removal in management service
2024-12-17 11:44:54 -07:00
Henning Dieterichs dfa26a2c56
Adjusts zIndex for notebooks. (#236380) 2024-12-17 19:39:48 +01:00
Matt Bierner 754f8884e6
Merge pull request #236303 from mjbvz/embarrassing-pigeon
Use safer escaping for css url strings
2024-12-17 10:02:07 -08:00
Tony 330ab6c292
Reland fix custom task shell doesn't work without manually passing in "run command" arg/flag (#236058) 2024-12-17 17:50:35 +00:00
Matt Bierner d12587c914 Fix windows test 2024-12-17 09:24:26 -08:00
Megan Rogge b4c9953da4
request folders/files when appropriate (#236370)
fix #236368
2024-12-17 09:10:39 -08:00
Benjamin Christopher Simmonds 639c4c8d1e
Make title bar and command center visible when actions are enabled (#236369)
Make title bar and or command center visible when actions are enabled in title bar
2024-12-17 17:57:23 +01:00
Henning Dieterichs 68410e1431
Fixes https://github.com/microsoft/vscode-copilot/issues/9375 (#236363) 2024-12-17 17:03:46 +01:00
Daniel Imms da60098200
Merge pull request #236340 from microsoft/tyriar/suggest_test
Reduce duplication in terminal completion service tests
2024-12-17 08:00:06 -08:00
Henning Dieterichs 4229274590
Fixes https://github.com/microsoft/vscode-copilot/issues/11377 (#236362) 2024-12-17 16:49:21 +01:00
Ladislau Szomoru 36d8719a8e
SCM Input - respect `editor.emptySelectionClipboard` setting (#236361) 2024-12-17 16:37:16 +01:00
Aiday Marlen Kyzy 92965da2b8
When tab is pressed when content widget is focused, do not hide the hover (#236360)
when tab is pressed when content widget is focused, do not hide the hover
2024-12-17 16:29:06 +01:00
Henning Dieterichs f76df5bbe6
Fixes #11376 (#236358) 2024-12-17 16:24:47 +01:00
Henning Dieterichs 0acab1b9b5
Fixes #11380 (#236352)
Adjusts zIndex. Fixes microsoft/vscode-copilot#11380
2024-12-17 16:20:39 +01:00
Ladislau Szomoru 538412ba9d
Diff - manually revert 854108f7d2 (#236355) 2024-12-17 16:15:26 +01:00
Aiday Marlen Kyzy 317d55da7b
Pressing alt/opt makes the hover temporarily sticky (#236356)
* add alt key to make hover temporarily sticky

* adding code
2024-12-17 16:08:13 +01:00
Johannes Rieken 206033fd3f
drop code lenses with invalid/missing range (#236353)
https://github.com/microsoft/vscode/issues/233159
2024-12-17 15:36:20 +01:00
Johannes Rieken d162ceb7fe
extension events use new `ExtensionError` so that these errors don't make it into "normal" error telemetry (#236336)
* extension events use new `ExtensionError` so that these errors don't make it into "normal" error telemetry

fixes https://github.com/microsoft/vscode/issues/232914

* fix tests
2024-12-17 15:15:31 +01:00
Benjamin Christopher Simmonds 6997bee2ac
Make badge smaller, reduce margin and change color when icon (#236346)
make badge smaller and closer to label
2024-12-17 14:49:21 +01:00
Daniel Imms 8db902c64c
Merge pull request #236337 from microsoft/tyriar/235024_2
Fill pwsh commands via Get-Command
2024-12-17 04:42:06 -08:00
Daniel Imms cdd41b08db
Reduce duplication in terminal completion service tests 2024-12-17 04:27:47 -08:00
Daniel Imms f776d0611e
Fill pwsh commands via Get-Command
Fixes #235024
2024-12-17 04:09:17 -08:00
Johannes Rieken c269884f97
disable sticky scroll while steaming edits (#236332)
disable sticky scroll white steaming edits

fixes https://github.com/microsoft/vscode-copilot/issues/11102
2024-12-17 12:30:48 +01:00
Benjamin Pasero 9b0cd65515
theme - fix some colors in status bar for #235718 (#236331) 2024-12-17 12:22:51 +01:00
Alex Ross f78af53350
Fix extra primary button in comments (#236325)
Fixes https://github.com/microsoft/vscode-pull-request-github/issues/6553
2024-12-17 11:38:12 +01:00
Benjamin Pasero b426e026e1
Show remote name for files in recently opened (fix #143096) (#236309) 2024-12-17 11:26:12 +01:00
Alexandru Dima 848e5a3495
Do not inherit outer editor's rulers (#236324) 2024-12-17 11:09:44 +01:00
Martin Aeschlimann f283262be0
[json] `Unable to load schema, EISDIR: illegal operation on a directory (#236319) 2024-12-17 10:17:50 +01:00
Ladislau Szomoru f5e5ee4b29
SCM - remove more debt from the quick diff (#236318) 2024-12-17 10:14:27 +01:00
Aiday Marlen Kyzy 9963eb06d9
Removing showing of hover on modifier key press (#236317)
removing showing of hover on modifier key press
2024-12-17 10:08:35 +01:00
Benjamin Pasero a5a6d6d21e
Improve wording and flow of restart EH blocker (fix #233912) (#236311) 2024-12-17 10:02:16 +01:00
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 70dc7fc97a Use safer escaping for css url strings
Fixes #236122

For css `\0000xx` escaping, if I'm understanding the spec correctly it turns out they eat the space character following them: https://www.w3.org/TR/CSS2/syndata.html#characters

My previous fix didn't account for this. Instead I think a safer fix is to switch to use `Css.escape`. This often over-escapes the string by converting characters that don't need it but should be safe and it fixes the original issue
2024-12-16 17:06:07 -08: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