Commit Graph

19 Commits

Author SHA1 Message Date
Alexandru Dima
65b22997d7 Convert flaky API tests to unit tests (#273398)
Convert flaky API test to unit test (#253863 , #254041)

I maintain my conviction that there is an unrelated run-away API test which steals focus while these tests execute which then leads to these tests failing, since the undo command is sensitive to the current focused editor.
2025-10-26 15:11:46 +01:00
Alex Ross
1b97fc2890 Skip flaky undo/redo stack tests (#260514)
See https://github.com/microsoft/vscode/issues/254041
2025-08-08 01:59:25 -07:00
Johannes Rieken
1a2bacb0a0 make sure the API doesn't allow to set an empty selections array (#251010)
re https://github.com/microsoft/vscode-copilot/issues/18075
2025-06-09 08:23:22 -07: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
Matt Bierner
ab8e743520 Organize imports in ext tests 2021-08-11 16:55:51 -07:00
Logan Ramos
72aa675fc9 Update API tests to strict equal 2021-05-04 14:59:03 -04:00
Johannes Rieken
46cf57b264 a bunch of failing tests 2021-02-01 12:01:32 +01:00
Alex Dima
3725ff44d5 Fixes #109131: Do not fail if an undo stop is inserted in between the two consecutive edits 2020-10-22 09:59:35 +02:00
Johannes Rieken
0fd2688cb4 check if clipboard actually works and only iff so write tests... 2020-06-10 16:08:29 +02:00
Johannes Rieken
f5a218d5a7 restore clipboard text after test, https://github.com/microsoft/vscode/issues/98497 2020-06-08 12:06:53 +02:00
Johannes Rieken
48a2d3e863 if needed , read clipboard inside MainThreadEditors#insertText, https://github.com/microsoft/vscode/issues/98497 2020-06-08 12:03:01 +02:00
Benjamin Pasero
c0eea2a712 tests - disable terminal integration tests for web 2020-03-19 09:37:17 +01:00
Benjamin Pasero
8e809b0230 web - fix single folder api tests 2019-11-04 14:19:37 +01:00
Benjamin Pasero
f5219f0fec tests - add an integration test for editor contents from workspace file 2019-11-04 13:23:04 +01:00
Johannes Rieken
f515c229c9 make edit-builder throw when used after finalized, #78066 2019-07-29 10:56:41 +02:00
Matt Bierner
4c8e61c049 Remove "use strict" directives in extension tests
We compile with alwaysStrict so these are not needed
2018-10-02 15:59:42 -07:00
Matt Bierner
55567633b3 Enable no unused parameters in vscode-api tests 2018-10-01 16:12:05 -07:00
Benjamin Pasero
86244d39a7 add API tests that run on a workspace 2018-01-26 16:16:41 +01:00