Commit Graph
29074 Commits
Author SHA1 Message Date
Rob Lourens 2809ed713f Include groupId in copySetting pref telemetry 2018-01-16 12:57:51 -08:00
Matt Bierner cbf9ae23ed Allow loading webview outside of file: origin (#41698)
* Allow loading webview outside of file: origin

**Problem**
Webviews are currently always loaded from a file on the disk. This results in the webview running in the file origin, potentially allowing it to access any file on disk. If a webview fails to sanitize workspace or remote input, untrusted code could potentially access files on the user's system.

**Fix**
Add a new option to serve the webview out of a "data:" uri instead. This prevents access to `file://` resources.

In order to allow webviews to still load resources from disk, add a new protocol called `vscode-core-resource://` that only allows access to resources inside of the vscode directory.

Moves extension pages and our release notes to use this new option. These already are pretty locked down. We cannot move the htmlpreview command to use this option as it would break a huge number of existing extensions, however the new webview API will always have this new option enabled.

* Shorted protocol name
2018-01-16 12:50:14 -08:00
Johannes Rieken 42de6cc82f add TextSearchOptions, only search in folder contributed by provider, #41536 2018-01-16 12:31:40 -08:00
Krzysztof Cieślak 1f6aedf00e Use first rename provider for resolving initial value 2018-01-16 21:09:44 +01:00
Krzysztof Cieslak b0e71f6504 Implement functionality in rename contribution file 2018-01-16 20:59:34 +01:00
Krzysztof Cieslak b21090f8e9 Make range required 2018-01-16 20:59:33 +01:00
Krzysztof Cieslak beedeba11b Add new API to communication layer 2018-01-16 20:59:33 +01:00
Krzysztof Cieslak ec5253c39c Add types and interfaces 2018-01-16 20:53:22 +01:00
Rob Lourens 205c49a94c Fix settings search telemetry metadata for settings edited from editable side of settings editor 2018-01-16 11:04:40 -08:00
Johannes Rieken 4b5c0ec9d1 remote - a few more todo-tags after a 'file'-scheme search 2018-01-16 10:59:37 -08:00
Johannes Rieken 688f853578 use extfs#watch, #41700 2018-01-16 10:42:27 -08:00
Johannes Rieken f17d0bcc82 set problems.decorations.enabled to true, #782 2018-01-16 10:20:08 -08:00
Johannes Rieken 4a45d92f04 slight follow up on #38636 2018-01-16 10:19:20 -08:00
Sandeep Somavarapu e48281d14b #35462 Store the hidden views in global storage 2018-01-16 19:03:26 +01:00
Benjamin Pasero c0cfc0e20d 💄 2018-01-16 18:25:41 +01:00
Benjamin Pasero 48628fb65e log editorGroupMoved 2018-01-16 18:20:51 +01:00
isidor d53bb74cce fix cmd+w not working 2018-01-16 18:18:44 +01:00
Benjamin Pasero b939d90808 fix #40224 2018-01-16 18:04:46 +01:00
Peng Lyu 916c27c003 Remove unnecessary prefixsum related types. 2018-01-16 09:02:27 -08:00
Peng Lyu d502615bf2 Avoid CR at the end of chunk. 2018-01-16 08:54:51 -08:00
Peng Lyu dfde8bf501 Add test cases for piece buffer. 2018-01-16 08:40:06 -08:00
Sandeep Somavarapu b5bf2f90db #41071 Show the view on selected if hidden 2018-01-16 17:24:42 +01:00
Sandeep Somavarapu e22eb95064 #41071 Add view category to the commands 2018-01-16 17:15:25 +01:00
Sandeep Somavarapu 543bcec6ef Fix #41071 2018-01-16 17:06:48 +01:00
Sandeep Somavarapu f86c0f9a91 Remove the handle from the system when handle changes 2018-01-16 17:06:47 +01:00
Sandeep Somavarapu c66517cf0d Fix #40018 2018-01-16 17:06:47 +01:00
Sandeep Somavarapu dc13183cdb Merge pull request #41413 from Microsoft/sandy081/40018
Add optional id property to the tree item
2018-01-16 17:06:22 +01:00
Sandeep Somavarapu ee287dda6d Merge branch 'master' into sandy081/40018 2018-01-16 17:05:48 +01:00
Alex 540282cb13 Use existing pad helper 2018-01-16 19:01:07 +03:00
isidor 49c5b17dc7 todo@isidor 2018-01-16 16:55:15 +01:00
isidor b6e0f97f97 open editors: multi select dnd 2018-01-16 16:51:49 +01:00
isidor 3f38333b9b getMultiSelectedEditorContexts 2018-01-16 15:53:21 +01:00
isidor f9237aa2e9 udpate explorer.openEditors.visible docs 2018-01-16 15:39:27 +01:00
isidor bc0450fe44 get rid of IEditorContext, use IEditorIdentifier instead 2018-01-16 15:16:30 +01:00
isidor c74f95d1dc close editors and close other editors multi select aware 2018-01-16 12:57:39 +01:00
Alex Dima f678d17b03 Optimize away looping through lines for huge files 2018-01-16 12:29:00 +01:00
Alex Dima fa82eeaef5 Folding is not supported for huge files 2018-01-16 12:24:56 +01:00
Alex Dima 01afb25494 Optimize buffer creation 2018-01-16 12:18:08 +01:00
isidor 45dccb50be close editors multi select aware 2018-01-16 11:50:16 +01:00
isidor 592e8761a3 open editors view: remove unused actions 2018-01-16 11:50:06 +01:00
Alex Dima af160c40cc Validate offset before passing it down 2018-01-16 11:38:25 +01:00
Alex Dima 5db6bdddd8 Fix NPE in Buffer.equals 2018-01-16 11:30:29 +01:00
Alex Dima 74d70805fd Fix edge case when searching for last offset in file 2018-01-16 11:24:57 +01:00
isidor 16bcbe1907 close all unmodified multi select aware 2018-01-16 11:19:30 +01:00
Alex Dima cad270088c Implement ChunksTextBuffer.setEOL 2018-01-16 11:10:48 +01:00
Christof Marti ec1924769c Add alias for commands (#39778) 2018-01-16 11:05:00 +01:00
Alex Dima de218362e8 Better edits sorting 2018-01-16 11:04:21 +01:00
isidor 8a545292d8 open editors multi select: save all 2018-01-16 10:49:19 +01:00
isidor 748f176321 open editors: need to pass an {} when there is no uri to keep the order of arguments 2018-01-16 10:49:19 +01:00
isidor 43e1d0917f getMultiSelectedEditorContexts 2018-01-16 10:49:19 +01:00