Commit graph

1253 commits

Author SHA1 Message Date
Johannes Rieken bee68cee69
allow workspace edit to "create" untitled files (#191779)
https://github.com/microsoft/vscode-copilot/issues/1261
2023-08-30 15:24:37 +02:00
Daniel Imms 8d76882313
Merge branch 'main' into tyriar/finalize_179476 2023-08-24 05:58:18 -07:00
Kartik Raj 5257764dea
Merge pull request #191016 from microsoft/kartik/fluttering-pony
Finalize proposed env workspace collection API
2023-08-23 11:13:41 -07:00
Alex Ross bd67b50dfd
Remove tree item checkbox proposal from tests (#191084)
Fixes #191081
2023-08-23 19:28:19 +02:00
Daniel Imms 1461c7d382
Finalize EnvironmentVariableMutatorOptions API
Fixes #179476
2023-08-23 07:54:24 -07:00
Ulugbek Abdullaev e4bfe48d92
Merge pull request #190649 from microsoft/ulugbekna/insert-at-cursor-api
MappedEditsProvider API
2023-08-23 12:28:24 +02:00
Kartik Raj b1d5542cfd Finalize proposed env workspace collection API 2023-08-22 20:22:32 +00:00
Ulugbek Abdullaev fe52b50e41 add mappedEditsProvider proposed API ID to integration tests' package.json 2023-08-22 15:57:40 +02:00
Ulugbek Abdullaev c3a4fbbe8f add vscode.executeMappedEditsProvider command & use it to have integration tests for mapped-edits service 2023-08-21 13:00:50 +02:00
Kartik Raj 7c577637e8 Fix test 2023-08-15 23:31:07 +00:00
Connor Peet 2d9cc42045
testing: menu contribution points around messages (#190298)
- Implements the proposal in #190277 by adding a `contextValue` to
  TestMessages added to test runs.
- Make the `FloatingClickMenu` reusable outside the editor, and uses
  it to implement a `testing/message/content` contribution point.

With this extensions can do things like:

![](https://memes.peet.io/img/23-08-68e2f9db-abc4-4717-9da6-698b002c481c.png)
2023-08-12 08:03:01 -07:00
Matt Bierner 8c7747252e
Move drop/paste ids onto providers (#189961)
For #179430, #30066

This lets us call just the provider we are interested in
2023-08-08 14:44:03 -07:00
Robo ea490e5545
chore: update to Electron 25 (#188268)
* chore: update electron@25.3.0

* ci: update NodeTool version

* chore: update @types/node

* add more common types to layers checker

* chore: update debian dependencies

* chore: update rpm dependencies

* fix: use legacy dns result order of Node.js

* ci: remove deprecated always-auth npm config

Refs npm/cli@72a7eeb

* chore: update deb and rpm dependencies

* chore: update armhf rpm dependencies

* chore: update x64 debian dependencies

* chore: update x64 rpm dependencies

* chore: update electron@25.3.1

* chore: update electron@25.4.0

* chore: bump distro

* chore: bump distro

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2023-08-07 21:46:27 +09:00
Daniel Imms fa4b3238c9
Re-enable unit test with retries
Fixes #188375
2023-08-02 07:09:26 -07:00
Kartik Raj 1ca9aa71bb
Merge pull request #188982 from microsoft/kartik/detailed-tahr
Fix for each in scope env collection
2023-07-26 14:32:34 -07:00
Kartik Raj 68d22e586d Fix for each in scope env collection 2023-07-26 20:58:53 +00:00
Sandeep Somavarapu dc00865687
skip flaky test #188375 2023-07-21 09:34:18 +02:00
Daniel Imms 31b9e9aa9b
Wait for terminal data before using terminal.selection APIs 2023-07-19 11:14:31 -07:00
Daniel Imms 471490656d
Merge branch 'main' into tyriar/188173_term_selection 2023-07-19 11:07:37 -07:00
Connor Peet f82185934a
testing: finalize testInvalidateResults (#188180)
Also sends the tests as a bulk to the renderer, and implements a
prefix tree for doing invalidation checks (which I plan to adopt
elsewhere later on, perhaps in debt week.)
2023-07-18 20:14:25 +02:00
Daniel Imms 49df64f6ac
Remove unused import 2023-07-18 10:17:00 -07:00
Daniel Imms 775102bd82
Implement tests 2023-07-18 09:58:47 -07:00
Daniel Imms 99e31ae297
Add terminal selection API
Part of #188173
2023-07-18 09:47:46 -07:00
Ehab Younes 6a152ca523
Expose the focused element and change event in the TreeView API (#184268)
* Expose the focused element and event in the TreeView API

* Exposed active TreeItem through extension proposal

* Add proposal to test extension

* Merge change selection and focus events

* Finish selection+focus change in treeview

* Clean up

* Clean up

* Add checkProposedApiEnabled back in

---------

Co-authored-by: Ehab Younes <ehab.younes@sigasi.com>
Co-authored-by: Alex Ross <alros@microsoft.com>
2023-07-14 08:49:15 +00:00
Rob Lourens 448d14e907
Make breakpoint data available in EH immediately, not after a call to debug API (#186796)
Fix #169699
2023-06-30 15:04:59 -07:00
Daniel Imms cf247472ec
Loosen test to allow for shell output 2023-06-24 08:50:41 -07:00
Benjamin Pasero 052ac9ca4c
files - allow more file operations to run in the extension host (#172345) (#185988)
* files - allow more file operations to run in the extension host (#172345)

* fix tests

* tests

* tests

* tests
2023-06-23 17:18:44 +02:00
Alex Ross 1a4e466fc0
Set a read-only message from an extension (#185216)
* wip

* Allow extensions to provide a readonly message
Part of #166971

* Address feedback

* Further address feedback

* Fix some nits

* Add test

* Improve tests and respond to feedback

* Don't render editor.readOnlyMessage in the settings UI

* No need to validate the IMarkdownString

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
Co-authored-by: Alex Dima <alexdima@microsoft.com>
2023-06-21 10:55:00 +02:00
Johannes Rieken 2798d7bf41
joh/rainy weasel (#184582)
* add tooltip (plain text) to static items,

re https://github.com/microsoft/vscode/issues/183772

* support accessibilityInformation for static static bar contribs,

https://github.com/microsoft/vscode/issues/183772
2023-06-08 12:33:24 +02:00
Johannes c106fbe627
add some integration tests for static status bar items 2023-06-05 16:39:59 +02:00
Daniel Imms baa3e220bd
Merge branch 'main' into tyriar/183236 2023-05-25 04:54:33 -07:00
Daniel Imms d1be423950
Fix scope test 2023-05-25 04:53:50 -07:00
Connor Peet 21ec2519ef
testing: add proposed testInvalidateResults API (#183370)
* testing: add proposed testInvalidateResults API

For #134970

* fix tests
2023-05-24 22:57:07 -07:00
Daniel Imms 37ad81ccd9
Ensure options are filled with defaults, fix equality check
Fixes #183236
2023-05-24 15:03:22 -07:00
Kartik Raj b4a853bac9 Update package.json for vscode-api-tests 2023-05-23 19:40:55 +00:00
Kartik Raj d3ffc565ea Correctly show descriptions for each scope 2023-05-23 17:38:56 +00:00
Daniel Imms 438eb68ef6
Actually fix the tests, options is an empty object not undefined 2023-05-23 09:02:42 -07:00
Daniel Imms 27293f19d2
Fix env var collection api tests 2023-05-23 08:34:06 -07:00
Rob Lourens 05c0ca95ed
Add new API proposal for chat onDidPerformUserAction event (#183140)
* Add new API proposal for chat onDidPerformUserAction event

* Enable API for tests that incidentally touch the getter
2023-05-22 11:52:19 -07:00
Matt Bierner b11a3f7f87
Disable flaky test (#182814)
Fixes #182489
2023-05-18 13:17:51 -07:00
Connor Peet 8b3523a18d
api: implementation of proposed window activity API (#182563)
* api: implementation of proposed window activity API

For #181569

* fix build

* fix build more

* add cell activity per @rebornix
2023-05-16 17:49:33 +02:00
Matt Bierner 09023d824a
Try to fix flaky paste tests (#182574)
These tests fail occasionally in CI, seemingly only on linux. This tries to fix this by:

- Adding retries
- Switching back to use `teardown` to disposed of things. `usingDisposable` may not clean up properly if the test times out
2023-05-15 19:56:25 -07:00
Matt Bierner 06fc826c30
Copy paste api should not fail on invalid provider (#182535) 2023-05-15 20:24:15 +02:00
Matt Bierner 9b6b547d2d
Fix range when copying empty selection (#182227)
This fixes the range extensions get when copying an empty selection. As part of this, I've also:

- Added tests for this change
- Made the paste parts of the api optional. This is useful when a test provider only wants to add data on copy
2023-05-11 17:31:11 -07:00
Benjamin Pasero 71bb936e87
Perf: register a file provider in the ext host to avoid certain roundtrips (#181107)
* register a `file` provider in the ext host

* fix tests

* comments

* address feedback
2023-04-28 17:31:54 +02:00
Kartik Raj f80485dcdf
Merge pull request #179323 from microsoft/kartik/terminal
Add proposed API to specific workspace-specific environment variables via EnvironmentVariableCollection
2023-04-20 15:00:29 -07:00
Kartik Raj d3b1c67267 Fix terminal integration tests 2023-04-20 20:42:07 +00:00
Kartik Raj 50408e199f Make scope as optional 2023-04-20 18:41:50 +00:00
Benjamin Pasero 1ed110b6be
Return resulting URI from commands that save the active editor (fix #178713) (#179091)
* Return resulting `URI` from commands that save the active editor (fix #178713)

* 💄

* address feedback

* change to real proposed API

* cleanup
2023-04-20 18:00:12 +02:00
Ladislau Szomoru 218b8bd8da
SCM - Add document property to expose the text document (#171504) 2023-04-14 13:55:14 +02:00
Kartik Raj 22631c1bdc Do not return variable property 2023-04-12 17:40:00 +00:00
Kartik Raj 8c3884bed5 Fix terminal integration test 2023-04-12 03:28:13 +00:00
Matt Bierner 3e5253b143
Remove notebook controller kind API proposal (#175962)
Fixes #168535
2023-03-16 08:52:09 +11:00
aamunger 869f18c010
fail with more info 2023-03-01 15:31:54 -08:00
Aaron Munger fae46b88cf
Merge pull request #175704 from amunger/differentiateTest
unique test names
2023-02-28 22:02:32 -08:00
aamunger f2550cb362
unique test names 2023-02-28 14:54:54 -08:00
aamunger 2d169f44a3
small diagnostics update 2023-02-28 14:50:03 -08:00
Benjamin Pasero 6a1eb923ca
Integration test failure - vscode API - commands (fix #174319) (#174320) 2023-02-14 10:24:46 +01:00
Benjamin Pasero 14f13b1f20
skip flaky notebook tests (#173124)
* skip flaky notebook test

* link to issue

* skipe the suite
2023-02-02 09:58:05 +01:00
Peng Lyu c581592f24
Re #170072, disable nb flaky test. (#173091) 2023-02-02 06:02:14 +01:00
Martin Aeschlimann 7dff9e992b
add executeFoldingRangeProvider command (#172968)
* add executeFoldingRangeProvider command

* add jsdoc for FoldingRangeKind.fromValue
2023-02-01 01:03:02 -08:00
Benjamin Pasero f01a44b447
Editors can steal focus later when opening slowly (fix #128117) (#170328)
* Editors can steal focus later when opening slowly (fix #128117)

* play it a bit safer

* fix tests
2023-01-01 16:31:26 +01:00
Peng Lyu bf6305fb52
Re #125369. Reduce commands in nb integration test. (#169684)
Re #125369. Reduce commands
2022-12-20 22:47:01 +01:00
Matt Bierner 57dd298b47
Add typings for test runner scripts (#169196) 2022-12-15 02:19:24 +01:00
Benjamin Pasero ac084d723b
notebook tests - run verbose (#165149) (#167212)
* notebook tests - run verbose (#165149)

* bumpb

* 💄
2022-11-26 11:37:52 -08:00
Peng Lyu 4ed4cf6042
Remove unused proposed api enablement. (#167077) 2022-11-23 09:53:18 -08:00
aamunger 2deaa43aa6
specify notebook document 2022-11-16 14:01:31 -08:00
Benjamin Pasero f176ad8e28
workspace.applyEdit drops the TextEdit if there is a RenameFile later #77735 (fix #166436) (#166439) 2022-11-16 09:43:07 +01:00
Sandeep Somavarapu 2cd8ea24f2
#159892 Finalize (#165925) 2022-11-09 10:28:27 -05:00
Matt Bierner 7233e19dd5
Remove notebook content provider api (#165195)
Fixes #160580
Fixes #147248
2022-11-01 17:23:32 -07:00
Sandeep Somavarapu fe882ab334
api feedback (#164470)
* api feedback
- remove critical log level
- move log level off to be 0

* handle off log level

* fix disabling log level in tests

Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
2022-11-01 10:41:19 -04:00
João Moreno 18f1101f70
skip flaky test (#165150)
* skip flaky test

related to #165149

* skip the entire suite
2022-11-01 06:26:44 -07:00
Matt Bierner b97827dacf
Adopt notebook serializer for notebook document tests (#165081)
For #160580

Also remove one test that is no longer relevant
2022-10-31 12:56:40 -07:00
Matt Bierner c60980ca7a
Adopt notebook serializer for test (#165078)
For #160580
2022-10-31 12:01:38 -07:00
Matt Bierner 4eef476a4f
Remove old notebook editor api proposal (#164504)
All consumers should now be on the finalized api

Fixes #151661
2022-10-24 14:40:53 -07:00
Ladislau Szomoru 76191c7c75
Engineering - Remove proposal that has been finalized (#164127)
Remove proposal that has been finalized
2022-10-20 04:30:27 -07:00
Sandeep Somavarapu 894aa9a7a7
Log improvements (#163532)
* - expose log level in the proposed api
- ability to set log level per logger

* fix tests
2022-10-13 03:48:52 -07:00
Rob Lourens cf47b76c63
Finalize notebookDebugOptions API (#163316)
* Finalize notebookDebugOptions API
Fix #147264

* Backcompat for the option from vscode-jupyter

* Undo comment

* Fix build
2022-10-11 20:25:51 -07:00
Alex Ross 23e6c032af
Start enforcing the tunnels API (#163187)
* Start enforcing the tunnels API

* Fix API test
2022-10-10 10:10:24 -07:00
Matt Bierner c2a2ad4f63
Rename image-preview extension to media-preview (#162093)
Fixes #162092

Also removes `aac` from the list of supported audio formats
2022-09-27 21:01:14 -07:00
Rob Lourens 0e333cd799
Convert NotebookCellStatusBarItem test from integration test to unit test (#161274)
Fix #157828
2022-09-20 09:55:58 +02:00
Benjamin Pasero ec56dddd9f
tests - remove snippetWorkspaceEdit usage (#161043) 2022-09-16 00:34:30 -07:00
Tyler James Leonhardt ccddb94f98
initial cut of vscode.l10n (#158328) 2022-09-14 16:48:25 -07:00
Rob Lourens 37f08d1195
Remove notebookEditorEdit proposal requirement (#160912) 2022-09-14 09:41:21 -07:00
Daniel Imms a4cce8f575
Merge pull request #160900 from babakks/add-change-shell-event
Add `onDidChangeShell` event to the API
2022-09-14 07:53:50 -07:00
Daniel Imms c4611298a3
Add envShellEvent to vscode-api-tests 2022-09-14 07:32:41 -07:00
Matt Bierner 1d500fb4de
Add CodeActionKind.RefactorMove (#160730)
Fixes #160728
2022-09-12 15:14:06 -07:00
Matt Bierner 2514759850
Remove notebook content provider save and backup functionality (#160581)
For #147248

When stepping through the liveshare code, we figured out they do not appear to be using `save`, `saveAs`, or `backup` (they return empty results for these)

This PR removes this part of the proposal so we can track just the parts of the api that they are using
2022-09-12 14:08:25 -07:00
Benjamin Simmonds 8268e5d27d
Remove enabledApiProposals badge from test ext (#160526) 2022-09-09 15:36:53 +02:00
Logan Ramos b8afe8d6ed
Skip tab getter tests on web because notebooks are flaky (#160403)
Skip tab tests on web because notebooks are flaky
2022-09-08 04:59:12 -07:00
Johannes Rieken 9bbc7b2bb0
Merge pull request #160193 from microsoft/joh/ordinary-canidae
support `contents` option with `WorkspaceEdit#createFile`
2022-09-07 16:33:42 +02:00
Johannes 4da1e34afe
add content property to vscode-dts-defined properties 2022-09-07 13:21:05 +02:00
Johannes Rieken 50cdf1d71b
Merge pull request #160176 from microsoft/joh/nasty-rook
have an explicit `SnippetTextEdit` and all to set them onto a workspace edit
2022-09-07 00:02:46 +02:00
Johannes b0140c2ca4
support contents option with WorkspaceEdit#createFile 2022-09-06 16:19:08 +02:00
Johannes bcf6547e92
fix API tests for new API 2022-09-06 14:53:43 +02:00
Benjamin Simmonds f51258b93b
Optional TreeItem Checkbox (#158250) 2022-09-06 12:41:57 +02:00
Benjamin Pasero 968d9eda2c
Integration test failure: openTextDocument, untitled closes on save (#157897) (#159888) 2022-09-02 13:43:44 +02:00
Logan Ramos a2cd34f347
Allow showTextDocument to open notebook cell URIs (#158477)
* Fix #123270

* Update to use `getCodeEditor`
2022-08-30 06:39:00 -04:00
Matt Bierner 07025f0b0d
Remove notebook editor edit api (#158988)
Fixes #149181
2022-08-29 09:34:57 -07:00
Logan Ramos 67e628e18a
The quest to debug vscode.open continues (#158483) 2022-08-18 15:13:18 +02:00