Commit graph

149 commits

Author SHA1 Message Date
SteVen Batten afd102cbd2
Trusted Workspaces Feature Branch Merge (#115961)
* draft trusted workspace service / model

* renaming

* add request model and action

* err fix

* add request handlers with mock actions

* some quick fixes

* adding badge icon to activity bar gear

* Add Statusbar item to indicate trust

* Cleanup code

* Add background color

* Use theme color for the status background color

* adding basic editing experience

* observe trust with startup tasks

* Extension enablement

* Add capability to provide a custom message

* Remove old actions

* explorer: if you can not undo, pass undo to editor

fixes #111630

* Remove plug icon from ports view
Part of https://github.com/microsoft/vscode-internalbacklog/issues/1689

* Fixed compilation error

* Handle extension uninstall

* Handle extension install

* Ability to prompt when state is untrusted

* Do not change state is the modal dialog is dismissed or the Cancel button is pressed

* Refactored enablement code

* Prompt when installing from VSIX

* Prompt when installing from the Gallery

* Move file into the browser folder

* fixes and polish

* restructure workspace contributions

* restructure actions and use confirmations

* Initial draft of the proposed APIs

* Added stubs for the proposed api

* Trusted Workspace proposed API

* Fix a regression introduced by merge

* status bar indicator improvements

* remove helper command as we now have hooks

* verbose messaging for the immediate request

* add indication to global activity icon of pending request

* try personal title

* Add configuration setting

* Add additional extension actions

* Fix contributions

* Removed context key that is not needed

* Fixed issue with the dialog

* Reduce arbitrary event limiter from 16ms down to 4.16666 (support for monitors up-to 240hz) #107016

* Fixes #115221: update emoji tests

* Give a higher priority to language configuration set via API call (#114684)

* debug console menu action polish

* Avoid the CSS general sibling combinator ~ for perf reasons

* more notebook todos

* Use label as tooltip fallback properly
Part of #115337

* Fixes microsoft/monaco-editor#2329: Move `registerThemingParticipant` call to `/editor/`

* Fix port label not always getting set
Part of microsoft/vscode-remote-release#4364

* simplify map creation, fyi @bpasero

* Fix #114432: Multiple save dialogs appearing on Windows if Ctrl+S is pressed multiple times (#114450)

* fix multiple save dialogs appearing on Windows when spamming Ctrl+S

* remove old fix and instead keep track of windows with open dialogs in the dialogMainService

* keep initialisation of activeWindowDialogs in constructor

* remove unused variable

* some changes

* queue dialogs based on hash of options

* simplify structure, fix comment typo

* Apply suggestions from code review

Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>

* remove unnecessary async/await for aquireFileDialogLock method

* don't acquire file dialog lock for message boxes

* use MessageBoxReturnValue | SaveDialogReturnValue | OpenDialogReturnValue instead of any type for getWindowDialogQueue

* Apply suggestions from code review

Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>

Co-authored-by: Benjamin Pasero <benjpas@microsoft.com>
Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>

* 💄 dialog main service locks

* debt - adopt some ? operator

* Better hiding of custom hover in icon label

* Limit to 8ms (120fps)

* more API todos for notebooks

* 💄

* Update grammars

* chore - group notebook specific api proposals together

* added unreleased fixes to endgame notebook

* Add changes back to the modal dialog

* Add back the workspace trust proposed APIs

* Adjust dialog buttons

* Standardize on WorkspaceTrust name across interfaces, classes, variables

* Renamed some of the missing keys

* Add TestWorkspaceTrust stub and fix failing tests

* Add requiresWorkspaceTrust property to fix test failure

* remove notebook change

Co-authored-by: Ladislau Szomoru <lszomoru@microsoft.com>
Co-authored-by: isidor <inikolic@microsoft.com>
Co-authored-by: Alex Ross <alros@microsoft.com>
Co-authored-by: TacticalDan <gorksorf@gmail.com>
Co-authored-by: Alexandru Dima <alexdima@microsoft.com>
Co-authored-by: Johannes Rieken <johannes.rieken@gmail.com>
Co-authored-by: Cameron <cameron532@gmail.com>
Co-authored-by: Benjamin Pasero <benjpas@microsoft.com>
Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>
2021-02-06 00:38:32 -08:00
Matt Bierner 0227681492 Add new external uri opener service
This workbench service handles opening external uris. Unlike the core OpenerService, it also has logic for configuring a default opener and prompting if multiple openers are availble for a given uri
2021-01-12 12:41:15 -08:00
Connor Peet fe4f9a9e6f
testing: add to i18n 2020-12-11 15:33:06 -08:00
Benjamin Pasero e6d238e251 web - clipboard warning when failing access 2020-12-10 14:16:12 +01:00
Jackson Kearl 0921f711c3
Add GettingStartedService/Registry and initial getting started UI (#111175)
* WIP -Getting Started Registry

* Initial idea of how registry/service will work

* Getting started with Getting Started

* Add telemetry and touch up enablement flag

* Add contrib as startup editor

* Move to allowing static Getting Start blob

* No newline

* Remove unused enum
2020-11-25 14:05:49 -08:00
Alex Dima 7a322c44db
Try to fix the build 2020-11-11 08:01:21 +01:00
Sandeep Somavarapu 294406d7a1 Fix #110121 2020-11-09 15:39:13 +01:00
Benjamin Pasero 14cd152991 Offer to open workspace in root even when telemetry has been disabled (fix #108669) 2020-10-21 16:20:33 +02:00
Matt Bierner 51dc3193d3 Move webview editor into own module
This splits the core `webview` element services from the `webview` editor services.
2020-09-14 16:08:29 -07:00
Alex Dima 7396cb1990
Have the Toggle Keyboard Shortcuts Troubleshooting action open the renderer log 2020-09-03 22:46:37 +02:00
Robo e4296330de chore: update to electron 9-x-y (#102011)
Co-authored-by: Benjamin Pasero <benjpas@microsoft.com>
2020-08-11 11:30:23 -07:00
Robo 227d533937
Revert "chore: update to electron 9-x-y (#102011)" (#103599)
This reverts commit 3d0d50caf8.
2020-07-30 08:35:43 -07:00
Robo 3d0d50caf8
chore: update to electron 9-x-y (#102011)
* chore: bump electron@9.0.5

* remove exploration config

* fix compile error

* fix compile error

* crashReporter has to be called only once before app ready

* chore: bump electron@9.1.0

* enable LayoutNG

* fix cron schedule

* allow disabling appcenter crash reporting

* set additional crash reporting parameters

* start crashreporter for child process on linux

* setup crash parameters only once

* remove unused crashReporter.guid

* address review feedback

* reuse argv.json for storing crash reporter id

* remove trailing commas

* update localized name

* update argv based on telemetry optout

* update initial config based on setting

* fix conditional errors

* remove telemetry.enableCrashReporter

* move default crash reporter config to electron-main

* update comment for ext host crash reporting

* set default value for configuration

* some 💄 changes

* address review feedback

* do not use ES7 features in JS yet

* add app.focus({ steal: true }) usage

Co-authored-by: Benjamin Pasero <benjpas@microsoft.com>
2020-07-21 09:39:34 +02:00
Sandeep Somavarapu f2a654c782 fix build - add contrib/views to i18n. @alexr00 FYI 2020-06-22 19:18:02 +02:00
Sandeep Somavarapu 82a11a68d5 add views to localization resources 2020-05-18 08:40:31 +02:00
Ladislau Szomoru d357d0283e Add setting to control the sash size 2020-05-08 16:59:25 +02:00
Benjamin Pasero 3364686d79 quick access - remove actionbar contributor that is no longer needed 2020-03-26 12:11:47 +01:00
Benjamin Pasero df958c974f web - remove "Open in Desktop"
Instead it should move into the new remote picker that is enabled for web.
2020-03-25 08:21:45 +01:00
Rachel Macfarlane 2b86488f03 Add account context menu, #90385 2020-03-20 09:51:35 -07:00
Johannes Rieken 52ea4ff1d7 Merge branch 'master' into rebornix/notebook 2020-03-10 10:43:26 +01:00
Benjamin Pasero 37e042c291 quick access - contribute help for standalone and workbench separately 2020-03-07 16:26:44 +01:00
Sandeep Somavarapu 765fa66e78 use proper fs errors 2020-03-06 16:34:42 +01:00
rebornix fb12bf9113 Merge branch 'master' into rebornix/notebook 2020-02-20 09:39:24 -08:00
Benjamin Pasero 5d64dcc0a6 working copy - introduce and adopt a way to participate in file operations 2020-02-20 09:27:45 +01:00
rebornix 612a935c1a Merge remote-tracking branch 'origin/master' into rebornix/notebook 2020-02-12 18:08:24 -08:00
Benjamin Pasero bdf11560cd Web - add "Open in Desktop" feature and new web API 2020-02-12 11:21:19 +01:00
rebornix c78a8696fc Merge remote-tracking branch 'origin/master' into rebornix/notebook 2020-02-07 10:22:51 -08:00
Jackson Kearl cf88fb47a5 Pull Search Editor files into new contrib/ entry 2020-02-05 19:46:04 -08:00
rebornix 1d71d49864 Merge remote-tracking branch 'origin/master' into rebornix/notebook 2020-02-03 14:33:18 -08:00
Eric Amodio 6e94e48a76 Adds nls folder for timeline 2020-01-27 15:28:33 -05:00
rebornix dcc4ed568b Merge remote-tracking branch 'origin/master' into rebornix/notebook 2020-01-27 10:51:28 -08:00
Sandeep Somavarapu a46a5dba98 #88322 Provide a picker to select extensions to sync 2020-01-16 09:03:39 +01:00
Benjamin Pasero 1f5a5470c5 implement backup on shutdown via working copies (#84672) 2020-01-14 15:30:23 +01:00
rebornix e485187ad2 Merge commit 'cd4472ed5fd79551d95acf7d9ed23ce20cb2233d' into rebornix/notebook 2020-01-09 15:57:41 -08:00
Johannes Rieken ddb6d058f7 Merge branch 'master' into joh/bulkEditPreview 2019-12-20 12:01:15 +01:00
Sandeep Somavarapu dbc7fa3c3e #87246 Introduce name in view container 2019-12-18 21:42:56 +01:00
Johannes Rieken ee9d42129d first cut of panel and changes tree 2019-12-18 12:08:06 +01:00
Benjamin Pasero 19062a2976 debt - move workbench.enableExperiments to correct place 2019-12-18 11:42:43 +01:00
Peng Lyu 8d8580260f Merge remote-tracking branch 'upstream/master' into rebornix/notebook 2019-12-09 11:04:24 -08:00
Matt Bierner 529351318e Removing test custom editors 2019-12-02 17:53:32 -08:00
Peng Lyu d6d29a6ef4 layout editor with dimentions 2019-11-29 13:36:36 -08:00
Benjamin Pasero d2cff74b66 web - make sure adblocker do not prevent startup
Renamed workspace stats => workspace tags
2019-11-13 07:47:20 +01:00
Rachel Macfarlane b9a9714d4c First cut of OAuth in the AuthTokenService 2019-11-11 12:45:38 -08:00
Benjamin Pasero 9893f45eb2 Merge branch 'master' into ben/test-custom-editor 2019-11-07 09:45:27 +01:00
Matt Bierner c8d64b13e5 Add code actions contributon point
For #82718
Fixes #52846

This adds a newly proposed codeActions contribution point. For details, see #82718

This change also makes the intellisense for the `editor.codeActionsOnSave` property dynamic by using the new contribution point
2019-11-06 10:13:59 -08:00
Benjamin Pasero bc29be3025 custom editor - first cut playground 2019-11-06 11:53:14 +01:00
Benjamin Pasero 6ee1da3dc5 debt - shuffle things around 2019-09-27 09:44:35 +02:00
Benjamin Pasero 64eed745f5 💄 move a few services around 2019-09-26 18:37:58 +02:00
Sandeep Somavarapu 1e10216856 trigger sync after closing the conflicts editor 2019-09-18 12:37:21 +02:00
Sandeep Somavarapu 65f14490b7 Merge branch 'master' into sandy081/userDataProvider 2019-09-11 13:42:07 +02:00
Matt Bierner 011836a150
Prototyping custom editors (#77789)
* Custom Editor exploration

For #77131

Adds a prototype of custom editors contributed by extensions. This change does the following:

- Introduces a new contribution point for the declarative parts of a custom editor
- Adds API for registering a webview editor provider. This lets VS Code decided when to create a webview editor
- Adds an `openWith` command that lets you select which editor to use to open a resource from the file explorer
- Adds a setting that lets you say that you always want to use a custom editor for a given file extension
- Hooks up auto opening of a custom editor when opening a file from quick open or explorer
- Adds a new extension that contributes a custom image preview for png and jpg files

Still needs a lot of UX work and testing. We are also going to explore a more generic "open handler" based approach for supporting custom editors

Revert

* Re-use existing custom editor if one is already open

* Don't re-create custom editor webview when clicking on already visible custom editor

* Move customEditorInput to own file

* First draft of serializing custom editor inputs

* Use glob patterns instead of simple file extensions for matching custom resoruces for custom editors

* Add descriptions

* Try opening standard editor while prompting for custom editor

* Make sure we hide image status on dispose

* Make sure we restore editor group too

* Use glob patterns for workbench.editor.custom

* Allow users to configure custom editors for additional file types

* Use filename glob instead of glob on full resource path

* Adding placeholder for prompt open with

* Add enableByDefault setting for editor contributions

* Enable custom editors by default and add `discretion` enum

Changes `enableByDefault` boolean to a `discretion` enum. This should give more flexibility if we want other options (such as forcing a given custom editor to always be used even if there are other default ones)

* Allow custom editors to specify both a scheme and filenamePattern they are active for

* Rework custom editor setting

* Don't allow custom editors to be enabled for all resources by a config mistake

* Replace built-in image editor with one from extension

* Adding reopen with command

* Improve comment

* Remove commented code

* Localize package.json and remove image

* Remove extra lib setting from tsconfig
2019-09-10 17:56:57 -07:00
Sandeep Somavarapu c26e198c9c settings sync using remote user data service 2019-09-10 15:16:57 +02:00
Sandeep Somavarapu bb1866ab4e User data sync: Implement starting flow
- user identity
- user login provider
- user data provider
- activation event
- status bar UI
2019-08-25 20:25:16 +02:00
Yisrael Veller f084f2c793 Reuse never show again logic - work in progress (#73968)
* Support never show again option in notification service

* in notify put never show again as secondary

* Allow customization of whether never show again is shown as secondary or primary

* put never show again inside notification object

* feedback

* feedback
2019-08-08 15:47:15 +02:00
Johannes Rieken 6f1da34c2e debt - decouple webviews from code insets, move things to /browser/-layer, change inset api proposal to push style, re #66418 2019-06-04 12:31:18 +02:00
Alex Dima 9bcd00284b Add remote.contribution 2019-05-22 11:50:49 +02:00
Benjamin Pasero d5e88fa051 files - more cleanup 2019-04-16 14:40:19 +02:00
Benjamin Pasero 71204c12d1
FileService2 - implement createFolder() (#70758)
* files2 - implement createFolder()

* files2 - easier to understand root check
2019-03-19 15:25:47 +01:00
Johannes Rieken 2f89a79efe api proposal, add call hierarchy contrib 2019-03-14 16:14:43 +01:00
Daniel Imms 08f1e188f6 Rename contrib/execution to externalTerminal
Part of #69107
2019-03-04 16:29:20 -08:00
Rob Lourens f7bfa34a67 Fix build - remove nls.mock reference 2019-02-14 22:51:16 +00:00
Johannes Rieken 3283483974 add formatter call, use it for no-formatter-case for now #41882 2019-02-14 11:16:32 +01:00
Benjamin Pasero 06ccc3a515 debt - move integrity service to workbench 2019-02-09 16:49:44 +01:00
Alex Dima 51305a6647 Remove syncExtensions from ResolvedAuthority 2019-02-08 15:24:36 +01:00
Benjamin Pasero 176b65a432 debt - make issue service a contrib to the workbench 2019-02-08 07:47:24 +01:00
Benjamin Pasero d0f043db69 debt - move jsonValidationExtensionPoint out of services 2019-02-08 07:34:50 +01:00
Benjamin Pasero 35523f6c51 debt - workbench/parts => workbench/contrib (update imports and scripts) 2019-02-07 11:48:58 +01:00
isidor c47c001600 move labelService to workbench 2019-01-10 17:21:53 +01:00
Alex Dima 88bb48278d Authority exploration 2018-11-08 21:59:56 +01:00
Johannes Rieken ac643e170c show progress when activating an extension via onCommand:Foo, #59645 2018-10-23 12:04:56 +02:00
Benjamin Pasero db6ebe93f8 remove now obsolete code 2018-10-11 12:56:54 +02:00
Benjamin Pasero 33911f0634 fix #45749 2018-09-24 07:40:35 +02:00
Benjamin Pasero 4d0b3d025e debt week code cleanup
- avoid public modifier
- use Disposable where applicable
- fix some event handler leaks
- clean up some TODO@ben
2018-07-02 10:55:26 +02:00
Peng Lyu 9acfd66aa0 Merge remote-tracking branch 'upstream/master' into rebornix/review 2018-05-18 10:16:19 -07:00
Johannes Rieken 2fbc328d86 outline baby steps 2018-05-08 09:02:08 +02:00
Johannes Rieken 727774d6bc debt - make bulkEdit a service so that we can add create/delete/rename file to it 2018-04-30 12:30:24 +02:00
Peng Lyu cbee2c0ce5 Merge remote-tracking branch 'upstream/master' into rebornix/review 2018-04-24 08:23:32 -07:00
Joao Moreno d6b38359e6 proposed open url api 2018-04-20 13:43:08 +02:00
Peng Lyu 8107cbff1c move comment widget out of editor 2018-04-16 14:45:34 -07:00
Sandeep Somavarapu dc97c9d819 Fix #29078 2018-04-05 17:02:40 +02:00
isidor f2584c364d Bail out from launch for unresolvable variables
fixes #44411
2018-03-07 22:44:41 +01:00
Matt Bierner 267f791f2c Move webview editor and input to own part 2018-03-05 14:07:17 -08:00
Alex Dima 07b2c8015c Move extension points up to /workbench/ (#44281) 2018-02-23 17:38:23 +01:00
Benjamin Pasero 9ab2056393 notifications - remove old message service and adopt new one 2018-02-19 17:57:12 +01:00
Benjamin Pasero 8a2df5e021 notifications - extract choice/confirm service from message service 2018-02-19 08:11:32 +01:00
Benjamin Pasero 9f5688ea1e notifications - introduce theming 2018-02-15 10:35:27 +01:00
Benjamin Pasero c5d4092d68 simple markdown with links support 2018-02-12 13:15:39 +01:00
Sandeep Somavarapu 191596365d Fix #42447 2018-02-05 16:34:15 +01:00
Martin Aeschlimann 8c6cc11f6a [18n] find obsolete resources & add externalExtensionsWithTranslations 2018-01-26 10:01:12 +01:00
Dirk Baeumer 04594c864b Add support for Language Packs 2018-01-25 21:14:34 +01:00
Sandeep Somavarapu 77697cc33e Log output
- Implement Buffered output channel and file output channel in output services
- Allow to register a file output channel
- Register log files output channels
2017-12-13 23:26:55 +01:00
Johannes Rieken f0d7a9f9df show generic tooltip on bubble, #37228 2017-11-02 14:12:52 +01:00
Sandeep Somavarapu f80adf8a85 Fix #35219 2017-10-20 22:08:53 +02:00
Benjamin Pasero b64aa9b199 move parts/views into workbench core land (fixes #29921) 2017-09-06 18:40:20 +02:00
Alex Dima aabeedddea Move extension service code to vs/workbench/services/extensions 2017-08-14 16:57:53 +02:00
Benjamin Pasero 043e24ada0 fix tslint warning 2017-06-26 08:01:27 +02:00
Daniel Ye 2382763f21 2017-06-23. Merged in translations from Transifex. 2017-06-23 23:09:48 -07:00
Alex Dima d467f0ce08 Fixes #29079: Move textMate service code to vs/workbench/services/ 2017-06-20 09:46:41 +02:00
Michel Kaporin 6c0d720cdf Resolves #28336 2017-06-09 14:43:30 +02:00