@theia/workspace 1.65.0-next.6 → 1.65.0

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 (60) hide show
  1. package/lib/browser/index.d.ts +0 -1
  2. package/lib/browser/index.d.ts.map +1 -1
  3. package/lib/browser/index.js +0 -1
  4. package/lib/browser/index.js.map +1 -1
  5. package/lib/browser/workspace-commands.d.ts +1 -1
  6. package/lib/browser/workspace-commands.d.ts.map +1 -1
  7. package/lib/browser/workspace-commands.js +1 -1
  8. package/lib/browser/workspace-commands.js.map +1 -1
  9. package/lib/browser/workspace-commands.spec.js +1 -1
  10. package/lib/browser/workspace-commands.spec.js.map +1 -1
  11. package/lib/browser/workspace-delete-handler.d.ts +1 -1
  12. package/lib/browser/workspace-delete-handler.d.ts.map +1 -1
  13. package/lib/browser/workspace-delete-handler.js +1 -1
  14. package/lib/browser/workspace-delete-handler.js.map +1 -1
  15. package/lib/browser/workspace-frontend-contribution.d.ts +1 -1
  16. package/lib/browser/workspace-frontend-contribution.d.ts.map +1 -1
  17. package/lib/browser/workspace-frontend-contribution.js +1 -1
  18. package/lib/browser/workspace-frontend-contribution.js.map +1 -1
  19. package/lib/browser/workspace-frontend-module.js +2 -2
  20. package/lib/browser/workspace-frontend-module.js.map +1 -1
  21. package/lib/browser/workspace-service.d.ts +7 -6
  22. package/lib/browser/workspace-service.d.ts.map +1 -1
  23. package/lib/browser/workspace-service.js +15 -27
  24. package/lib/browser/workspace-service.js.map +1 -1
  25. package/lib/browser/workspace-trust-service.d.ts +3 -3
  26. package/lib/browser/workspace-trust-service.d.ts.map +1 -1
  27. package/lib/browser/workspace-trust-service.js +4 -4
  28. package/lib/browser/workspace-trust-service.js.map +1 -1
  29. package/lib/common/index.d.ts +1 -0
  30. package/lib/common/index.d.ts.map +1 -1
  31. package/lib/common/index.js +1 -0
  32. package/lib/common/index.js.map +1 -1
  33. package/lib/{browser → common}/workspace-preferences.d.ts +1 -1
  34. package/lib/common/workspace-preferences.d.ts.map +1 -0
  35. package/lib/{browser → common}/workspace-preferences.js +1 -2
  36. package/lib/common/workspace-preferences.js.map +1 -0
  37. package/lib/{browser → common}/workspace-trust-preferences.d.ts +1 -1
  38. package/lib/common/workspace-trust-preferences.d.ts.map +1 -0
  39. package/lib/{browser → common}/workspace-trust-preferences.js +4 -5
  40. package/lib/common/workspace-trust-preferences.js.map +1 -0
  41. package/lib/node/workspace-backend-module.d.ts.map +1 -1
  42. package/lib/node/workspace-backend-module.js +3 -0
  43. package/lib/node/workspace-backend-module.js.map +1 -1
  44. package/package.json +6 -6
  45. package/src/browser/index.ts +0 -1
  46. package/src/browser/workspace-commands.spec.ts +1 -1
  47. package/src/browser/workspace-commands.ts +1 -1
  48. package/src/browser/workspace-delete-handler.ts +1 -1
  49. package/src/browser/workspace-frontend-contribution.ts +1 -1
  50. package/src/browser/workspace-frontend-module.ts +2 -2
  51. package/src/browser/workspace-service.ts +14 -25
  52. package/src/browser/workspace-trust-service.ts +3 -3
  53. package/src/common/index.ts +1 -0
  54. package/src/{browser → common}/workspace-preferences.ts +1 -8
  55. package/src/{browser → common}/workspace-trust-preferences.ts +4 -7
  56. package/src/node/workspace-backend-module.ts +4 -1
  57. package/lib/browser/workspace-preferences.d.ts.map +0 -1
  58. package/lib/browser/workspace-preferences.js.map +0 -1
  59. package/lib/browser/workspace-trust-preferences.d.ts.map +0 -1
  60. package/lib/browser/workspace-trust-preferences.js.map +0 -1
@@ -14,9 +14,7 @@
14
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
- import {
18
- createPreferenceProxy, PreferenceContribution, PreferenceProxy, PreferenceSchema, PreferenceScope, PreferenceService
19
- } from '@theia/core/lib/browser/preferences';
17
+ import { createPreferenceProxy, PreferenceProxy, PreferenceScope, PreferenceService, PreferenceContribution, PreferenceSchema } from '@theia/core/lib/common/preferences';
20
18
  import { nls } from '@theia/core/lib/common/nls';
21
19
  import { interfaces } from '@theia/core/shared/inversify';
22
20
 
@@ -31,23 +29,22 @@ export enum WorkspaceTrustPrompt {
31
29
  }
32
30
 
