@theia/workspace 1.67.0-next.56 → 1.67.0-next.86
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/lib/browser/canonical-uri-service.d.ts +12 -0
- package/lib/browser/canonical-uri-service.d.ts.map +1 -0
- package/lib/browser/canonical-uri-service.js +55 -0
- package/lib/browser/canonical-uri-service.js.map +1 -0
- package/lib/browser/diff-service.d.ts +11 -0
- package/lib/browser/diff-service.d.ts.map +1 -0
- package/lib/browser/diff-service.js +69 -0
- package/lib/browser/diff-service.js.map +1 -0
- package/lib/browser/index.d.ts +7 -0
- package/lib/browser/index.d.ts.map +1 -0
- package/lib/browser/index.js +25 -0
- package/lib/browser/index.js.map +1 -0
- package/lib/browser/quick-open-workspace.d.ts +18 -0
- package/lib/browser/quick-open-workspace.d.ts.map +1 -0
- package/lib/browser/quick-open-workspace.js +112 -0
- package/lib/browser/quick-open-workspace.js.map +1 -0
- package/lib/browser/untitled-workspace-exit-dialog.d.ts +20 -0
- package/lib/browser/untitled-workspace-exit-dialog.d.ts.map +1 -0
- package/lib/browser/untitled-workspace-exit-dialog.js +64 -0
- package/lib/browser/untitled-workspace-exit-dialog.js.map +1 -0
- package/lib/browser/workspace-breadcrumbs-contribution.d.ts +11 -0
- package/lib/browser/workspace-breadcrumbs-contribution.d.ts.map +1 -0
- package/lib/browser/workspace-breadcrumbs-contribution.js +59 -0
- package/lib/browser/workspace-breadcrumbs-contribution.js.map +1 -0
- package/lib/browser/workspace-commands.d.ts +116 -0
- package/lib/browser/workspace-commands.d.ts.map +1 -0
- package/lib/browser/workspace-commands.js +568 -0
- package/lib/browser/workspace-commands.js.map +1 -0
- package/lib/browser/workspace-commands.spec.d.ts +2 -0
- package/lib/browser/workspace-commands.spec.d.ts.map +1 -0
- package/lib/browser/workspace-commands.spec.js +128 -0
- package/lib/browser/workspace-commands.spec.js.map +1 -0
- package/lib/browser/workspace-compare-handler.d.ts +27 -0
- package/lib/browser/workspace-compare-handler.d.ts.map +1 -0
- package/lib/browser/workspace-compare-handler.js +59 -0
- package/lib/browser/workspace-compare-handler.js.map +1 -0
- package/lib/browser/workspace-delete-handler.d.ts +76 -0
- package/lib/browser/workspace-delete-handler.d.ts.map +1 -0
- package/lib/browser/workspace-delete-handler.js +207 -0
- package/lib/browser/workspace-delete-handler.js.map +1 -0
- package/lib/browser/workspace-duplicate-handler.d.ts +31 -0
- package/lib/browser/workspace-duplicate-handler.d.ts.map +1 -0
- package/lib/browser/workspace-duplicate-handler.js +79 -0
- package/lib/browser/workspace-duplicate-handler.js.map +1 -0
- package/lib/browser/workspace-frontend-contribution.d.ts +111 -0
- package/lib/browser/workspace-frontend-contribution.d.ts.map +1 -0
- package/lib/browser/workspace-frontend-contribution.js +538 -0
- package/lib/browser/workspace-frontend-contribution.js.map +1 -0
- package/lib/browser/workspace-frontend-module.d.ts +4 -0
- package/lib/browser/workspace-frontend-module.d.ts.map +1 -0
- package/lib/browser/workspace-frontend-module.js +93 -0
- package/lib/browser/workspace-frontend-module.js.map +1 -0
- package/lib/browser/workspace-input-dialog.d.ts +20 -0
- package/lib/browser/workspace-input-dialog.d.ts.map +1 -0
- package/lib/browser/workspace-input-dialog.js +64 -0
- package/lib/browser/workspace-input-dialog.js.map +1 -0
- package/lib/browser/workspace-schema-updater.d.ts +34 -0
- package/lib/browser/workspace-schema-updater.d.ts.map +1 -0
- package/lib/browser/workspace-schema-updater.js +147 -0
- package/lib/browser/workspace-schema-updater.js.map +1 -0
- package/lib/browser/workspace-service.d.ts +201 -0
- package/lib/browser/workspace-service.d.ts.map +1 -0
- package/lib/browser/workspace-service.js +758 -0
- package/lib/browser/workspace-service.js.map +1 -0
- package/lib/browser/workspace-storage-service.d.ts +16 -0
- package/lib/browser/workspace-storage-service.d.ts.map +1 -0
- package/lib/browser/workspace-storage-service.js +73 -0
- package/lib/browser/workspace-storage-service.js.map +1 -0
- package/lib/browser/workspace-trust-service.d.ts +30 -0
- package/lib/browser/workspace-trust-service.d.ts.map +1 -0
- package/lib/browser/workspace-trust-service.js +153 -0
- package/lib/browser/workspace-trust-service.js.map +1 -0
- package/lib/browser/workspace-uri-contribution.d.ts +21 -0
- package/lib/browser/workspace-uri-contribution.d.ts.map +1 -0
- package/lib/browser/workspace-uri-contribution.js +106 -0
- package/lib/browser/workspace-uri-contribution.js.map +1 -0
- package/lib/browser/workspace-uri-contribution.spec.d.ts +2 -0
- package/lib/browser/workspace-uri-contribution.spec.d.ts.map +1 -0
- package/lib/browser/workspace-uri-contribution.spec.js +170 -0
- package/lib/browser/workspace-uri-contribution.spec.js.map +1 -0
- package/lib/browser/workspace-user-working-directory-provider.d.ts +13 -0
- package/lib/browser/workspace-user-working-directory-provider.d.ts.map +1 -0
- package/lib/browser/workspace-user-working-directory-provider.js +55 -0
- package/lib/browser/workspace-user-working-directory-provider.js.map +1 -0
- package/lib/browser/workspace-utils.d.ts +16 -0
- package/lib/browser/workspace-utils.d.ts.map +1 -0
- package/lib/browser/workspace-utils.js +47 -0
- package/lib/browser/workspace-utils.js.map +1 -0
- package/lib/browser/workspace-variable-contribution.d.ts +24 -0
- package/lib/browser/workspace-variable-contribution.d.ts.map +1 -0
- package/lib/browser/workspace-variable-contribution.js +231 -0
- package/lib/browser/workspace-variable-contribution.js.map +1 -0
- package/lib/browser/workspace-window-title-updater.d.ts +8 -0
- package/lib/browser/workspace-window-title-updater.d.ts.map +1 -0
- package/lib/browser/workspace-window-title-updater.js +50 -0
- package/lib/browser/workspace-window-title-updater.js.map +1 -0
- package/lib/browser-only/browser-only-workspace-server.d.ts +13 -0
- package/lib/browser-only/browser-only-workspace-server.d.ts.map +1 -0
- package/lib/browser-only/browser-only-workspace-server.js +73 -0
- package/lib/browser-only/browser-only-workspace-server.js.map +1 -0
- package/lib/browser-only/workspace-frontend-only-module.d.ts +4 -0
- package/lib/browser-only/workspace-frontend-only-module.d.ts.map +1 -0
- package/lib/browser-only/workspace-frontend-only-module.js +30 -0
- package/lib/browser-only/workspace-frontend-only-module.js.map +1 -0
- package/lib/common/index.d.ts +5 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +23 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/test/mock-workspace-server.d.ts +8 -0
- package/lib/common/test/mock-workspace-server.d.ts.map +1 -0
- package/lib/common/test/mock-workspace-server.js +31 -0
- package/lib/common/test/mock-workspace-server.js.map +1 -0
- package/lib/common/untitled-workspace-service.d.ts +9 -0
- package/lib/common/untitled-workspace-service.d.ts.map +1 -0
- package/lib/common/untitled-workspace-service.js +53 -0
- package/lib/common/untitled-workspace-service.js.map +1 -0
- package/lib/common/workspace-file-service.d.ts +27 -0
- package/lib/common/workspace-file-service.d.ts.map +1 -0
- package/lib/common/workspace-file-service.js +67 -0
- package/lib/common/workspace-file-service.js.map +1 -0
- package/lib/common/workspace-preferences.d.ts +12 -0
- package/lib/common/workspace-preferences.d.ts.map +1 -0
- package/lib/common/workspace-preferences.js +46 -0
- package/lib/common/workspace-preferences.js.map +1 -0
- package/lib/common/workspace-protocol.d.ts +27 -0
- package/lib/common/workspace-protocol.d.ts.map +1 -0
- package/lib/common/workspace-protocol.js +24 -0
- package/lib/common/workspace-protocol.js.map +1 -0
- package/lib/common/workspace-trust-preferences.d.ts +22 -0
- package/lib/common/workspace-trust-preferences.d.ts.map +1 -0
- package/lib/common/workspace-trust-preferences.js +66 -0
- package/lib/common/workspace-trust-preferences.js.map +1 -0
- package/lib/node/default-workspace-server.d.ts +78 -0
- package/lib/node/default-workspace-server.d.ts.map +1 -0
- package/lib/node/default-workspace-server.js +265 -0
- package/lib/node/default-workspace-server.js.map +1 -0
- package/lib/node/default-workspace-server.spec.d.ts +2 -0
- package/lib/node/default-workspace-server.spec.d.ts.map +1 -0
- package/lib/node/default-workspace-server.spec.js +96 -0
- package/lib/node/default-workspace-server.spec.js.map +1 -0
- package/lib/node/index.d.ts +3 -0
- package/lib/node/index.d.ts.map +1 -0
- package/lib/node/index.js +21 -0
- package/lib/node/index.js.map +1 -0
- package/lib/node/workspace-backend-module.d.ts +4 -0
- package/lib/node/workspace-backend-module.d.ts.map +1 -0
- package/lib/node/workspace-backend-module.js +40 -0
- package/lib/node/workspace-backend-module.js.map +1 -0
- package/package.json +5 -5
- package/src/browser/workspace-service.ts +5 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2017 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
19
|
+
const common_1 = require("@theia/core/lib/common");
|
|
20
|
+
const common_2 = require("../common");
|
|
21
|
+
const default_workspace_server_1 = require("./default-workspace-server");
|
|
22
|
+
const cli_1 = require("@theia/core/lib/node/cli");
|
|
23
|
+
const node_1 = require("@theia/core/lib/node");
|
|
24
|
+
const workspace_trust_preferences_1 = require("../common/workspace-trust-preferences");
|
|
25
|
+
exports.default = new inversify_1.ContainerModule(bind => {
|
|
26
|
+
bind(default_workspace_server_1.WorkspaceCliContribution).toSelf().inSingletonScope();
|
|
27
|
+
bind(cli_1.CliContribution).toService(default_workspace_server_1.WorkspaceCliContribution);
|
|
28
|
+
bind(default_workspace_server_1.DefaultWorkspaceServer).toSelf().inSingletonScope();
|
|
29
|
+
bind(common_2.WorkspaceServer).toService(default_workspace_server_1.DefaultWorkspaceServer);
|
|
30
|
+
bind(node_1.BackendApplicationContribution).toService(common_2.WorkspaceServer);
|
|
31
|
+
bind(common_2.UntitledWorkspaceService).toSelf().inSingletonScope();
|
|
32
|
+
bind(common_2.WorkspaceFileService).toSelf().inSingletonScope();
|
|
33
|
+
(0, common_1.bindContributionProvider)(bind, default_workspace_server_1.WorkspaceHandlerContribution);
|
|
34
|
+
bind(default_workspace_server_1.FileWorkspaceHandlerContribution).toSelf().inSingletonScope();
|
|
35
|
+
bind(default_workspace_server_1.WorkspaceHandlerContribution).toService(default_workspace_server_1.FileWorkspaceHandlerContribution);
|
|
36
|
+
bind(common_1.ConnectionHandler).toDynamicValue(ctx => new common_1.RpcConnectionHandler(common_2.workspacePath, () => ctx.container.get(common_2.WorkspaceServer))).inSingletonScope();
|
|
37
|
+
(0, common_2.bindWorkspacePreferences)(bind);
|
|
38
|
+
(0, workspace_trust_preferences_1.bindWorkspaceTrustPreferences)(bind);
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=workspace-backend-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-backend-module.js","sourceRoot":"","sources":["../../src/node/workspace-backend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,4DAA+D;AAC/D,mDAA2G;AAC3G,sCAAqI;AACrI,yEAA8J;AAC9J,kDAA2D;AAC3D,+CAAsE;AACtE,uFAAsF;AAEtF,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,mD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5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.67.0-next.
|
|
7
|
-
"@theia/filesystem": "1.67.0-next.
|
|
8
|
-
"@theia/variable-resolver": "1.67.0-next.
|
|
6
|
+
"@theia/core": "1.67.0-next.86+03f92ff1d",
|
|
7
|
+
"@theia/filesystem": "1.67.0-next.86+03f92ff1d",
|
|
8
|
+
"@theia/variable-resolver": "1.67.0-next.86+03f92ff1d",
|
|
9
9
|
"jsonc-parser": "^2.2.0",
|
|
10
10
|
"tslib": "^2.6.2",
|
|
11
11
|
"valid-filename": "^2.0.1"
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"nyc": {
|
|
53
53
|
"extends": "../../configs/nyc.json"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "03f92ff1d97dcb199de39b48e60a53535de22808"
|
|
56
56
|
}
|
|
@@ -596,6 +596,11 @@ export class WorkspaceService implements FrontendApplicationContribution, Worksp
|
|
|
596
596
|
const workspaceData: WorkspaceData = { folders: [], settings: {} };
|
|
597
597
|
if (!this.saved) {
|
|
598
598
|
for (const p of Object.keys(this.schemaService.getJSONSchema(PreferenceScope.Workspace).properties!)) {
|
|
599
|
+
// The goal is to ensure that workspace-scoped preferences are preserved in the new workspace.
|
|
600
|
+
// Preferences valid in folder scope will take effect in their folders without being copied.
|
|
601
|
+
if (this.schemaService.isValidInScope(p, PreferenceScope.Folder)) {
|
|
602
|
+
continue;
|
|
603
|
+
}
|
|
599
604
|
const preferences = this.preferenceImpl.inspect(p);
|
|
600
605
|
if (preferences && preferences.workspaceValue) {
|
|
601
606
|
workspaceData.settings![p] = preferences.workspaceValue;
|