Commit Graph

930 Commits

Author SHA1 Message Date
Johannes Rieken
c1209ae4e0 extract separte interfaces from ExtHostNotebookShape but not change anything yet 2021-03-31 16:15:52 +02:00
Johannes Rieken
fa48622fdf split mainThreadNotebook up into logical pieces
* notebookDocumentsAndEditors -> owns the truth of the notebooks and editor that extensions know about
* notebookEditor -> everything about editors
* notebookDocuments -> everything about documents
2021-03-31 15:44:31 +02:00
Matt Bierner
3499f63dc1 Exploration: Better transferring of TypedArrays used in Webview.postMessage (#115664)
* Improve passing of ArrayBuffers to and from webviews

Fixes #115807

* Serialize and restore typed arrays too

This also makes it so that if you pass the same ArrayBuffer twice in an object, we use a single object on the receiver side too

* Fix spelling

* Require VS Code 1.56+
2021-03-30 06:49:34 +00:00
Daniel Imms
02d3809824 Allow undefined in terminal env map, unify interfaces
Note that this adds undefined as an option to TerminalOptions.env which could end up
causing compile errors, but they will be more correct and could reveal a bug in an
extension since some key could return undefined.

Fixes #119046
2021-03-26 14:40:12 -07:00
Daniel Imms
d02a4aacba Remove quick launch terminology from code
Fixes #119815
2021-03-26 09:56:20 -07:00
Daniel Imms
f1334e055c Polish select default profile quick pick
Fixes #119808
2021-03-24 11:49:05 -07:00
Alex Ross
2d9069014e Add a placeholder for already forwarded root ports (#119792)
when possible
Fixes microsoft/vscode-remote-release#4749
2021-03-24 14:57:12 +01:00
Ladislau Szomoru
c55aff6379 API feedback (WorkspaceTrustRequest -> WorkspaceTrustRequestOptions) (#119658) 2021-03-24 10:30:31 +01:00
Connor Peet
808266d4de Allow tests to be loaded asynchronously (#119537)
* initial wip in the extension host

* wip

* wip

* wip

* continued progress

* update api from discussion

* update for new proposal

* wip

* update to lastest testing api, almost everything working

Refs https://github.com/microsoft/vscode/issues/115089
Design https://gist.github.com/connor4312/73f1883d720654834b7fd40550d3b6e0

* re-wire retirement state

* update actions to new async test structure

* minor cleanup

* remove unused es2018 that failed build
2021-03-22 18:08:13 -07:00
Rob Lourens
7b96cc4c8b Implement Execution API (#116416)
Implement new execution task API
#106744
Fix #105847
2021-03-22 11:27:00 -07:00
Johannes Rieken
7d99c47b75 move notebook save event into notebook editor model service, remove resolve/save/backup from notebook service and let editor model use content provider directly 2021-03-19 13:13:40 +01:00
Johannes Rieken
af8d8116ee Merge branch 'main' into joh/nbSerialize 2021-03-19 09:10:12 +01:00
Tyler James Leonhardt
89d8eed14f Allow extension authors to set the title of a QuickPick/InputBox in Options (#119144)
* plumb title through

* add title to BaseTransferQuickInput
2021-03-18 13:06:06 -07:00
Johannes Rieken
232266aaf2 first cut of IFileWorkingCopy adoption, misses saveAs and backsnapshot are improper... 2021-03-18 15:26:18 +01:00
Johannes Rieken
8af8a869dc Merge branch 'main' into joh/nbSerialize 2021-03-18 12:03:34 +01:00
Isidor Nikolic
42af2c38dd Merge pull request #117835 from yannickowow/master
Support for DataBreakpointAccessType condition
2021-03-17 19:42:57 +01:00
Yanis
cf7e6f31f9 Support for DataBreakpointAccessType condition #117835 2021-03-17 18:05:18 +01:00
Megan Rogge
e8e6d64105 Terminal profiles (#118790)
* get basics working in current dropdown

* filter profiles based on what we want in the dropdown and other info

* add copywright

* terminal.ts -> terminalProfile.ts

* seperate linux distro code

* improve terminalConfig setting description

* add passing tests and fix #79572

* add test for login args

* add wsl stuff

* fix #77652

* lengthen throttle time to 10s

* shell -> process and fire update profiles so dropdown is updated

* consolidate code in terminalProfile

* change profile selection logic

* change profile config structure

* use <ProfileName, IterminalProfileObject> and get wsl distro names to look normal

* provide terminalConfig to terminalProfiles

* move detection/validation to terminalProfiles

* isWorkspaceShellAllowed

* add quickPickOnly so Select Default Profiles returns all and otherwise filters based on config

* Add logs for errors within terminalProfiles

* change return type

* use sync

* fix bug, get custom generated to work

* workspace shell permissions

* add some comments and clean up

* when ext host ready update profiles

* improve terminalProfileObjectEqual check

* don't use windows powershell unless no other powershell
2021-03-16 17:02:59 -07:00
Johannes Rieken
31283f32b2 keep notebook serializer locally 2021-03-16 14:52:24 +01:00
Johannes Rieken
2de06d768b add INotebookSerializer interfaces and wire up IPC calls 2021-03-16 13:19:33 +01:00
Alex Dima
ae4ffb1b81 Handle extension test execution on the UI 2021-03-11 20:19:28 +01:00
Logan Ramos
c72d7612b4 Add an untitled document data property (#115790)
* Add an untitled document data property

* Dispose of the model passed back

* Fix layer problem

* Add untitledDocumentData to untitled notebooks

* Fix compilation errors

* Switch to using VS Buffer

* Fix threading the untitled document data back through

* Prevent save dialog on untitled reopen with

* Change ignore save setting

* Change setting name and abide by preserve focus

* Add unit test

* Switch to js doc comments

* Consolidate calculating the untitled value, and added test
2021-03-10 19:54:18 +00:00
Johannes Rieken
a6d7d86e85 remove viewType from openNotebookDocument call 2021-03-10 14:30:40 +01:00
Johannes Rieken
0f64ef1b65 remove NotebookDocument#contentOptions 2021-03-09 17:44:22 +01:00
Johannes Rieken
9cc276648e remove onDidChangeCellLanguage-event in favor of the existing document closed/opened event sequence 2021-03-09 15:14:30 +01:00
Johannes Rieken
98a22a957a declare cancellation support for openNotebook and wire it up, exempt notebook content provider from provider naming rules 2021-03-09 12:40:37 +01:00
Alex Ross
06044789bf API proposal for PortAttributesProvider (#118446)
Part of #115616
2021-03-08 15:45:32 +01:00
Matt Bierner
ea5f05a435 Trying to clairify how webview options are used and passed around
- Move protocol types into protocol
- Hold off on combining the options objects until serialization
- Add explicit converstions instead of using `...`
- Make a few methods take property bags to help avoid passing arguments in wrong order
2021-03-05 18:49:17 -08:00
Johannes Rieken
230e0fdc9a clean up, some ground work to support viewColumn, $acceptEditorPropertiesChanged must update all state before sending events, remove active notion from notebook editor 2021-03-05 17:22:06 +01:00
Johannes Rieken
68a6f1c30e look up editor by id, slimmer dtos 2021-03-05 17:22:05 +01:00
Sandeep Somavarapu
bc62648b05 Revert "Remove authentication provider package.json declaration"
This reverts commit 811dc8d45a.
2021-03-05 14:02:57 +01:00
Andre Weinand
128e9b502d add frameId to InlineValueContext 2021-03-04 17:58:55 +01:00
Daniel Imms
a5c28d0ca0 Merge remote-tracking branch 'origin/main' into tyriar/remove_flow_control 2021-03-04 08:02:36 -08:00
meganrogge
ba117e60c2 fix #118043 2021-03-03 16:49:38 -08:00
Ladislau Szomoru
14fd07d57a Workspace trust api feedback 2021-03-03 12:41:22 +01:00
Megan Rogge
cf3faa4046 Don't relaunch extension owned terminals (#117987)
Co-authored-by: Daniel Imms <daimms@microsoft.com>
2021-03-02 13:55:38 -08:00
SteVen Batten
ff225b9fcc add telemetry enablement api (#117944) 2021-03-02 07:59:50 -08:00
Rachel Macfarlane
811dc8d45a Remove authentication provider package.json declaration 2021-03-01 14:11:26 -08:00
Johannes Rieken
6dc076b5c4 debt - tackle an old todo 2021-03-01 11:23:38 +01:00
Daniel Imms
a418778243 Merge remote-tracking branch 'origin/main' into tyriar/remove_flow_control 2021-02-26 13:08:09 -08:00
Daniel Imms
91a246998c Remove flow control setting
Flow control is enabled for all non-extension terminals

Fixes #117418
2021-02-26 05:59:58 -08:00
Daniel Imms
df5d7c257d Remove exthost terminal processes
Fixes #116864
2021-02-26 04:35:03 -08:00
Peng Lyu
08eac1a22d Merge pull request #117204 from microsoft/rebornix/nb-selections
Notebook selections/CellRange
2021-02-22 16:25:10 -07:00
rebornix
ed08a14111 selections[0] is primary. 2021-02-22 10:16:57 -08:00
Ladislau Szomoru
05ea4c5e4e Removed optional message, and added modal parameter (#117241) 2021-02-22 14:10:01 +00:00
rebornix
c38aa5a341 file cleaning. 2021-02-21 23:13:03 -08:00
rebornix
dea95d3e4f map handles to cellrange in UI. 2021-02-21 22:24:20 -08:00
rebornix
de956ce8bd differenciate selection and focus. 2021-02-21 19:35:26 -08:00
Daniel Imms
88c471ed62 Merge remote-tracking branch 'origin/main' into tyriar_megan_reconnect 2021-02-19 09:10:28 -08:00
Johannes Rieken
4a74fa81c1 💄 2021-02-19 15:04:17 +01:00