Commit Graph
73433 Commits
Author SHA1 Message Date
Benjamin Pasero bae3480310 💄 - adopt some await for commands 2020-07-14 15:19:26 +02:00
Benjamin Pasero ab1d1ad588 Web: integration test failures in workspace events (fix #102365) 2020-07-14 15:14:23 +02:00
João Moreno 5278689345 use disposableTimeout 2020-07-14 13:07:29 +00:00
João Moreno 1cc019566f scm: always call onDidChangeContentHeight
related to #102358
2020-07-14 13:07:29 +00:00
Alex Ross 52daded0fc Fix findExecutable
Part of #101073
2020-07-14 14:49:04 +02:00
Johannes Rieken b23ce2d5cd use view state from existing editor when not having view state, https://github.com/microsoft/vscode/issues/101356 2020-07-14 14:26:00 +02:00
Sandeep Somavarapu a2c7671e41 use layout service to hide sidebar or panel 2020-07-14 13:53:06 +02:00
Sandeep Somavarapu 9aadfc98db #100346 Introduce manual sync view 2020-07-14 13:33:14 +02:00
Sandeep Somavarapu 1d745fe492 #100346 add merged prop to resource preview 2020-07-14 13:13:17 +02:00
João Moreno 48fd5cbf66 fixes #102358 2020-07-14 10:02:20 +00:00
Johannes Rieken 2d27d4d079 use NotSupportedError for symbols that require the ability to launch processes, https://github.com/microsoft/vscode/issues/101857 2020-07-14 11:32:28 +02:00
Johannes Rieken 8861289597 💄 cannot over can't, https://github.com/microsoft/vscode/issues/101857 2020-07-14 11:28:21 +02:00
Johannes Rieken bb6ea237b8 resolve comment variables against language at position, https://github.com/microsoft/vscode/issues/102403 2020-07-14 11:25:36 +02:00
Johannes Rieken e6488d3e82 fix https://github.com/microsoft/vscode/issues/102330 2020-07-14 10:47:23 +02:00
troy351 02de4b449e chore: remove redundant code 2020-07-14 16:29:07 +08:00
Sandeep Somavarapu 81b4f994ef #100346 mark change as added if file does not exist 2020-07-14 10:12:43 +02:00
Sandeep Somavarapu f27414c53a #100346 introduce mergable previews 2020-07-14 10:12:42 +02:00
Sandeep Somavarapu 40c9a33800 #100346 Prepare for manual sync 2020-07-14 10:12:42 +02:00
Matt Bierner c828a5339b Fix indentation style 2020-07-13 18:01:07 -07:00
Matt Bierner 830aaa4221 Throw if extension passes a non-string value to MarkdownString
Fixes #102351

This seems like the most likely cause of #102351 (although it is difficult to confirm this). I'm adding an exception for insiders. If we discover this causing major problems for real world extensions, we can instead try to handle the error more gracefully
2020-07-13 17:57:28 -07:00
Jason Williams b8e773ebed fix styling to improve heading spacing fixes #102036 (#102427)
* updating styling to make headings look better

* be consistent and use em
2020-07-13 17:40:38 -07:00
Matt Bierner f4d766ca55 Fix one of the webview integration tests 2020-07-13 17:15:00 -07:00
Matt Bierner 731a788e0e Use joinPath instead of node path.join 2020-07-13 17:15:00 -07:00
SteVen Batten 35ef8f557f fixes #102409 2020-07-13 17:01:06 -07:00
Rob Lourens 0128cdd179 Fix persisting scroll position by persisting markdown cell height
Fix #102173
2020-07-13 16:15:57 -07:00
Sandeep Somavarapu ce12370059 fix #102117 2020-07-14 00:27:37 +02:00
rebornix 871b49777b re #102123. 2020-07-13 15:26:56 -07:00
rebornix a7efab4611 fix #102313. 2020-07-13 14:53:47 -07:00
rebornix 41e7c81c7a re #102313. 2020-07-13 14:53:47 -07:00
Sandeep Somavarapu 2e6dc523ef Fix #102082 2020-07-13 23:48:10 +02:00
rebornix 3bc3f95dbc fix #102153. 2020-07-13 14:13:45 -07:00
Matt Bierner 3926674c39 Skip document link tests
These currently do not work on web

Skipping while investigating this
2020-07-13 14:07:29 -07:00
rebornix 0906d9e01e 💄 2020-07-13 14:01:22 -07:00
rebornix 8e49891889 re #102423. do not share the cell text model if copy/paste to another document. 2020-07-13 13:29:26 -07:00
rebornix b73b7469cd fix #102423. 2020-07-13 13:26:03 -07:00
chrisdias 7a9cfb3f9f update distro 2020-07-13 12:52:24 -07:00
rebornix b4c1c67b0a fix #102311. 2020-07-13 11:58:58 -07:00
rebornix dd2a6005d5 💄 2020-07-13 11:58:58 -07:00
Matt Bierner 8e99a2ab71 Allow copying text from extension webviews (#102029)
Fixes #86658
2020-07-13 11:57:26 -07:00
Matt Bierner 7e5937d684 Rework copy paste and other browser events for webviews (#101958)
Fixes #101946

Webview can currently trigger some keyboard events twice. Sequence of events:

- User presses ctrl+v with a webview focused
- Webview is listening to keyboard events for rebroadcast (so that we can handle normal VS code commands even when focused on webviews)
- We rebroadcast the keypresses back to VS Code
- The webview then triggers the standard copy behavior on its own (I believe this is either chromium or electron)
- VS Code gets the ctrl+v keypress event and resolves it to the 'paste' command
- The paste command triggers the paste method on the webview
- This calls back into the webview content to trigger a second paste

This does not happen in cases where we are using native menus, which can call `setIgnoreMenuShortcuts` to disable the browser geenrated paste event.

## The fix
To fix this, I think we want to completely block the browser generate events in all cases and instead always dispatch the events through VS Code. This should ensure more consistent behavior.

This PR does this by:

- In the webview, add a keypress listener for copy/paste/cut and undo/redo. When we see these events, call `preventDefault` to block them but still dispatch back to VS Code

- In VS Code, more the  logic for triggering undo/redo, etc. on webviews out of the electron layer and into the browser layer. iframe based webviews have the exact same problem as electron based webviews, so we need to fix this issue for both of them.
2020-07-13 11:54:33 -07:00
Rob Lourens b6cf8e882e Fix #102341
Looks like it is possible for this to be called when initializing, before layoutBody is called.
2020-07-13 11:52:08 -07:00
Orta Therox d47ddb670d Support the new 4.0 definition of isArray (#102413) 2020-07-13 11:50:26 -07:00
Rob Lourens eedbcc4d40 Fix build 2020-07-13 11:39:00 -07:00
Connor Peet 1d4d8c9713 debug: bump js-debug to 1.47.5 for recovery 2020-07-13 11:35:04 -07:00
Connor Peet add05e385e debug: always clear out any js-debug state 2020-07-13 11:34:32 -07:00
Connor Peet 24cff71f25 debug: use previous node debug for the July release 2020-07-13 11:34:24 -07:00
David LinskeyandMatt Bierner 9bea23ba1c Fix webviews stealing focus when not last focused (#98847)
Fixes #61489

Co-authored-by: Matt Bierner <matb@microsoft.com>
2020-07-13 11:30:40 -07:00
rebornix b2c8b2ac00 fix #102411. 2020-07-13 11:24:18 -07:00
Rachel Macfarlane 139ccc4a4d Disable sign out for account specified through embedder API 2020-07-13 11:19:47 -07:00
Matt Bierner 2b5ac23284 Fix conditional for overrideCommandForWebview
This command should be active if:

- we are on mac
- or we are not using custom title bars

The previous code was incorrectly disabling these commands entirely on mac
2020-07-13 10:56:21 -07:00