Commit Graph
68416 Commits
Author SHA1 Message Date
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
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
Matt Bierner 1cfd3a1b28 Use own version of toJson
This avoids having the uri transformed unexpectedly
2020-07-13 10:56:21 -07:00
rebornix 5e96337121 re #93070. test for command arguments. 2020-07-13 10:52:57 -07:00
João Moreno d17550f4a8 fixes #102262 2020-07-13 17:39:17 +02:00
acheronfail 3825520a45 fix: rename textFileEdiorModel to textFileEditorModel (#101849)
* fix: rename textFileEdiorModel to textFileEditorModel

* fix: accumualted and valdiate typos
2020-07-13 08:21:44 -07:00
Alex Ross 1cd6bc0213 Add doc for executeTask and openTunnel 2020-07-13 16:49:51 +02:00
Johannes Rieken 75fc236b5e tweak jsdoc for env.shell, https://github.com/microsoft/vscode/issues/101857 2020-07-13 16:19:35 +02:00
Daniel Imms 108d4dfbf4 Return '' from env.shell, remove env var collection overrides
Part of #101857
2020-07-13 06:37:04 -07:00
Daniel Imms 75e134ae1d Name magic number
Part of #98494
2020-07-13 06:33:27 -07:00
Daniel Imms 909356f6ee Merge pull request #98494 from connorskees/issue-98404
use ^H to delete word left in cmd.exe
2020-07-13 06:31:32 -07:00
Daniel Imms b8b7e72473 Move env var collection impl into common
Part of #101857
2020-07-13 06:26:35 -07:00
Daniel Imms 3372b25ab4 Add @throws jsdoc to createTerminal
Part of #101857
2020-07-13 06:26:35 -07:00
Benjamin Pasero a1e86dc02e encoding - disable test on windows
Not sure why, looks like Windows and encodings are not intuitive.
2020-07-13 15:25:06 +02:00
João Moreno 908503ee89 ignore remote and web when yarn in arm64 2020-07-13 15:23:54 +02:00