@theia/workspace 1.74.0-next.8 → 1.74.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.
@@ -33,8 +33,8 @@ let UntitledWorkspaceExitDialog = UntitledWorkspaceExitDialog_1 = class Untitled
33
33
  this.contentNode.appendChild(messageNode);
34
34
  this.dontSaveButton = this.createButton(core_1.nls.localizeByDefault("Don't Save" /* UntitledWorkspaceExitDialog.Values["Don't Save"] */));
35
35
  this.dontSaveButton.classList.add('secondary');
36
- this.controlPanel.appendChild(this.dontSaveButton);
37
36
  this.appendCloseButton(browser_1.Dialog.CANCEL);
37
+ this.controlPanel.appendChild(this.dontSaveButton);
38
38
  this.appendAcceptButton(core_1.nls.localizeByDefault("Save" /* UntitledWorkspaceExitDialog.Values.Save */));
39
39
  }
40
40
  onAfterAttach(msg) {
@@ -1 +1 @@
1
- {"version":3,"file":"untitled-workspace-exit-dialog.js","sourceRoot":"","sources":["../../src/browser/untitled-workspace-exit-dialog.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;;;;;AAEhF,sCAAkC;AAClC,4DAAsD;AACtD,qDAAuF;AAEvF,IAAa,2BAA2B,mCAAxC,MAAa,2BAA4B,SAAQ,wBAAmD;IAIhG,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,YACyB,KAAkB;QAEvC,KAAK,CAAC,KAAK,CAAC,CAAC;QATP,WAAM,GAAwC,QAAQ,CAAC;QAU7D,MAAM,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAClD,WAAW,CAAC,WAAW,GAAG,UAAG,CAAC,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EN,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C"}
1
+ {"version":3,"file":"untitled-workspace-exit-dialog.js","sourceRoot":"","sources":["../../src/browser/untitled-workspace-exit-dialog.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;;;;;AAEhF,sCAAkC;AAClC,4DAAsD;AACtD,qDAAuF;AAEvF,IAAa,2BAA2B,mCAAxC,MAAa,2BAA4B,SAAQ,wBAAmD;IAIhG,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,YACyB,KAAkB;QAEvC,KAAK,CAAC,KAAK,CAAC,CAAC;QATP,WAAM,GAAwC,QAAQ,CAAC;QAU7D,MAAM,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAClD,WAAW,CAAC,WAAW,GAAG,UAAG,CAAC,iBAAiB,CAAC,mDAAmD,CAAC,CAAC;QACrG,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QAC1C,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,YAAY,CAAC,UAAG,CAAC,iBAAiB,qEAAkD,CAAC,CAAC;QACjH,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAC/C,IAAI,CAAC,iBAAiB,CAAC,gBAAM,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACnD,IAAI,CAAC,kBAAkB,CAAC,UAAG,CAAC,iBAAiB,sDAAyC,CAAC,CAAC;IAC5F,CAAC;IAEkB,aAAa,CAAC,GAAY;QACzC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QACzB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAEkB,eAAe,CAAsC,OAAoB,EAAE,GAAG,oBAAyB;QACtH,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAES,QAAQ;QACd,IAAI,CAAC,MAAM,sEAAmD,CAAC;QAC/D,IAAI,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAES,MAAM;QACZ,IAAI,CAAC,MAAM,uDAA0C,CAAC;QACtD,IAAI,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;CACJ,CAAA;AAxCY,kEAA2B;sCAA3B,2BAA2B;IAS/B,mBAAA,IAAA,kBAAM,EAAC,qBAAW,CAAC,CAAA;6CAAQ,qBAAW;GATlC,2BAA2B,CAwCvC;AAED,WAAiB,2BAA2B;IAKvC,CAAC;AAEN,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C"}
@@ -0,0 +1,8 @@
1
+ import { FrontendApplicationContribution } from '@theia/core/lib/browser';
2
+ import '@theia/core/lib/electron-common/electron-api';
3
+ import { WorkspaceService } from '../browser/workspace-service';
4
+ export declare class ElectronWorkspaceContribution implements FrontendApplicationContribution {
5
+ protected readonly workspaceService: WorkspaceService;
6
+ onStart(): void;
7
+ }
8
+ //# sourceMappingURL=electron-workspace-contribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"electron-workspace-contribution.d.ts","sourceRoot":"","sources":["../../src/electron-browser/electron-workspace-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,8CAA8C,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,qBACa,6BAA8B,YAAW,+BAA+B;IACvD,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAEhF,OAAO,IAAI,IAAI;CAUlB"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2026 Daniel Muñoz 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
+ exports.ElectronWorkspaceContribution = void 0;
19
+ const tslib_1 = require("tslib");
20
+ const core_1 = require("@theia/core");
21
+ require("@theia/core/lib/electron-common/electron-api");
22
+ const inversify_1 = require("@theia/core/shared/inversify");
23
+ const workspace_service_1 = require("../browser/workspace-service");
24
+ let ElectronWorkspaceContribution = class ElectronWorkspaceContribution {
25
+ onStart() {
26
+ this.workspaceService.onWorkspaceChanged(async () => {
27
+ // With the current WorkspaceService implementation, if we await for the ready signal before
28
+ // installing the listener, we miss the first event (the one that we actually want!).
29
+ await this.workspaceService.ready;
30
+ const recent = await this.workspaceService.recentWorkspaces();
31
+ window.electronTheiaCore.updateRecentWorkspaces(recent, core_1.nls.localize('theia/core/jumpListName', 'Recent Workspaces'));
32
+ });
33
+ }
34
+ };
35
+ exports.ElectronWorkspaceContribution = ElectronWorkspaceContribution;
36
+ tslib_1.__decorate([
37
+ (0, inversify_1.inject)(workspace_service_1.WorkspaceService),
38
+ tslib_1.__metadata("design:type", workspace_service_1.WorkspaceService)
39
+ ], ElectronWorkspaceContribution.prototype, "workspaceService", void 0);
40
+ exports.ElectronWorkspaceContribution = ElectronWorkspaceContribution = tslib_1.__decorate([
41
+ (0, inversify_1.injectable)()
42
+ ], ElectronWorkspaceContribution);
43
+ //# sourceMappingURL=electron-workspace-contribution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"electron-workspace-contribution.js","sourceRoot":"","sources":["../../src/electron-browser/electron-workspace-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,8CAA8C;AAC9C,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,sCAAkC;AAElC,wDAAsD;AACtD,4DAAkE;AAClE,oEAAgE;AAGzD,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IAGtC,OAAO;QACH,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,KAAK,IAAI,EAAE;YAChD,4FAA4F;YAC5F,qFAAqF;YACrF,MAAM,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC;YAClC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,CAAC;YAC9D,MAAM,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,MAAM,EAAE,UAAG,CAAC,QAAQ,CAAC,yBAAyB,EAAE,mBAAmB,CAAC,CAAC,CAAC;QAE1H,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAbY,sEAA6B;AACO;IAA5C,IAAA,kBAAM,EAAC,oCAAgB,CAAC;sCAAsC,oCAAgB;uEAAC;wCADvE,6BAA6B;IADzC,IAAA,sBAAU,GAAE;GACA,6BAA6B,CAazC"}
@@ -0,0 +1,4 @@
1
+ import { ContainerModule } from '@theia/core/shared/inversify';
2
+ declare const _default: ContainerModule;
3
+ export default _default;
4
+ //# sourceMappingURL=electron-workspace-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"electron-workspace-module.d.ts","sourceRoot":"","sources":["../../src/electron-browser/electron-workspace-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAI/D,wBAGG"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2026 Daniel Muñoz 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 browser_1 = require("@theia/core/lib/browser");
20
+ const electron_workspace_contribution_1 = require("./electron-workspace-contribution");
21
+ exports.default = new inversify_1.ContainerModule(bind => {
22
+ bind(electron_workspace_contribution_1.ElectronWorkspaceContribution).toSelf().inSingletonScope();
23
+ bind(browser_1.FrontendApplicationContribution).toService(electron_workspace_contribution_1.ElectronWorkspaceContribution);
24
+ });
25
+ //# sourceMappingURL=electron-workspace-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"electron-workspace-module.js","sourceRoot":"","sources":["../../src/electron-browser/electron-workspace-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,8CAA8C;AAC9C,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,qDAA0E;AAC1E,uFAAkF;AAElF,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,+DAA6B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAChE,IAAI,CAAC,yCAA+B,CAAC,CAAC,SAAS,CAAC,+DAA6B,CAAC,CAAC;AACnF,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@theia/workspace",
3
- "version": "1.74.0-next.8+2cd198687",
3
+ "version": "1.74.0",
4
4
  "description": "Theia - Workspace Extension",
5
5
  "dependencies": {
6
- "@theia/core": "1.74.0-next.8+2cd198687",
7
- "@theia/filesystem": "1.74.0-next.8+2cd198687",
8
- "@theia/variable-resolver": "1.74.0-next.8+2cd198687",
6
+ "@theia/core": "1.74.0",
7
+ "@theia/filesystem": "1.74.0",
8
+ "@theia/variable-resolver": "1.74.0",
9
9
  "jsonc-parser": "^3.3.1",
10
10
  "tslib": "^2.8.1",
11
11
  "valid-filename": "^2.0.1"
@@ -20,6 +20,9 @@
20
20
  },
21
21
  {
22
22
  "frontendOnly": "lib/browser-only/workspace-frontend-only-module"
23
+ },
24
+ {
25
+ "frontendElectron": "lib/electron-browser/electron-workspace-module"
23
26
  }
24
27
  ],
25
28
  "keywords": [
@@ -47,10 +50,10 @@
47
50
  "watch": "theiaext watch"
48
51
  },
49
52
  "devDependencies": {
50
- "@theia/ext-scripts": "1.73.0"
53
+ "@theia/ext-scripts": "1.74.0"
51
54
  },
52
55
  "nyc": {
53
56
  "extends": "../../configs/nyc.json"
54
57
  },
55
- "gitHead": "2cd1986875513fd02f645a2b8e69a68832a3a990"
58
+ "gitHead": "7b7376225f0825b4f13d296d686cc13db95fdb69"
56
59
  }
@@ -35,8 +35,8 @@ export class UntitledWorkspaceExitDialog extends AbstractDialog<UntitledWorkspac
35
35
  this.contentNode.appendChild(messageNode);
36
36
  this.dontSaveButton = this.createButton(nls.localizeByDefault(UntitledWorkspaceExitDialog.Values["Don't Save"]));
37
37
  this.dontSaveButton.classList.add('secondary');
38
- this.controlPanel.appendChild(this.dontSaveButton);
39
38
  this.appendCloseButton(Dialog.CANCEL);
39
+ this.controlPanel.appendChild(this.dontSaveButton);
40
40
  this.appendAcceptButton(nls.localizeByDefault(UntitledWorkspaceExitDialog.Values.Save));
41
41
  }
