move connection auth token out of web configuration

This commit is contained in:
Sandeep Somavarapu
2019-06-19 12:30:16 +02:00
parent 25405607d9
commit 664dacc8b2
6 changed files with 5 additions and 20 deletions

View File

@@ -14,6 +14,8 @@
<meta id="vscode-workbench-web-configuration" data-settings="{{WORKBENCH_WEB_CONGIGURATION}}">
<!-- Workaround to pass remote user data uri-->
<meta id="vscode-remote-user-data-uri" data-settings="{{REMOTE_USER_DATA_URI}}">
<!-- Workaround to pass remote connection token-->
<meta id="vscode-remote-connection-token" data-settings="{{CONNECTION_AUTH_TOKEN}}">
</head>
<body class="vs-dark" aria-label="">
@@ -22,9 +24,6 @@
<!-- Require our AMD loader -->
<script src="./out/vs/loader.js"></script>
<!-- Window Configuration from Server -->
<script src="./out/vs/web-configuration-init.js"></script>
<!-- Startup via workbench.js -->
<script src="./out/vs/code/browser/workbench/workbench.js"></script>

View File

@@ -3,12 +3,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
//@ts-check
'use strict';
(function () {
// @ts-ignore
require.config({
baseUrl: `${window.location.origin}/out`,
paths: {
@@ -20,9 +18,7 @@
}
});
// @ts-ignore
require(['vs/workbench/workbench.web.api'], function (api) {
// @ts-ignore
api.create(document.body, self.WORKBENCH_WEB_CONFIGURATION);
api.create(document.body, JSON.parse(document.getElementById('vscode-workbench-web-configuration').getAttribute('data-settings')));
});
})();