@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.
Files changed (150) hide show
  1. package/lib/browser/canonical-uri-service.d.ts +12 -0
  2. package/lib/browser/canonical-uri-service.d.ts.map +1 -0
  3. package/lib/browser/canonical-uri-service.js +55 -0
  4. package/lib/browser/canonical-uri-service.js.map +1 -0
  5. package/lib/browser/diff-service.d.ts +11 -0
  6. package/lib/browser/diff-service.d.ts.map +1 -0
  7. package/lib/browser/diff-service.js +69 -0
  8. package/lib/browser/diff-service.js.map +1 -0
  9. package/lib/browser/index.d.ts +7 -0
  10. package/lib/browser/index.d.ts.map +1 -0
  11. package/lib/browser/index.js +25 -0
  12. package/lib/browser/index.js.map +1 -0
  13. package/lib/browser/quick-open-workspace.d.ts +18 -0
  14. package/lib/browser/quick-open-workspace.d.ts.map +1 -0
  15. package/lib/browser/quick-open-workspace.js +112 -0
  16. package/lib/browser/quick-open-workspace.js.map +1 -0
  17. package/lib/browser/untitled-workspace-exit-dialog.d.ts +20 -0
  18. package/lib/browser/untitled-workspace-exit-dialog.d.ts.map +1 -0
  19. package/lib/browser/untitled-workspace-exit-dialog.js +64 -0
  20. package/lib/browser/untitled-workspace-exit-dialog.js.map +1 -0
  21. package/lib/browser/workspace-breadcrumbs-contribution.d.ts +11 -0
  22. package/lib/browser/workspace-breadcrumbs-contribution.d.ts.map +1 -0
  23. package/lib/browser/workspace-breadcrumbs-contribution.js +59 -0
  24. package/lib/browser/workspace-breadcrumbs-contribution.js.map +1 -0
  25. package/lib/browser/workspace-commands.d.ts +116 -0
  26. package/lib/browser/workspace-commands.d.ts.map +1 -0
  27. package/lib/browser/workspace-commands.js +568 -0
  28. package/lib/browser/workspace-commands.js.map +1 -0
  29. package/lib/browser/workspace-commands.spec.d.ts +2 -0
  30. package/lib/browser/workspace-commands.spec.d.ts.map +1 -0
  31. package/lib/browser/workspace-commands.spec.js +128 -0
  32. package/lib/browser/workspace-commands.spec.js.map +1 -0
  33. package/lib/browser/workspace-compare-handler.d.ts +27 -0
  34. package/lib/browser/workspace-compare-handler.d.ts.map +1 -0
  35. package/lib/browser/workspace-compare-handler.js +59 -0
  36. package/lib/browser/workspace-compare-handler.js.map +1 -0
  37. package/lib/browser/workspace-delete-handler.d.ts +76 -0
  38. package/lib/browser/workspace-delete-handler.d.ts.map +1 -0
  39. package/lib/browser/workspace-delete-handler.js +207 -0
  40. package/lib/browser/workspace-delete-handler.js.map +1 -0
  41. package/lib/browser/workspace-duplicate-handler.d.ts +31 -0
  42. package/lib/browser/workspace-duplicate-handler.d.ts.map +1 -0
  43. package/lib/browser/workspace-duplicate-handler.js +79 -0
  44. package/lib/browser/workspace-duplicate-handler.js.map +1 -0
  45. package/lib/browser/workspace-frontend-contribution.d.ts +111 -0
  46. package/lib/browser/workspace-frontend-contribution.d.ts.map +1 -0
  47. package/lib/browser/workspace-frontend-contribution.js +538 -0
  48. package/lib/browser/workspace-frontend-contribution.js.map +1 -0
  49. package/lib/browser/workspace-frontend-module.d.ts +4 -0
  50. package/lib/browser/workspace-frontend-module.d.ts.map +1 -0
  51. package/lib/browser/workspace-frontend-module.js +93 -0
  52. package/lib/browser/workspace-frontend-module.js.map +1 -0
  53. package/lib/browser/workspace-input-dialog.d.ts +20 -0
  54. package/lib/browser/workspace-input-dialog.d.ts.map +1 -0
  55. package/lib/browser/workspace-input-dialog.js +64 -0
  56. package/lib/browser/workspace-input-dialog.js.map +1 -0
  57. package/lib/browser/workspace-schema-updater.d.ts +34 -0
  58. package/lib/browser/workspace-schema-updater.d.ts.map +1 -0
  59. package/lib/browser/workspace-schema-updater.js +147 -0
  60. package/lib/browser/workspace-schema-updater.js.map +1 -0
  61. package/lib/browser/workspace-service.d.ts +201 -0
  62. package/lib/browser/workspace-service.d.ts.map +1 -0
  63. package/lib/browser/workspace-service.js +758 -0
  64. package/lib/browser/workspace-service.js.map +1 -0
  65. package/lib/browser/workspace-storage-service.d.ts +16 -0
  66. package/lib/browser/workspace-storage-service.d.ts.map +1 -0
  67. package/lib/browser/workspace-storage-service.js +73 -0
  68. package/lib/browser/workspace-storage-service.js.map +1 -0
  69. package/lib/browser/workspace-trust-service.d.ts +30 -0
  70. package/lib/browser/workspace-trust-service.d.ts.map +1 -0
  71. package/lib/browser/workspace-trust-service.js +153 -0
  72. package/lib/browser/workspace-trust-service.js.map +1 -0
  73. package/lib/browser/workspace-uri-contribution.d.ts +21 -0
  74. package/lib/browser/workspace-uri-contribution.d.ts.map +1 -0
  75. package/lib/browser/workspace-uri-contribution.js +106 -0
  76. package/lib/browser/workspace-uri-contribution.js.map +1 -0
  77. package/lib/browser/workspace-uri-contribution.spec.d.ts +2 -0
  78. package/lib/browser/workspace-uri-contribution.spec.d.ts.map +1 -0
  79. package/lib/browser/workspace-uri-contribution.spec.js +170 -0
  80. package/lib/browser/workspace-uri-contribution.spec.js.map +1 -0
  81. package/lib/browser/workspace-user-working-directory-provider.d.ts +13 -0
  82. package/lib/browser/workspace-user-working-directory-provider.d.ts.map +1 -0
  83. package/lib/browser/workspace-user-working-directory-provider.js +55 -0
  84. package/lib/browser/workspace-user-working-directory-provider.js.map +1 -0
  85. package/lib/browser/workspace-utils.d.ts +16 -0
  86. package/lib/browser/workspace-utils.d.ts.map +1 -0
  87. package/lib/browser/workspace-utils.js +47 -0
  88. package/lib/browser/workspace-utils.js.map +1 -0
  89. package/lib/browser/workspace-variable-contribution.d.ts +24 -0
  90. package/lib/browser/workspace-variable-contribution.d.ts.map +1 -0
  91. package/lib/browser/workspace-variable-contribution.js +231 -0
  92. package/lib/browser/workspace-variable-contribution.js.map +1 -0
  93. package/lib/browser/workspace-window-title-updater.d.ts +8 -0
  94. package/lib/browser/workspace-window-title-updater.d.ts.map +1 -0
  95. package/lib/browser/workspace-window-title-updater.js +50 -0
  96. package/lib/browser/workspace-window-title-updater.js.map +1 -0
  97. package/lib/browser-only/browser-only-workspace-server.d.ts +13 -0
  98. package/lib/browser-only/browser-only-workspace-server.d.ts.map +1 -0
  99. package/lib/browser-only/browser-only-workspace-server.js +73 -0
  100. package/lib/browser-only/browser-only-workspace-server.js.map +1 -0
  101. package/lib/browser-only/workspace-frontend-only-module.d.ts +4 -0
  102. package/lib/browser-only/workspace-frontend-only-module.d.ts.map +1 -0
  103. package/lib/browser-only/workspace-frontend-only-module.js +30 -0
  104. package/lib/browser-only/workspace-frontend-only-module.js.map +1 -0
  105. package/lib/common/index.d.ts +5 -0
  106. package/lib/common/index.d.ts.map +1 -0
  107. package/lib/common/index.js +23 -0
  108. package/lib/common/index.js.map +1 -0
  109. package/lib/common/test/mock-workspace-server.d.ts +8 -0
  110. package/lib/common/test/mock-workspace-server.d.ts.map +1 -0
  111. package/lib/common/test/mock-workspace-server.js +31 -0
  112. package/lib/common/test/mock-workspace-server.js.map +1 -0
  113. package/lib/common/untitled-workspace-service.d.ts +9 -0
  114. package/lib/common/untitled-workspace-service.d.ts.map +1 -0
  115. package/lib/common/untitled-workspace-service.js +53 -0
  116. package/lib/common/untitled-workspace-service.js.map +1 -0
  117. package/lib/common/workspace-file-service.d.ts +27 -0
  118. package/lib/common/workspace-file-service.d.ts.map +1 -0
  119. package/lib/common/workspace-file-service.js +67 -0
  120. package/lib/common/workspace-file-service.js.map +1 -0
  121. package/lib/common/workspace-preferences.d.ts +12 -0
  122. package/lib/common/workspace-preferences.d.ts.map +1 -0
  123. package/lib/common/workspace-preferences.js +46 -0
  124. package/lib/common/workspace-preferences.js.map +1 -0
  125. package/lib/common/workspace-protocol.d.ts +27 -0
  126. package/lib/common/workspace-protocol.d.ts.map +1 -0
  127. package/lib/common/workspace-protocol.js +24 -0
  128. package/lib/common/workspace-protocol.js.map +1 -0
  129. package/lib/common/workspace-trust-preferences.d.ts +22 -0
  130. package/lib/common/workspace-trust-preferences.d.ts.map +1 -0
  131. package/lib/common/workspace-trust-preferences.js +66 -0
  132. package/lib/common/workspace-trust-preferences.js.map +1 -0
  133. package/lib/node/default-workspace-server.d.ts +78 -0
  134. package/lib/node/default-workspace-server.d.ts.map +1 -0
  135. package/lib/node/default-workspace-server.js +265 -0
  136. package/lib/node/default-workspace-server.js.map +1 -0
  137. package/lib/node/default-workspace-server.spec.d.ts +2 -0
  138. package/lib/node/default-workspace-server.spec.d.ts.map +1 -0
  139. package/lib/node/default-workspace-server.spec.js +96 -0
  140. package/lib/node/default-workspace-server.spec.js.map +1 -0
  141. package/lib/node/index.d.ts +3 -0
  142. package/lib/node/index.d.ts.map +1 -0
  143. package/lib/node/index.js +21 -0
  144. package/lib/node/index.js.map +1 -0
  145. package/lib/node/workspace-backend-module.d.ts +4 -0
  146. package/lib/node/workspace-backend-module.d.ts.map +1 -0
  147. package/lib/node/workspace-backend-module.js +40 -0
  148. package/lib/node/workspace-backend-module.js.map +1 -0
  149. package/package.json +5 -5
  150. 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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d",
4
4
  "description": "Theia - Workspace Extension",
5
5
  "dependencies": {
6
- "@theia/core": "1.67.0-next.56+d8f18cc386c",
7
- "@theia/filesystem": "1.67.0-next.56+d8f18cc386c",
8
- "@theia/variable-resolver": "1.67.0-next.56+d8f18cc386c",
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": "d8f18cc386c45a736cd193d42eab02c8f64c6b10"
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;