diff --git a/README.md b/README.md index c858542b..1c6ff37a 100644 --- a/README.md +++ b/README.md @@ -187,6 +187,8 @@ Additionally, 25 packages that include the vscode version of some services (with This library exports a `vscode-ext-host-server` bin to start the remote agent - **Accessibility**: `@codingame/monaco-vscode-accessibility-service-override` - Register accessibility helpers +- **Workspace trust**: `@codingame/monaco-vscode-workspace-trust-service-override` + - Ask user it they trust the current workspace, disable some features if not Usage: ```typescript diff --git a/demo/index.html b/demo/index.html index 4ca576a9..df160c70 100644 --- a/demo/index.html +++ b/demo/index.html @@ -8,6 +8,8 @@
+
+
diff --git a/demo/package-lock.json b/demo/package-lock.json index e1b6ee36..a58128c7 100644 --- a/demo/package-lock.json +++ b/demo/package-lock.json @@ -125,6 +125,7 @@ "@codingame/monaco-vscode-vscode-api-tests-default-extension": "file:../dist/default-extension-vscode-api-tests", "@codingame/monaco-vscode-vscode-colorize-tests-default-extension": "file:../dist/default-extension-vscode-colorize-tests", "@codingame/monaco-vscode-vscode-test-resolver-default-extension": "file:../dist/default-extension-vscode-test-resolver", + "@codingame/monaco-vscode-workspace-trust-service-override": "file:../dist/service-override-workspace-trust", "@codingame/monaco-vscode-xml-default-extension": "file:../dist/default-extension-xml", "@codingame/monaco-vscode-yaml-default-extension": "file:../dist/default-extension-yaml", "ansi-colors": "^4.1.3", @@ -146,6 +147,7 @@ } }, "../dist/default-extension-bat": { + "name": "@codingame/monaco-vscode-bat-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -153,6 +155,7 @@ } }, "../dist/default-extension-clojure": { + "name": "@codingame/monaco-vscode-clojure-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -160,6 +163,7 @@ } }, "../dist/default-extension-coffeescript": { + "name": "@codingame/monaco-vscode-coffeescript-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -167,6 +171,7 @@ } }, "../dist/default-extension-configuration-editing": { + "name": "@codingame/monaco-vscode-configuration-editing-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -174,6 +179,7 @@ } }, "../dist/default-extension-cpp": { + "name": "@codingame/monaco-vscode-cpp-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -181,6 +187,7 @@ } }, "../dist/default-extension-csharp": { + "name": "@codingame/monaco-vscode-csharp-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -188,6 +195,7 @@ } }, "../dist/default-extension-css": { + "name": "@codingame/monaco-vscode-css-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -195,6 +203,7 @@ } }, "../dist/default-extension-css-language-features": { + "name": "@codingame/monaco-vscode-css-language-features-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -202,6 +211,7 @@ } }, "../dist/default-extension-dart": { + "name": "@codingame/monaco-vscode-dart-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -209,6 +219,7 @@ } }, "../dist/default-extension-debug-auto-launch": { + "name": "@codingame/monaco-vscode-debug-auto-launch-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -216,6 +227,7 @@ } }, "../dist/default-extension-debug-server-ready": { + "name": "@codingame/monaco-vscode-debug-server-ready-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -223,6 +235,7 @@ } }, "../dist/default-extension-diff": { + "name": "@codingame/monaco-vscode-diff-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -230,6 +243,7 @@ } }, "../dist/default-extension-docker": { + "name": "@codingame/monaco-vscode-docker-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -237,6 +251,7 @@ } }, "../dist/default-extension-emmet": { + "name": "@codingame/monaco-vscode-emmet-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -244,6 +259,7 @@ } }, "../dist/default-extension-extension-editing": { + "name": "@codingame/monaco-vscode-extension-editing-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -251,6 +267,7 @@ } }, "../dist/default-extension-fsharp": { + "name": "@codingame/monaco-vscode-fsharp-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -258,6 +275,7 @@ } }, "../dist/default-extension-git": { + "name": "@codingame/monaco-vscode-git-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -265,6 +283,7 @@ } }, "../dist/default-extension-git-base": { + "name": "@codingame/monaco-vscode-git-base-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -272,6 +291,7 @@ } }, "../dist/default-extension-github": { + "name": "@codingame/monaco-vscode-github-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -279,6 +299,7 @@ } }, "../dist/default-extension-github-authentication": { + "name": "@codingame/monaco-vscode-github-authentication-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -286,6 +307,7 @@ } }, "../dist/default-extension-go": { + "name": "@codingame/monaco-vscode-go-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -293,6 +315,7 @@ } }, "../dist/default-extension-groovy": { + "name": "@codingame/monaco-vscode-groovy-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -300,6 +323,7 @@ } }, "../dist/default-extension-grunt": { + "name": "@codingame/monaco-vscode-grunt-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -307,6 +331,7 @@ } }, "../dist/default-extension-gulp": { + "name": "@codingame/monaco-vscode-gulp-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -314,6 +339,7 @@ } }, "../dist/default-extension-handlebars": { + "name": "@codingame/monaco-vscode-handlebars-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -321,6 +347,7 @@ } }, "../dist/default-extension-hlsl": { + "name": "@codingame/monaco-vscode-hlsl-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -328,6 +355,7 @@ } }, "../dist/default-extension-html": { + "name": "@codingame/monaco-vscode-html-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -335,6 +363,7 @@ } }, "../dist/default-extension-html-language-features": { + "name": "@codingame/monaco-vscode-html-language-features-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -342,6 +371,7 @@ } }, "../dist/default-extension-ini": { + "name": "@codingame/monaco-vscode-ini-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -349,6 +379,7 @@ } }, "../dist/default-extension-ipynb": { + "name": "@codingame/monaco-vscode-ipynb-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -356,6 +387,7 @@ } }, "../dist/default-extension-jake": { + "name": "@codingame/monaco-vscode-jake-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -363,6 +395,7 @@ } }, "../dist/default-extension-java": { + "name": "@codingame/monaco-vscode-java-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -370,6 +403,7 @@ } }, "../dist/default-extension-javascript": { + "name": "@codingame/monaco-vscode-javascript-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -377,6 +411,7 @@ } }, "../dist/default-extension-json": { + "name": "@codingame/monaco-vscode-json-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -384,6 +419,7 @@ } }, "../dist/default-extension-json-language-features": { + "name": "@codingame/monaco-vscode-json-language-features-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -391,6 +427,7 @@ } }, "../dist/default-extension-julia": { + "name": "@codingame/monaco-vscode-julia-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -398,6 +435,7 @@ } }, "../dist/default-extension-latex": { + "name": "@codingame/monaco-vscode-latex-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -405,6 +443,7 @@ } }, "../dist/default-extension-less": { + "name": "@codingame/monaco-vscode-less-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -412,6 +451,7 @@ } }, "../dist/default-extension-log": { + "name": "@codingame/monaco-vscode-log-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -419,6 +459,7 @@ } }, "../dist/default-extension-lua": { + "name": "@codingame/monaco-vscode-lua-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -426,6 +467,7 @@ } }, "../dist/default-extension-make": { + "name": "@codingame/monaco-vscode-make-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -433,6 +475,7 @@ } }, "../dist/default-extension-markdown-basics": { + "name": "@codingame/monaco-vscode-markdown-basics-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -440,6 +483,7 @@ } }, "../dist/default-extension-markdown-language-features": { + "name": "@codingame/monaco-vscode-markdown-language-features-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -447,6 +491,7 @@ } }, "../dist/default-extension-markdown-math": { + "name": "@codingame/monaco-vscode-markdown-math-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -454,6 +499,7 @@ } }, "../dist/default-extension-media-preview": { + "name": "@codingame/monaco-vscode-media-preview-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -461,6 +507,7 @@ } }, "../dist/default-extension-merge-conflict": { + "name": "@codingame/monaco-vscode-merge-conflict-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -468,6 +515,7 @@ } }, "../dist/default-extension-microsoft-authentication": { + "name": "@codingame/monaco-vscode-microsoft-authentication-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -475,6 +523,7 @@ } }, "../dist/default-extension-notebook-renderers": { + "name": "@codingame/monaco-vscode-notebook-renderers-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -482,6 +531,7 @@ } }, "../dist/default-extension-npm": { + "name": "@codingame/monaco-vscode-npm-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -489,6 +539,7 @@ } }, "../dist/default-extension-objective-c": { + "name": "@codingame/monaco-vscode-objective-c-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -496,6 +547,7 @@ } }, "../dist/default-extension-perl": { + "name": "@codingame/monaco-vscode-perl-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -503,6 +555,7 @@ } }, "../dist/default-extension-php": { + "name": "@codingame/monaco-vscode-php-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -510,6 +563,7 @@ } }, "../dist/default-extension-php-language-features": { + "name": "@codingame/monaco-vscode-php-language-features-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -517,6 +571,7 @@ } }, "../dist/default-extension-powershell": { + "name": "@codingame/monaco-vscode-powershell-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -524,6 +579,7 @@ } }, "../dist/default-extension-pug": { + "name": "@codingame/monaco-vscode-pug-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -531,6 +587,7 @@ } }, "../dist/default-extension-python": { + "name": "@codingame/monaco-vscode-python-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -538,6 +595,7 @@ } }, "../dist/default-extension-r": { + "name": "@codingame/monaco-vscode-r-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -545,6 +603,7 @@ } }, "../dist/default-extension-razor": { + "name": "@codingame/monaco-vscode-razor-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -552,6 +611,7 @@ } }, "../dist/default-extension-references-view": { + "name": "@codingame/monaco-vscode-references-view-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -559,6 +619,7 @@ } }, "../dist/default-extension-restructuredtext": { + "name": "@codingame/monaco-vscode-restructuredtext-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -566,6 +627,7 @@ } }, "../dist/default-extension-ruby": { + "name": "@codingame/monaco-vscode-ruby-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -573,6 +635,7 @@ } }, "../dist/default-extension-rust": { + "name": "@codingame/monaco-vscode-rust-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -580,6 +643,7 @@ } }, "../dist/default-extension-scss": { + "name": "@codingame/monaco-vscode-scss-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -587,6 +651,7 @@ } }, "../dist/default-extension-search-result": { + "name": "@codingame/monaco-vscode-search-result-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -594,6 +659,7 @@ } }, "../dist/default-extension-shaderlab": { + "name": "@codingame/monaco-vscode-shaderlab-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -601,6 +667,7 @@ } }, "../dist/default-extension-shellscript": { + "name": "@codingame/monaco-vscode-shellscript-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -608,6 +675,7 @@ } }, "../dist/default-extension-simple-browser": { + "name": "@codingame/monaco-vscode-simple-browser-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -615,6 +683,7 @@ } }, "../dist/default-extension-sql": { + "name": "@codingame/monaco-vscode-sql-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -622,6 +691,7 @@ } }, "../dist/default-extension-swift": { + "name": "@codingame/monaco-vscode-swift-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -629,6 +699,7 @@ } }, "../dist/default-extension-theme-abyss": { + "name": "@codingame/monaco-vscode-theme-abyss-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -636,6 +707,7 @@ } }, "../dist/default-extension-theme-defaults": { + "name": "@codingame/monaco-vscode-theme-defaults-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -643,6 +715,7 @@ } }, "../dist/default-extension-theme-kimbie-dark": { + "name": "@codingame/monaco-vscode-theme-kimbie-dark-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -650,6 +723,7 @@ } }, "../dist/default-extension-theme-monokai": { + "name": "@codingame/monaco-vscode-theme-monokai-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -657,6 +731,7 @@ } }, "../dist/default-extension-theme-monokai-dimmed": { + "name": "@codingame/monaco-vscode-theme-monokai-dimmed-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -664,6 +739,7 @@ } }, "../dist/default-extension-theme-quietlight": { + "name": "@codingame/monaco-vscode-theme-quietlight-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -671,6 +747,7 @@ } }, "../dist/default-extension-theme-red": { + "name": "@codingame/monaco-vscode-theme-red-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -678,6 +755,7 @@ } }, "../dist/default-extension-theme-seti": { + "name": "@codingame/monaco-vscode-theme-seti-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -685,6 +763,7 @@ } }, "../dist/default-extension-theme-solarized-dark": { + "name": "@codingame/monaco-vscode-theme-solarized-dark-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -692,6 +771,7 @@ } }, "../dist/default-extension-theme-solarized-light": { + "name": "@codingame/monaco-vscode-theme-solarized-light-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -699,6 +779,7 @@ } }, "../dist/default-extension-theme-tomorrow-night-blue": { + "name": "@codingame/monaco-vscode-theme-tomorrow-night-blue-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -706,6 +787,7 @@ } }, "../dist/default-extension-typescript-basics": { + "name": "@codingame/monaco-vscode-typescript-basics-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -713,6 +795,7 @@ } }, "../dist/default-extension-typescript-language-features": { + "name": "@codingame/monaco-vscode-typescript-language-features-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -720,6 +803,7 @@ } }, "../dist/default-extension-vb": { + "name": "@codingame/monaco-vscode-vb-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -727,6 +811,7 @@ } }, "../dist/default-extension-vscode-api-tests": { + "name": "@codingame/monaco-vscode-vscode-api-tests-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -734,6 +819,7 @@ } }, "../dist/default-extension-vscode-colorize-tests": { + "name": "@codingame/monaco-vscode-vscode-colorize-tests-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -741,6 +827,7 @@ } }, "../dist/default-extension-vscode-test-resolver": { + "name": "@codingame/monaco-vscode-vscode-test-resolver-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -748,6 +835,7 @@ } }, "../dist/default-extension-xml": { + "name": "@codingame/monaco-vscode-xml-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -755,6 +843,7 @@ } }, "../dist/default-extension-yaml": { + "name": "@codingame/monaco-vscode-yaml-default-extension", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -773,6 +862,7 @@ } }, "../dist/rollup-vsix-plugin": { + "name": "@codingame/monaco-vscode-rollup-vsix-plugin", "version": "0.0.0-semantic-release", "dev": true, "license": "MIT", @@ -783,6 +873,7 @@ } }, "../dist/server": { + "name": "@codingame/monaco-vscode-server", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -809,6 +900,7 @@ } }, "../dist/service-override-accessibility": { + "name": "@codingame/monaco-vscode-accessibility-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -817,6 +909,7 @@ } }, "../dist/service-override-audio-cue": { + "name": "@codingame/monaco-vscode-audio-cue-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -825,6 +918,7 @@ } }, "../dist/service-override-bulk-edit": { + "name": "@codingame/monaco-vscode-bulk-edit-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -833,6 +927,7 @@ } }, "../dist/service-override-configuration": { + "name": "@codingame/monaco-vscode-configuration-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -841,6 +936,7 @@ } }, "../dist/service-override-debug": { + "name": "@codingame/monaco-vscode-debug-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -849,6 +945,7 @@ } }, "../dist/service-override-dialogs": { + "name": "@codingame/monaco-vscode-dialogs-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -857,6 +954,7 @@ } }, "../dist/service-override-editor": { + "name": "@codingame/monaco-vscode-editor-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -865,6 +963,7 @@ } }, "../dist/service-override-environment": { + "name": "@codingame/monaco-vscode-environment-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -873,6 +972,7 @@ } }, "../dist/service-override-extensions": { + "name": "@codingame/monaco-vscode-extensions-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -881,6 +981,7 @@ } }, "../dist/service-override-files": { + "name": "@codingame/monaco-vscode-files-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -889,6 +990,7 @@ } }, "../dist/service-override-keybindings": { + "name": "@codingame/monaco-vscode-keybindings-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -897,6 +999,7 @@ } }, "../dist/service-override-language-detection-worker": { + "name": "@codingame/monaco-vscode-language-detection-worker-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -906,6 +1009,7 @@ } }, "../dist/service-override-languages": { + "name": "@codingame/monaco-vscode-languages-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -914,6 +1018,7 @@ } }, "../dist/service-override-layout": { + "name": "@codingame/monaco-vscode-layout-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -922,6 +1027,7 @@ } }, "../dist/service-override-lifecycle": { + "name": "@codingame/monaco-vscode-lifecycle-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -930,6 +1036,7 @@ } }, "../dist/service-override-markers": { + "name": "@codingame/monaco-vscode-markers-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -938,6 +1045,7 @@ } }, "../dist/service-override-model": { + "name": "@codingame/monaco-vscode-model-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -946,6 +1054,7 @@ } }, "../dist/service-override-notifications": { + "name": "@codingame/monaco-vscode-notifications-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -954,6 +1063,7 @@ } }, "../dist/service-override-output": { + "name": "@codingame/monaco-vscode-output-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -962,6 +1072,7 @@ } }, "../dist/service-override-preferences": { + "name": "@codingame/monaco-vscode-preferences-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -970,6 +1081,7 @@ } }, "../dist/service-override-quickaccess": { + "name": "@codingame/monaco-vscode-quickaccess-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -978,6 +1090,7 @@ } }, "../dist/service-override-remote-agent": { + "name": "@codingame/monaco-vscode-remote-agent-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -986,6 +1099,7 @@ } }, "../dist/service-override-search": { + "name": "@codingame/monaco-vscode-search-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -994,6 +1108,7 @@ } }, "../dist/service-override-snippets": { + "name": "@codingame/monaco-vscode-snippets-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -1002,6 +1117,7 @@ } }, "../dist/service-override-storage": { + "name": "@codingame/monaco-vscode-storage-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -1010,6 +1126,7 @@ } }, "../dist/service-override-terminal": { + "name": "@codingame/monaco-vscode-terminal-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -1025,6 +1142,7 @@ } }, "../dist/service-override-textmate": { + "name": "@codingame/monaco-vscode-textmate-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -1035,6 +1153,7 @@ } }, "../dist/service-override-theme": { + "name": "@codingame/monaco-vscode-theme-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -1043,6 +1162,16 @@ } }, "../dist/service-override-views": { + "name": "@codingame/monaco-vscode-views-service-override", + "version": "0.0.0-semantic-release", + "license": "MIT", + "dependencies": { + "monaco-editor": "0.43.0", + "vscode": "npm:@codingame/monaco-vscode-api@^0.0.0-semantic-release" + } + }, + "../dist/service-override-workspace-trust": { + "name": "@codingame/monaco-vscode-workspace-trust-service-override", "version": "0.0.0-semantic-release", "license": "MIT", "dependencies": { @@ -1523,6 +1652,10 @@ "resolved": "../dist/default-extension-vscode-test-resolver", "link": true }, + "node_modules/@codingame/monaco-vscode-workspace-trust-service-override": { + "resolved": "../dist/service-override-workspace-trust", + "link": true + }, "node_modules/@codingame/monaco-vscode-xml-default-extension": { "resolved": "../dist/default-extension-xml", "link": true diff --git a/demo/package.json b/demo/package.json index c5d6634e..cff39417 100644 --- a/demo/package.json +++ b/demo/package.json @@ -30,6 +30,7 @@ ], "dependencies": { "@codingame/monaco-vscode-accessibility-service-override": "file:../dist/service-override-accessibility", + "@codingame/monaco-vscode-workspace-trust-service-override": "file:../dist/service-override-workspace-trust", "@codingame/monaco-vscode-audio-cue-service-override": "file:../dist/service-override-audio-cue", "@codingame/monaco-vscode-bat-default-extension": "file:../dist/default-extension-bat", "@codingame/monaco-vscode-bulk-edit-service-override": "file:../dist/service-override-bulk-edit", diff --git a/demo/src/setup.ts b/demo/src/setup.ts index 329b398c..192297ea 100644 --- a/demo/src/setup.ts +++ b/demo/src/setup.ts @@ -31,6 +31,7 @@ import getExtensionServiceOverride from '@codingame/monaco-vscode-extensions-ser import getRemoteAgentServiceOverride from '@codingame/monaco-vscode-remote-agent-service-override' import getEnvironmentServiceOverride from '@codingame/monaco-vscode-environment-service-override' import getLifecycleServiceOverride from '@codingame/monaco-vscode-lifecycle-service-override' +import getWorkspaceTrustOverride from '@codingame/monaco-vscode-workspace-trust-service-override' import EditorWorker from 'monaco-editor/esm/vs/editor/editor.worker.js?worker' import TextMateWorker from '@codingame/monaco-vscode-textmate-service-override/worker?worker' import OutputLinkComputerWorker from '@codingame/monaco-vscode-output-service-override/worker?worker' @@ -96,8 +97,10 @@ await initializeMonacoService({ ...getRemoteAgentServiceOverride(connectionToken), ...getLifecycleServiceOverride(), ...getEnvironmentServiceOverride({ - remoteAuthority - }) + remoteAuthority, + enableWorkspaceTrust: true + }), + ...getWorkspaceTrustOverride() }) StandaloneServices.get(ILogService).setLevel(LogLevel.Off) @@ -108,6 +111,8 @@ export async function clearStorage (): Promise { await initializeVscodeExtensions() for (const { part, element } of [ + { part: Parts.TITLEBAR_PART, element: '#titleBar' }, + { part: Parts.BANNER_PART, element: '#banner' }, { part: Parts.SIDEBAR_PART, element: '#sidebar' }, { part: Parts.ACTIVITYBAR_PART, element: '#activityBar' }, { part: Parts.PANEL_PART, element: '#panel' }, diff --git a/demo/src/style.css b/demo/src/style.css index bfd83a6f..f4889862 100644 --- a/demo/src/style.css +++ b/demo/src/style.css @@ -37,3 +37,7 @@ body { width: 100%; height: 55vh; } + +#titleBar { + position: relative; +} \ No newline at end of file diff --git a/demo/vite.config.ts b/demo/vite.config.ts index 84a34391..2355ffaf 100644 --- a/demo/vite.config.ts +++ b/demo/vite.config.ts @@ -56,6 +56,7 @@ export default defineConfig({ '@codingame/monaco-vscode-preferences-service-override', '@codingame/monaco-vscode-snippets-service-override', '@codingame/monaco-vscode-files-service-override', '@codingame/monaco-vscode-output-service-override', '@codingame/monaco-vscode-terminal-service-override', '@codingame/monaco-vscode-search-service-override', '@codingame/monaco-vscode-markers-service-override', '@codingame/monaco-vscode-accessibility-service-override', '@codingame/monaco-vscode-storage-service-override', '@codingame/monaco-vscode-language-detection-worker-service-override', '@codingame/monaco-vscode-remote-agent-service-override', '@codingame/monaco-vscode-environment-service-override', '@codingame/monaco-vscode-lifecycle-service-override', + '@codingame/monaco-vscode-workspace-trust-service-override', '@codingame/monaco-vscode-clojure-default-extension', '@codingame/monaco-vscode-coffeescript-default-extension', '@codingame/monaco-vscode-cpp-default-extension', '@codingame/monaco-vscode-csharp-default-extension', '@codingame/monaco-vscode-css-default-extension', '@codingame/monaco-vscode-diff-default-extension', '@codingame/monaco-vscode-fsharp-default-extension', '@codingame/monaco-vscode-go-default-extension', '@codingame/monaco-vscode-groovy-default-extension', '@codingame/monaco-vscode-html-default-extension', '@codingame/monaco-vscode-java-default-extension', '@codingame/monaco-vscode-javascript-default-extension', diff --git a/rollup/rollup.config.ts b/rollup/rollup.config.ts index 33c75060..4ed62731 100644 --- a/rollup/rollup.config.ts +++ b/rollup/rollup.config.ts @@ -202,12 +202,8 @@ function isCallPure (file: string, functionName: string, node: recast.types.name const firstParamCode = recast.print(firstParam).code if (firstParamCode.includes('DEBUG_CONFIGURE_COMMAND_ID') || - firstParamCode.includes('workbench.action.closePanel') || firstParamCode.includes('workbench.action.toggleMaximizedPanel') || - firstParamCode.includes('OpenEditorsView') || - firstParamCode.includes('openWorkspaceSettings') || - firstParamCode.includes('openRemoteSettings') || - firstParamCode.includes('openApplicationSettings')) { + firstParamCode.includes('OpenEditorsView')) { return true } } diff --git a/src/missing-services.ts b/src/missing-services.ts index 90c2ea58..e104ac91 100644 --- a/src/missing-services.ts +++ b/src/missing-services.ts @@ -170,6 +170,8 @@ import { ResourceSet } from 'vs/base/common/map' import { IEditorGroupView } from 'vs/workbench/browser/parts/editor/editor' import { IMessage, ISignService } from 'vs/platform/sign/common/sign' import { BrowserHostService } from 'vs/workbench/services/host/browser/browserHostService' +import { IBannerService } from 'vs/workbench/services/banner/browser/bannerService' +import { ITitleService } from 'vs/workbench/services/title/common/titleService' import { unsupported } from './tools' class NullLoggerService extends AbstractLoggerService { @@ -396,6 +398,23 @@ export class EmptyEditorGroupsService implements IEditorGroupsService { registerSingleton(IEditorGroupsService, EmptyEditorGroupsService, InstantiationType.Eager) +registerSingleton(IBannerService, class BannerService implements IBannerService { + _serviceBrand: undefined + focus (): void {} + focusNextAction (): void {} + focusPreviousAction (): void {} + hide (): void {} + show (): void {} +}, InstantiationType.Eager) + +registerSingleton(ITitleService, class TitleService implements ITitleService { + _serviceBrand: undefined + onMenubarVisibilityChange = Event.None + isCommandCenterVisible = false + onDidChangeCommandCenterVisibility = Event.None + updateProperties (): void {} +}, InstantiationType.Eager) + registerSingleton(IWorkingCopyFileService, WorkingCopyFileService, InstantiationType.Eager) registerSingleton(IPathService, BrowserPathService, InstantiationType.Delayed) diff --git a/src/service-override/quickaccess.ts b/src/service-override/quickaccess.ts index 7f1b3b42..046c786c 100644 --- a/src/service-override/quickaccess.ts +++ b/src/service-override/quickaccess.ts @@ -20,7 +20,7 @@ import { ICodeEditor } from 'vs/editor/browser/editorBrowser' let isKeybindingConfigurationVisible = () => { return false } -let shouldUseGlobalPicker = (_activeCodeEditor: ICodeEditor | null, _activeCodeEditorStandalone: boolean) => { +let shouldUseGlobalPicker = (_activeCodeEditor: ICodeEditor, _activeCodeEditorStandalone: boolean) => { return false } @@ -52,7 +52,7 @@ class DelegateQuickInputService implements IQuickInputService { private get activeService (): IQuickInputService { const activeCodeEditor = StandaloneServices.get(ICodeEditorService).getFocusedCodeEditor() - if (shouldUseGlobalPicker(activeCodeEditor, activeCodeEditor instanceof StandaloneCodeEditor)) { + if (activeCodeEditor == null || shouldUseGlobalPicker(activeCodeEditor, activeCodeEditor instanceof StandaloneCodeEditor)) { return this.workbenchQuickInputService } diff --git a/src/service-override/views.ts b/src/service-override/views.ts index fa3ad49d..8adceff7 100644 --- a/src/service-override/views.ts +++ b/src/service-override/views.ts @@ -88,6 +88,10 @@ import { IStorageService } from 'vs/platform/storage/common/storage' import { IThemeService } from 'vs/platform/theme/common/themeService' import { ConfirmResult } from 'vs/platform/dialogs/common/dialogs' import { ILayoutService } from 'vs/platform/layout/browser/layoutService' +import { BannerPart } from 'vs/workbench/browser/parts/banner/bannerPart' +import { IBannerService } from 'vs/workbench/services/banner/browser/bannerService' +import { ITitleService } from 'vs/workbench/services/title/common/titleService' +import { TitlebarPart } from 'vs/workbench/browser/parts/titlebar/titlebarPart' import { MonacoDelegateEditorGroupsService, MonacoEditorService, OpenEditor } from './tools/editor' import getBulkEditServiceOverride from './bulkEdit' import getLayoutServiceOverride, { LayoutService } from './layout' @@ -569,6 +573,8 @@ registerServiceInitializePostParticipant(async (accessor) => { // force service instantiation accessor.get(IStatusbarService) + accessor.get(IBannerService) + accessor.get(ITitleService) paneCompositePartService.getPaneComposites(ViewContainerLocation.Panel) const layoutService = accessor.get(ILayoutService) as LayoutService @@ -579,6 +585,8 @@ registerServiceInitializePostParticipant(async (accessor) => { // Create Parts for (const { id, role, classes, options } of [ + { id: Parts.TITLEBAR_PART, role: 'none', classes: ['titlebar'] }, + { id: Parts.BANNER_PART, role: 'banner', classes: ['banner'] }, { id: Parts.ACTIVITYBAR_PART, role: 'none', classes: ['activitybar', 'left'] }, { id: Parts.SIDEBAR_PART, role: 'none', classes: ['sidebar', 'left'] }, { id: Parts.EDITOR_PART, role: 'main', classes: ['editor'], options: { restorePreviousState: false } }, @@ -625,6 +633,8 @@ export default function getServiceOverride (openEditorFallback?: OpenEditor, _we [ICodeEditorService.toString()]: new SyncDescriptor(CodeEditorService, [], true), [ITextEditorService.toString()]: new SyncDescriptor(TextEditorService, [], false), [IEditorGroupsService.toString()]: new SyncDescriptor(MonacoEditorPart, [], false), + [ITitleService.toString()]: new SyncDescriptor(TitlebarPart, [], false), + [IBannerService.toString()]: new SyncDescriptor(BannerPart, [], false), [IStatusbarService.toString()]: new SyncDescriptor(StatusbarPart, [], false), [IEditorDropService.toString()]: new SyncDescriptor(EditorDropService, [], true), [IEditorService.toString()]: new SyncDescriptor(MonacoEditorService, [openEditorFallback, isEditorPartVisible], false), diff --git a/src/service-override/workspaceTrust.ts b/src/service-override/workspaceTrust.ts new file mode 100644 index 00000000..76c792e9 --- /dev/null +++ b/src/service-override/workspaceTrust.ts @@ -0,0 +1,14 @@ +import '../missing-services' +import { IEditorOverrideServices } from 'vs/editor/standalone/browser/standaloneServices' +import { SyncDescriptor } from 'vs/platform/instantiation/common/descriptors' +import { IWorkspaceTrustEnablementService, IWorkspaceTrustManagementService, IWorkspaceTrustRequestService } from 'vs/platform/workspace/common/workspaceTrust' +import { WorkspaceTrustEnablementService, WorkspaceTrustManagementService, WorkspaceTrustRequestService } from 'vs/workbench/services/workspaces/common/workspaceTrust' +import 'vs/workbench/contrib/workspace/browser/workspace.contribution' + +export default function getServiceOverride (): IEditorOverrideServices { + return { + [IWorkspaceTrustEnablementService.toString()]: new SyncDescriptor(WorkspaceTrustEnablementService), + [IWorkspaceTrustManagementService.toString()]: new SyncDescriptor(WorkspaceTrustManagementService), + [IWorkspaceTrustRequestService.toString()]: new SyncDescriptor(WorkspaceTrustRequestService) + } +} diff --git a/src/services.ts b/src/services.ts index 46651692..378289c5 100644 --- a/src/services.ts +++ b/src/services.ts @@ -185,6 +185,9 @@ export { IActivityService, IBadge } from 'vs/workbench/services/activity/common/ export { IHoverService } from 'vs/workbench/services/hover/browser/hover' export { IExplorerService } from 'vs/workbench/contrib/files/browser/files' export { IStatusbarService } from 'vs/workbench/services/statusbar/browser/statusbar' +export { ITitleService } from 'vs/workbench/services/title/common/titleService' +export { IBannerService } from 'vs/workbench/services/banner/browser/bannerService' +export { IWorkspaceTrustManagementService, IWorkspaceTrustUriInfo, IWorkspaceTrustRequestService, IWorkspaceTrustEnablementService } from 'vs/platform/workspace/common/workspaceTrust' export { IAction,