mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 14:01:38 +01:00
move connection auth token out of web configuration
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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')));
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user