42
42
 
@@ -0,0 +1,37 @@
1
+ // *****************************************************************************
2
+ // Copyright (C) 2026 Daniel Muñoz and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ import { nls } from '@theia/core';
18
+ import { FrontendApplicationContribution } from '@theia/core/lib/browser';
19
+ import '@theia/core/lib/electron-common/electron-api';
20
+ import { inject, injectable } from '@theia/core/shared/inversify';
21
+ import { WorkspaceService } from '../browser/workspace-service';
22
+
23
+ @injectable()
24
+ export class ElectronWorkspaceContribution implements FrontendApplicationContribution {
25
+ @inject(WorkspaceService) protected readonly workspaceService: WorkspaceService;
26
+
27
+ onStart(): void {
28
+ this.workspaceService.onWorkspaceChanged(async () => {
29
+ // With the current WorkspaceService implementation, if we await for the ready signal before
30
+ // installing the listener, we miss the first event (the one that we actually want!).
31
+ await this.workspaceService.ready;
32
+ const recent = await this.workspaceService.recentWorkspaces();
33
+ window.electronTheiaCore.updateRecentWorkspaces(recent, nls.localize('theia/core/jumpListName', 'Recent Workspaces'));
34
+
35
+ });
36
+ }
37
+ }
@@ -0,0 +1,24 @@
1
+ // *****************************************************************************
2
+ // Copyright (C) 2026 Daniel Muñoz and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ import { ContainerModule } from '@theia/core/shared/inversify';
18
+ import { FrontendApplicationContribution } from '@theia/core/lib/browser';
19
+ import { ElectronWorkspaceContribution } from './electron-workspace-contribution';
20
+
21
+ export default new ContainerModule(bind => {
22
+ bind(ElectronWorkspaceContribution).toSelf().inSingletonScope();
23
+ bind(FrontendApplicationContribution).toService(ElectronWorkspaceContribution);
24
+ });