@codingame/monaco-vscode-api 1.83.7 → 1.83.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lifecycle.js +3 -4
- package/monaco-editor-treemending.patch +955 -955
- package/monaco.d.ts +7 -2
- package/monaco.js +12 -1
- package/package.json +8 -1
- package/service-override/environment.js +6 -6
- package/service-override/files.js +29 -5
- package/service-override/keybindings.js +10 -4
- package/service-override/layout.js +6 -7
- package/service-override/output.js +8 -6
- package/service-override/tools/editor.d.ts +1 -1
- package/services.d.ts +3 -2
- package/services.js +4 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +6 -3
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +7 -2
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +56 -2
- package/vscode/src/vs/workbench/common/editor.d.ts +17 -1
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +53 -2
- package/vscode/src/vs/workbench/services/workspaces/browser/workspaces.js +7 -1
- package/workbench.js +38 -0
package/workbench.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import './missing-services.js';
|
|
2
|
+
import { UNKNOWN_EMPTY_WINDOW_WORKSPACE } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
3
|
+
import { isWorkspaceToOpen, isFolderToOpen } from './vscode/src/vs/platform/window/common/window.js';
|
|
4
|
+
import { getWorkspaceIdentifier as getWorkspaceIdentifier$1, getSingleFolderWorkspaceIdentifier } from './vscode/src/vs/workbench/services/workspaces/browser/workspaces.js';
|
|
5
|
+
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
6
|
+
import { toLocalISOString } from './vscode/src/vs/base/common/date.js';
|
|
7
|
+
let workbenchContainer = document.body;
|
|
8
|
+
let workbenchConstructionOptions = {};
|
|
9
|
+
let workspaceIdentifier = UNKNOWN_EMPTY_WINDOW_WORKSPACE;
|
|
10
|
+
const logsPath = URI.file(toLocalISOString(new Date()).replace(/-|:|\.\d+Z$/g, '')).with({ scheme: 'vscode-log' });
|
|
11
|
+
function getWorkbenchContainer() {
|
|
12
|
+
return workbenchContainer;
|
|
13
|
+
}
|
|
14
|
+
function getWorkbenchConstructionOptions() {
|
|
15
|
+
return workbenchConstructionOptions;
|
|
16
|
+
}
|
|
17
|
+
function getWorkspaceIdentifier() {
|
|
18
|
+
return workspaceIdentifier;
|
|
19
|
+
}
|
|
20
|
+
function resolveWorkspace(configuration) {
|
|
21
|
+
let workspace;
|
|
22
|
+
if (configuration.workspaceProvider != null) {
|
|
23
|
+
workspace = configuration.workspaceProvider.workspace;
|
|
24
|
+
}
|
|
25
|
+
if (workspace != null && isWorkspaceToOpen(workspace)) {
|
|
26
|
+
return getWorkspaceIdentifier$1(workspace.workspaceUri);
|
|
27
|
+
}
|
|
28
|
+
if (workspace != null && isFolderToOpen(workspace)) {
|
|
29
|
+
return getSingleFolderWorkspaceIdentifier(workspace.folderUri);
|
|
30
|
+
}
|
|
31
|
+
return UNKNOWN_EMPTY_WINDOW_WORKSPACE;
|
|
32
|
+
}
|
|
33
|
+
function initialize(container, options) {
|
|
34
|
+
workbenchContainer = container;
|
|
35
|
+
workbenchConstructionOptions = options;
|
|
36
|
+
workspaceIdentifier = resolveWorkspace(options);
|
|
37
|
+
}
|
|
38
|
+
export { getWorkbenchConstructionOptions, getWorkbenchContainer, getWorkspaceIdentifier, initialize, logsPath };
|