@@ -418,7 +418,7 @@ index d0f6e6b18a..1966fd297d 100644
418
418
-
419
419
diff --git a/src/vs/server/browser/client.ts b/src/vs/server/browser/client.ts
420
420
new file mode 100644
421
- index 0000000000..8e7c5af184
421
+ index 0000000000..3a62205b38
422
422
--- /dev/null
423
423
+++ b/src/vs/server/browser/client.ts
424
424
@@ -0,0 +1,162 @@
@@ -532,12 +532,12 @@ index 0000000000..8e7c5af184
532
532
+ if (!window.isSecureContext) {
533
533
+ (services.get(INotificationService) as INotificationService).notify({
534
534
+ severity: Severity.Warning,
535
- + message: " code-server is being accessed over an insecure domain. Some functionality may not work as expected." ,
535
+ + message: ' code-server is being accessed over an insecure domain. Some functionality may not work as expected.' ,
536
536
+ actions: {
537
537
+ primary: [{
538
- + id: " understand" ,
539
- + label: " I understand" ,
540
- + tooltip: "" ,
538
+ + id: ' understand' ,
539
+ + label: ' I understand' ,
540
+ + tooltip: '' ,
541
541
+ class: undefined,
542
542
+ enabled: true,
543
543
+ checked: true,
@@ -679,165 +679,6 @@ index 0000000000..0d2e93edae
679
679
+ this.disposed = true;
680
680
+ }
681
681
+ }
682
- diff --git a/src/vs/server/browser/workbench-build.html b/src/vs/server/browser/workbench-build.html
683
- new file mode 100644
684
- index 0000000000..50f48cd74c
685
- --- /dev/null
686
- +++ b/src/vs/server/browser/workbench-build.html
687
- @@ -0,0 +1,92 @@
688
- + <!-- Copyright (C) Microsoft Corporation. All rights reserved. -->
689
- + <!DOCTYPE html>
690
- + <html>
691
- + <head>
692
- + <meta charset="utf-8" />
693
- +
694
- + <!-- Disable pinch zooming -->
695
- + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
696
- +
697
- + <!-- Workbench Configuration -->
698
- + <meta id="vscode-workbench-web-configuration" data-settings="{{WORKBENCH_WEB_CONFIGURATION}}">
699
- +
700
- + <!-- Workarounds/Hacks (remote user data uri) -->
701
- + <meta id="vscode-remote-user-data-uri" data-settings="{{REMOTE_USER_DATA_URI}}">
702
- + <!-- NOTE@coder: Added the commit for use in caching, the product for the
703
- + extensions gallery URL, and nls for language support. -->
704
- + <meta id="vscode-remote-commit" data-settings="{{COMMIT}}">
705
- + <meta id="vscode-remote-product-configuration" data-settings="{{PRODUCT_CONFIGURATION}}">
706
- + <meta id="vscode-remote-nls-configuration" data-settings="{{NLS_CONFIGURATION}}">
707
- +
708
- + <!-- Workbench Icon/Manifest/CSS -->
709
- + <link rel="icon" href="../static-{{COMMIT}}/src/browser/media/favicon.ico" type="image/x-icon" />
710
- + <link rel="manifest" href="../static-{{COMMIT}}/src/browser/media/manifest.json" crossorigin="use-credentials">
711
- + <link data-name="vs/workbench/workbench.web.api" rel="stylesheet" href="./static-{{COMMIT}}/out/vs/workbench/workbench.web.api.css">
712
- + <link rel="apple-touch-icon" href="./static-{{COMMIT}}/src/browser/media/code-server.png" />
713
- + <meta name="apple-mobile-web-app-capable" content="yes">
714
- +
715
- + <!-- Prefetch to avoid waterfall -->
716
- + <link rel="prefetch" href="./static-{{COMMIT}}/node_modules/semver-umd/lib/semver-umd.js">
717
- + </head>
718
- +
719
- + <body aria-label="">
720
- + </body>
721
- +
722
- + <!-- Startup (do not modify order of script tags!) -->
723
- + <!-- NOTE:coder: Modified to work against the current path and use the commit for caching. -->
724
- + <script>
725
- + // NOTE: Changes to inline scripts require update of content security policy
726
- + const basePath = window.location.pathname.replace(/\/+$/, '');
727
- + const base = window.location.origin + basePath;
728
- + const el = document.getElementById('vscode-remote-commit');
729
- + const commit = el ? el.getAttribute('data-settings') : "";
730
- + const staticBase = base + '/static-' + commit;
731
- + let nlsConfig;
732
- + try {
733
- + nlsConfig = JSON.parse(document.getElementById('vscode-remote-nls-configuration').getAttribute('data-settings'));
734
- + if (nlsConfig._resolvedLanguagePackCoreLocation) {
735
- + const bundles = Object.create(null);
736
- + nlsConfig.loadBundle = (bundle, language, cb) => {
737
- + let result = bundles[bundle];
738
- + if (result) {
739
- + return cb(undefined, result);
740
- + }
741
- + // FIXME: Only works if path separators are /.
742
- + const path = nlsConfig._resolvedLanguagePackCoreLocation
743
- + + '/' + bundle.replace(/\//g, '!') + '.nls.json';
744
- + fetch(`${base}/resource/?path=${encodeURIComponent(path)}`)
745
- + .then((response) => response.json())
746
- + .then((json) => {
747
- + bundles[bundle] = json;
748
- + cb(undefined, json);
749
- + })
750
- + .catch(cb);
751
- + };
752
- + }
753
- + } catch (error) { /* Probably fine. */ }
754
- + self.require = {
755
- + baseUrl: `${staticBase}/out`,
756
- + paths: {
757
- + 'vscode-textmate': `${staticBase}/node_modules/vscode-textmate/release/main`,
758
- + 'onigasm-umd': `${staticBase}/node_modules/onigasm-umd/release/main`,
759
- + 'xterm': `${staticBase}/node_modules/xterm/lib/xterm.js`,
760
- + 'xterm-addon-search': `${staticBase}/node_modules/xterm-addon-search/lib/xterm-addon-search.js`,
761
- + 'xterm-addon-web-links': `${staticBase}/node_modules/xterm-addon-web-links/lib/xterm-addon-web-links.js`,
762
- + 'xterm-addon-webgl': `${staticBase}/node_modules/xterm-addon-webgl/lib/xterm-addon-webgl.js`,
763
- + 'semver-umd': `${staticBase}/node_modules/semver-umd/lib/semver-umd.js`,
764
- + },
765
- + 'vs/nls': nlsConfig,
766
- + };
767
- + </script>
768
- + <script src="./static-{{COMMIT}}/out/vs/loader.js"></script>
769
- + <script src="./static-{{COMMIT}}/out/vs/workbench/workbench.web.api.nls.js"></script>
770
- + <script src="./static-{{COMMIT}}/out/vs/workbench/workbench.web.api.js"></script>
771
- + <!-- TODO@coder: This errors with multiple anonymous define calls (one is
772
- + workbench.js and one is semver-umd.js). For now use the same method found in
773
- + workbench-dev.html. Appears related to the timing of the script load events. -->
774
- + <!-- <script src="./static-{{COMMIT}}/out/vs/workbench/workbench.js"></script> -->
775
- + <script>
776
- + // NOTE: Changes to inline scripts require update of content security policy
777
- + require(['vs/code/browser/workbench/workbench'], function() {});
778
- + </script>
779
- + </html>
780
- diff --git a/src/vs/server/browser/workbench.html b/src/vs/server/browser/workbench.html
781
- new file mode 100644
782
- index 0000000000..47d76f388b
783
- --- /dev/null
784
- +++ b/src/vs/server/browser/workbench.html
785
- @@ -0,0 +1,55 @@
786
- + <!-- Copyright (C) Microsoft Corporation. All rights reserved. -->
787
- + <!DOCTYPE html>
788
- + <html>
789
- + <head>
790
- + <meta charset="utf-8" />
791
- +
792
- + <!-- Disable pinch zooming -->
793
- + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
794
- +
795
- + <!-- Workbench Configuration -->
796
- + <meta id="vscode-workbench-web-configuration" data-settings="{{WORKBENCH_WEB_CONFIGURATION}}">
797
- +
798
- + <!-- Workarounds/Hacks (remote user data uri) -->
799
- + <meta id="vscode-remote-user-data-uri" data-settings="{{REMOTE_USER_DATA_URI}}">
800
- + <!-- NOTE@coder: Added the commit for use in caching, the product for the
801
- + extensions gallery URL, and nls for language support. -->
802
- + <meta id="vscode-remote-commit" data-settings="{{COMMIT}}">
803
- + <meta id="vscode-remote-product-configuration" data-settings="{{PRODUCT_CONFIGURATION}}">
804
- + <meta id="vscode-remote-nls-configuration" data-settings="{{NLS_CONFIGURATION}}">
805
- +
806
- + <!-- Workbench Icon/Manifest/CSS -->
807
- + <link rel="icon" href="../static/src/browser/media/favicon.ico" type="image/x-icon" />
808
- + <link rel="manifest" href="../static/src/browser/media/manifest.json" crossorigin="use-credentials">
809
- + <link rel="apple-touch-icon" href="./static/src/browser/media/code-server.png" />
810
- + <meta name="apple-mobile-web-app-capable" content="yes">
811
- + </head>
812
- +
813
- + <body aria-label="">
814
- + </body>
815
- +
816
- + <!-- Startup (do not modify order of script tags!) -->
817
- + <script>
818
- + const basePath = window.location.pathname.replace(/\/+$/, '');
819
- + const base = window.location.origin + basePath;
820
- + const el = document.getElementById('vscode-remote-commit');
821
- + const commit = el ? el.getAttribute('data-settings') : "";
822
- + const staticBase = base + '/static-' + commit;
823
- + self.require = {
824
- + baseUrl: `${staticBase}/out`,
825
- + paths: {
826
- + 'vscode-textmate': `${staticBase}/node_modules/vscode-textmate/release/main`,
827
- + 'onigasm-umd': `${staticBase}/node_modules/onigasm-umd/release/main`,
828
- + 'xterm': `${staticBase}/node_modules/xterm/lib/xterm.js`,
829
- + 'xterm-addon-search': `${staticBase}/node_modules/xterm-addon-search/lib/xterm-addon-search.js`,
830
- + 'xterm-addon-web-links': `${staticBase}/node_modules/xterm-addon-web-links/lib/xterm-addon-web-links.js`,
831
- + 'xterm-addon-webgl': `${staticBase}/node_modules/xterm-addon-webgl/lib/xterm-addon-webgl.js`,
832
- + 'semver-umd': `${staticBase}/node_modules/semver-umd/lib/semver-umd.js`,
833
- + },
834
- + };
835
- + </script>
836
- + <script src="./static/out/vs/loader.js"></script>
837
- + <script>
838
- + require(['vs/code/browser/workbench/workbench'], function() {});
839
- + </script>
840
- + </html>
841
682
diff --git a/src/vs/server/browser/worker.ts b/src/vs/server/browser/worker.ts
842
683
new file mode 100644
843
684
index 0000000000..0ba93cc070
0 commit comments