33
31
  export const workspaceTrustPreferenceSchema: PreferenceSchema = {
34
- type: 'object',
35
32
  scope: PreferenceScope.User,
36
33
  properties: {
37
34
  [WORKSPACE_TRUST_ENABLED]: {
38
35
  description: nls.localize('theia/workspace/trustEnabled', 'Controls whether or not workspace trust is enabled. If disabled, all workspaces are trusted.'),
39
36
  type: 'boolean',
40
- defaultValue: true
37
+ default: true
41
38
  },
42
39
  [WORKSPACE_TRUST_STARTUP_PROMPT]: {
43
40
  description: nls.localizeByDefault('Controls when the startup prompt to trust a workspace is shown.'),
44
41
  enum: Object.values(WorkspaceTrustPrompt),
45
- defaultValue: WorkspaceTrustPrompt.ALWAYS
42
+ default: WorkspaceTrustPrompt.ALWAYS
46
43
  },
47
44
  [WORKSPACE_TRUST_EMPTY_WINDOW]: {
48
45
  description: nls.localize('theia/workspace/trustEmptyWindow', 'Controls whether or not the empty workspace is trusted by default.'),
49
46
  type: 'boolean',
50
- defaultValue: true
47
+ default: true
51
48
  }
52
49
  }
53
50
  };
@@ -16,10 +16,11 @@
16
16
 
17
17
  import { ContainerModule } from '@theia/core/shared/inversify';
18
18
  import { ConnectionHandler, RpcConnectionHandler, bindContributionProvider } from '@theia/core/lib/common';
19
- import { WorkspaceServer, workspacePath, UntitledWorkspaceService, WorkspaceFileService } from '../common';
19
+ import { WorkspaceServer, workspacePath, UntitledWorkspaceService, WorkspaceFileService, bindWorkspacePreferences } from '../common';
20
20
  import { DefaultWorkspaceServer, FileWorkspaceHandlerContribution, WorkspaceCliContribution, WorkspaceHandlerContribution } from './default-workspace-server';
21
21
  import { CliContribution } from '@theia/core/lib/node/cli';
22
22
  import { BackendApplicationContribution } from '@theia/core/lib/node';
23
+ import { bindWorkspaceTrustPreferences } from '../common/workspace-trust-preferences';
23
24
 
24
25
  export default new ContainerModule(bind => {
25
26
  bind(WorkspaceCliContribution).toSelf().inSingletonScope();
@@ -40,4 +41,6 @@ export default new ContainerModule(bind => {
40
41
  ctx.container.get(WorkspaceServer)
41
42
  )
42
43
  ).inSingletonScope();
44
+ bindWorkspacePreferences(bind);
45
+ bindWorkspaceTrustPreferences(bind);
43
46
  });
@@ -1 +0,0 @@
1
- {"version":3,"file":"workspace-preferences.d.ts","sourceRoot":"","sources":["../../src/browser/workspace-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAEH,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAEnB,MAAM,qCAAqC,CAAC;AAG7C,eAAO,MAAM,yBAAyB,EAAE,gBASvC,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACnC,0BAA0B,EAAE,OAAO,CAAC;CACvC;AAED,eAAO,MAAM,+BAA+B,eAA4C,CAAC;AACzF,eAAO,MAAM,oBAAoB,eAAiC,CAAC;AACnE,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AAE3E,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,iBAAiB,EAAE,MAAM,GAAE,gBAA4C,GAAG,oBAAoB,CAErJ;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAQpE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"workspace-preferences.js","sourceRoot":"","sources":["../../src/browser/workspace-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,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;;;AAGhF,qEAM6C;AAC7C,oDAAiD;AAEpC,QAAA,yBAAyB,GAAqB;IACvD,IAAI,EA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OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,eAAO,MAAM,uBAAuB,qCAAqC,CAAC;AAC1E,eAAO,MAAM,8BAA8B,2CAA2C,CAAC;AACvF,eAAO,MAAM,4BAA4B,yCAAyC,CAAC;AAEnF,oBAAY,oBAAoB;IAC5B,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;CAClB;AAED,eAAO,MAAM,8BAA8B,EAAE,gBAoB5C,CAAC;AAEF,MAAM,WAAW,2BAA2B;IACxC,CAAC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IACnC,CAAC,8BAA8B,CAAC,EAAE,oBAAoB,CAAC;IACvD,CAAC,4BAA4B,CAAC,EAAE,OAAO,CAAC;CAC3C;AAED,eAAO,MAAM,oCAAoC,eAAiD,CAAC;AACnG,eAAO,MAAM,yBAAyB,eAAsC,CAAC;AAC7E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AAErF,wBAAgB,+BAA+B,CAAC,WAAW,EAAE,iBAAiB,EAAE,MAAM,GAAE,gBAAiD,GAAG,yBAAyB,CAEpK;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAQzE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"workspace-trust-preferences.js","sourceRoot":"","sources":["../../src/browser/workspace-trust-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,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,qEAE6C;AAC7C,oDAAiD;AAGpC,QAAA,uBAAuB,GAAG,kCAAkC,CAAC;AAC7D,QAAA,8BAA8B,GAAG,wCAAwC,CAAC;AAC1E,Q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