Commit Graph

1436 Commits

Author SHA1 Message Date
Benjamin Pasero
904587908c unblock build (skip tests) (#241591) 2025-02-22 11:30:12 -08:00
Benjamin Pasero
4edf8d685b encoding - add a test that simulates saving a document with different encoding (#241448)
* encoding - add a test that simulates saving a document with different encoding

* update pointer to issue
2025-02-21 10:46:13 +01:00
Anthony Kim
f99c5c64bc Expose shell's environment - fish shell (#240971)
* start working on fish, save progress, still lots TODO

* modify proposed.terminalShellEnv.d.ts

* remember we dont have acccess to nonce in .fish script

* save progress, adding isTrusted

* two arrays approach in fish

* provide EnvClear for fish, other shell as well.

* fix tests

* REMOVE TWO ARRAYS METHOD, always send all env

* remove deprecated comments

* remove junk get ready for review

* dont import vscode in terminal/common/capabilities.ts

* take feedback => pass in Clear as part of EnvSingleStart

* add env clear argument to SI.zsh

* update one more place to prevent vscode import

* mandatory flag description?? discuss this

* make things right
Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>

* comment out test code

* use mapsStrictEqualIgnoreOrder instead of equals

* ready to go
2025-02-20 19:42:48 +01:00
Benjamin Pasero
89fef848ef Provide encoding-related APIs for editor extensions (#824) (#240804) 2025-02-20 12:04:34 +01:00
Benjamin Pasero
c23ad8d163 tests 2025-02-19 15:16:58 +01:00
Benjamin Pasero
6cb4d19196 . 2025-02-19 14:03:20 +01:00
Benjamin Pasero
da6fc30c98 rewind 2025-02-19 12:53:49 +01:00
Benjamin Pasero
52d6a94d3d add tests 2025-02-19 12:42:36 +01:00
Benjamin Pasero
6600b07e5c files - add decode method (#824) 2025-02-19 09:26:13 +01:00
Benjamin Pasero
a870e67290 documents - expose encoding as proposed API (part of #824) (#240790) 2025-02-14 15:31:51 +01:00
Ladislau Szomoru
428eb0cc55 API - cleanup API proposals (#240418) 2025-02-11 20:30:32 +01:00
Rob Lourens
5e5183a362 🔪 DELETE chatVariableResolver API proposal 💀 (#239755)
* 🔪 DELETE chatVariableResolver API proposal 💀

* Remove import

* Remove chat variable test

* Bump distro
2025-02-07 19:03:21 +01:00
Johannes Rieken
25613b514c chore - enable integration tests that require latest insiders (#239918) 2025-02-07 11:31:23 +01:00
Benjamin Pasero
86b64aa4bc files - abandon watcher correlation API proposal (#239906)
* files - abandon watcher correlation API proposal

* fix compile
2025-02-07 10:43:11 +01:00
Johannes Rieken
18946eca52 skip integration test that needs latest insiders (#239681) 2025-02-05 14:45:23 +01:00
Johannes Rieken
057edbab16 add sync vs async test case for error'ing provideLanguageModelResponse calls (#239676)
https://github.com/microsoft/vscode/issues/235322
2025-02-05 12:26:25 +01:00
Johannes Rieken
cda13b71f4 Add test to assert LanguageModelError (#239474)
* add test for https://github.com/microsoft/vscode/issues/235322

* extract options/metadata
2025-02-03 10:35:37 +01:00
Matt Bierner
334fdfe437 Merge pull request #234858 from rgrunber/fix-63129
Expose adjustWhitespace to TextEditor API.
2025-01-31 10:21:13 -08:00
Benjamin Pasero
cd3c0ac45b Test failure: workspace.applyEdit drops the TextEdit if there is a RenameFile later #77735 (with opened editor) (fix #238837) (#238838) 2025-01-27 13:18:52 +01:00
Daniel Imms
28f5c4f079 Print failing poll results on all similar tests 2025-01-21 05:43:51 -08:00
Daniel Imms
8cfb26560f Try make terminal api tests less flaky in remote 2025-01-21 05:41:40 -08:00
Christof Marti
735640be5a Avoid setting (#237890) 2025-01-21 09:52:10 +01:00
João Moreno
e55ac22a12 add debug statement (#238299) 2025-01-20 15:58:40 +01:00
Anthony Kim
57e4810cae Expose shell type to extensions (#238071)
* copy everything from #237624

* try to better word notes in proposed.d.ts

* why is test being so flaky

* try sending one more text

* strictEqual only on isInteractedWith always fails

* update the name as recommended

* embed to make sure we are selecting event we are interested in as recommended

* add node as part of TerminalShellType

* getting type ..extHostTypes.TerminalShellType.Bash is not comparable to type ..vscode.TerminalShellType.Bash

* just use one enum?

* figured out how to get from extHostTypes

* clean up
2025-01-17 16:19:02 -05:00
Christof Marti
d7f1a3ce14 Use http.proxy setting (microsoft/vscode#225225) 2025-01-17 14:33:12 +01:00
Martin Aeschlimann
273f654ced Merge remote-tracking branch 'origin/main' into aeschli/clear-wombat-216 2025-01-17 09:42:36 +01:00
Christof Marti
118e6f5373 Local and remote proxy settings (microsoft/vscode-copilot-release#3821) 2025-01-16 12:13:46 +01:00
Martin Aeschlimann
37a00332c7 remove old MappedEditsProvider 2025-01-15 21:21:58 +01:00
Alexandru Dima
e8d359e0aa Improve the updating of the current inline completion when the user modifies the file and hide it when necessary (#237964)
* Improve the updating of the current inline completion when the user modifies the file and hide it when necessary

* Use an OffsetEdit only for inline edits

* Skip failing integration test
2025-01-15 18:34:24 +01:00
Roland Grunberg
8f4b28aedd Introduce 'keepWhitespace' property for snippet text edit abstractions.
- Restore original behaviour of bulk text edits adjusting whitespace
- Add testcase

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
2025-01-14 15:33:18 -05:00
Anthony Kim
35b2db3ed1 Bring back expose shell's environment - bash (#237844)
* bring back expose shell's environment bash

* I want to see why the test is failing the build

* Pass test, disable it until we enable for stable

---------

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
2025-01-14 10:15:46 -08:00
Christof Marti
9559aadb77 Improve test (#237890) 2025-01-14 16:14:42 +01:00
Roland Grunberg
4f39e1da78 Respond to review comments.
- Rename adjustWhitespace to keepWhitespace
- Retain default behaviour of adjusting whitespace when keepWhitespace
  not defined

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
2025-01-14 09:23:10 -05:00
Roland Grunberg
68c2087f8f Expose adjustWhitespace to TextEditor API.
- Disable adjustWhitespace in text edits with snippets so that code
  actions do not adjust snippet indentation by default
- Adjust Emmet extension so that adjustWhitespace is enabled
- Add testcase

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
2025-01-14 09:23:10 -05:00
Benjamin Pasero
06c07d24ef Asymmetry in Memento API's JSON encoding/decoding (fix #209479) (#237800) 2025-01-13 13:04:40 +01:00
Aiday Marlen Kyzy
69d97b0773 Revert "Expose shell's environment - bash " (#237791)
Revert "Expose shell's environment - bash  (#237602)"

This reverts commit e6805d7927.
2025-01-13 10:54:20 +01:00
Anthony Kim
e6805d7927 Expose shell's environment - bash (#237602)
* start terminal shell env proposed

* fix typo

* progress on shellEnvDetectionCapability, mainThreadTerminalSI

* update IShellEnvDetectionCapability interface

* touch up on $shellEnvChange

* adjust IShellEnvDetectionCapability

* properly listen to envChangeEvent
Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>

* Serialize env map, expose on exthost

* start adding to zsh script

* receive environment variable in extension host, properly escape "
Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>

* clean up

* Add TODO: properly escape double quotes, figure out why JSON parse fails for bash

Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>

* Fix nonce check, ignore PS1 for now in bash

* Add some simple PS1 string tests to deserializeMessage

* New approach of sending env entries separately

* be able to get EnvSingleVar

* few comments

* add function signature for start, set, end environment var

* implement EnvStart, EnvEntry, EnvEnd for single env entry

* deserialize env value for EnvEntry

* Remove unncessary comments

* only leave pwsh in this PR and exclude other shells

* keep exlcuding other shell env - only pwsh should remain

* Update src/vs/workbench/api/common/extHostTerminalShellIntegration.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vscode-dts/vscode.proposed.terminalShellEnv.d.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/workbench/contrib/terminal/common/scripts/shellIntegration.ps1

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/workbench/contrib/terminal/common/scripts/shellIntegration-rc.zsh

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/workbench/contrib/terminal/common/scripts/shellIntegration-rc.zsh

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/workbench/api/common/extHostTerminalShellIntegration.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/workbench/api/common/extHost.protocol.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/capabilities/capabilities.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* add comment for ShellEnvDetection

* change envs in shellEnvDetectionCapability to env

* Mention escaping character for EnvJSON similar to commandLine

* Do not fire env event if env has not changed

* add link to CommandLine

* follow main branch format so I avoid merge conflict

* remove resolved TODO

* Update src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* use vscode object equals

* add zsh update_env for shellIntegration-zsh.sh

* add EnvStart, EnvEntry, EnvEnd

* why doesnt if [ "$__vsc_stable" = "0" ]; work

* add test to check shellPath

* stop messing with formatting

* try to be more detail in testing

* clean up

* dont change the format

* properly use stable/insider flag so update_env on insiders

* modify test after feedback

* rename to *EnvironmentSingleVar and make it transactional via _pending env

* add docs for *EnvSingle and update bash script to conform to *EnvSingle

* Update src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* remove _env.clear from start and make _env non-readonly

* Update src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.ts

---------

Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
2025-01-10 16:22:07 -08:00
Daniel Imms
2bcd6c467e Retry executeCommand integration test on failure
It's unclear how this happened and seems like a very rare flake.
2025-01-08 09:16:51 -08:00
Matt Bierner
4daea74ba9 Finalize paste api and drop api tweaks
Fixes #30066

This finalizes the documentPaste api. This api allows extensions to attach metadata on text copy and change how content is pasted. Some examples:

- Updating imports for pasted code
- Inserting an image as an attachment in notebooks
- Pasting files converts them to relative text paths
2025-01-07 14:57:16 -08:00
Johannes Rieken
04eff405cf restore history sharing rules for agents (#233930) 2024-11-15 18:48:35 +01:00
Johannes Rieken
434e2d6b5c stuff (#233905)
* align chat history filtering

* tweak styles of hunk menu

* fix tests
2024-11-15 17:32:37 +01:00
Tyler James Leonhardt
15333a70d8 Implement a handle property that is a string (#233267)
* Implement a `handle` property that is a string

For Microsoft auth

* fix integration tests
2024-11-07 09:44:37 -08:00
Daniel Imms
b2dc7fddf2 Fix failing test on macOS
Started failing with #232968
2024-11-04 05:31:10 -08:00
Andrea Mah
3551cb01fa edit API names and remove findFiles2New and aiTextSearchProviderNew (#232431)
* remove references to findfiles2New and aiTextSearchProviderNew
2024-10-29 18:41:23 -07:00
Johannes Rieken
71d55cd282 chore - clean up LanguageModelChatProvider (step 1) (#232414)
* chore - clean up `LanguageModelChatProvider` (step 1)

* fix compilo
2024-10-28 14:38:51 +01:00
Rob Lourens
f50c72f404 Don't throw when adding an implementation to agents with a disabled when clause (#232094)
Fix microsoft/vscode-copilot#9658
2024-10-23 14:46:06 -07:00
Rob Lourens
d9f379b135 Finalize ChatRequest#model (#231811)
* Finalize ChatRequest#model
Fix #230844

* Register model to fix tests
2024-10-21 16:42:23 -07:00
Benjamin Pasero
c025c19d14 eng - reduce some unused deps (#231221) 2024-10-13 12:38:11 +02:00
Johannes
e6f315d2fc eng - use esModuleInterop for extensions 2024-10-01 21:57:30 +02:00
Robo
9494a89080 chore: add npmrc to extensions folder (#230214) 2024-10-01 12:43:01 +02:00