@theia/workspace 1.34.1 → 1.34.3
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/LICENSE +641 -641
- package/README.md +30 -30
- package/lib/browser/diff-service.d.ts +10 -10
- package/lib/browser/diff-service.js +85 -85
- package/lib/browser/index.d.ts +6 -6
- package/lib/browser/index.js +33 -33
- package/lib/browser/quick-open-workspace.d.ts +25 -25
- package/lib/browser/quick-open-workspace.js +137 -137
- package/lib/browser/untitled-workspace-exit-dialog.d.ts +19 -19
- package/lib/browser/untitled-workspace-exit-dialog.js +74 -74
- package/lib/browser/workspace-breadcrumbs-contribution.d.ts +10 -10
- package/lib/browser/workspace-breadcrumbs-contribution.js +66 -66
- package/lib/browser/workspace-commands.d.ts +117 -117
- package/lib/browser/workspace-commands.js +593 -593
- package/lib/browser/workspace-commands.spec.d.ts +1 -1
- package/lib/browser/workspace-commands.spec.js +127 -127
- package/lib/browser/workspace-compare-handler.d.ts +26 -26
- package/lib/browser/workspace-compare-handler.js +66 -66
- package/lib/browser/workspace-delete-handler.d.ts +75 -75
- package/lib/browser/workspace-delete-handler.js +214 -214
- package/lib/browser/workspace-duplicate-handler.d.ts +30 -30
- package/lib/browser/workspace-duplicate-handler.js +86 -86
- package/lib/browser/workspace-frontend-contribution.d.ts +135 -135
- package/lib/browser/workspace-frontend-contribution.js +568 -568
- package/lib/browser/workspace-frontend-contribution.spec.d.ts +1 -1
- package/lib/browser/workspace-frontend-contribution.spec.js +53 -53
- package/lib/browser/workspace-frontend-module.d.ts +3 -3
- package/lib/browser/workspace-frontend-module.js +88 -88
- package/lib/browser/workspace-input-dialog.d.ts +19 -19
- package/lib/browser/workspace-input-dialog.js +73 -73
- package/lib/browser/workspace-preferences.d.ts +11 -11
- package/lib/browser/workspace-preferences.js +46 -46
- package/lib/browser/workspace-schema-updater.d.ts +32 -32
- package/lib/browser/workspace-schema-updater.js +148 -148
- package/lib/browser/workspace-service.d.ts +182 -182
- package/lib/browser/workspace-service.js +729 -729
- package/lib/browser/workspace-storage-service.d.ts +15 -15
- package/lib/browser/workspace-storage-service.js +80 -80
- package/lib/browser/workspace-trust-preferences.d.ts +21 -21
- package/lib/browser/workspace-trust-preferences.js +65 -65
- package/lib/browser/workspace-trust-service.d.ts +26 -26
- package/lib/browser/workspace-trust-service.js +149 -149
- package/lib/browser/workspace-uri-contribution.d.ts +20 -20
- package/lib/browser/workspace-uri-contribution.js +113 -113
- package/lib/browser/workspace-uri-contribution.spec.d.ts +1 -1
- package/lib/browser/workspace-uri-contribution.spec.js +169 -169
- package/lib/browser/workspace-user-working-directory-provider.d.ts +12 -12
- package/lib/browser/workspace-user-working-directory-provider.js +62 -62
- package/lib/browser/workspace-utils.d.ts +15 -15
- package/lib/browser/workspace-utils.js +54 -54
- package/lib/browser/workspace-variable-contribution.d.ts +23 -23
- package/lib/browser/workspace-variable-contribution.js +237 -237
- package/lib/browser/workspace-window-title-updater.d.ts +7 -7
- package/lib/browser/workspace-window-title-updater.js +57 -57
- package/lib/common/index.d.ts +2 -2
- package/lib/common/index.js +29 -29
- package/lib/common/test/mock-workspace-server.d.ts +7 -7
- package/lib/common/test/mock-workspace-server.js +35 -35
- package/lib/common/utils.d.ts +21 -21
- package/lib/common/utils.js +73 -73
- package/lib/common/workspace-protocol.d.ts +26 -26
- package/lib/common/workspace-protocol.js +23 -23
- package/lib/node/default-workspace-server.d.ts +64 -64
- package/lib/node/default-workspace-server.js +248 -248
- package/lib/node/default-workspace-server.spec.d.ts +1 -1
- package/lib/node/default-workspace-server.spec.js +84 -84
- package/lib/node/index.d.ts +2 -2
- package/lib/node/index.js +29 -29
- package/lib/node/workspace-backend-module.d.ts +3 -3
- package/lib/node/workspace-backend-module.js +32 -32
- package/package.json +6 -6
- package/src/browser/diff-service.ts +62 -62
- package/src/browser/index.ts +22 -22
- package/src/browser/quick-open-workspace.ts +112 -112
- package/src/browser/untitled-workspace-exit-dialog.ts +70 -70
- package/src/browser/workspace-breadcrumbs-contribution.ts +56 -56
- package/src/browser/workspace-commands.spec.ts +153 -153
- package/src/browser/workspace-commands.ts +586 -586
- package/src/browser/workspace-compare-handler.ts +56 -56
- package/src/browser/workspace-delete-handler.ts +212 -212
- package/src/browser/workspace-duplicate-handler.ts +75 -75
- package/src/browser/workspace-frontend-contribution.spec.ts +63 -63
- package/src/browser/workspace-frontend-contribution.ts +558 -558
- package/src/browser/workspace-frontend-module.ts +115 -115
- package/src/browser/workspace-input-dialog.ts +60 -60
- package/src/browser/workspace-preferences.ts +58 -58
- package/src/browser/workspace-schema-updater.ts +148 -148
- package/src/browser/workspace-service.ts +772 -772
- package/src/browser/workspace-storage-service.ts +67 -67
- package/src/browser/workspace-trust-preferences.ts +76 -76
- package/src/browser/workspace-trust-service.ts +143 -143
- package/src/browser/workspace-uri-contribution.spec.ts +191 -191
- package/src/browser/workspace-uri-contribution.ts +97 -97
- package/src/browser/workspace-user-working-directory-provider.ts +48 -48
- package/src/browser/workspace-utils.ts +45 -45
- package/src/browser/workspace-variable-contribution.ts +222 -222
- package/src/browser/workspace-window-title-updater.ts +45 -45
- package/src/common/index.ts +18 -18
- package/src/common/test/mock-workspace-server.ts +29 -29
- package/src/common/utils.ts +69 -69
- package/src/common/workspace-protocol.ts +47 -47
- package/src/node/default-workspace-server.spec.ts +99 -99
- package/src/node/default-workspace-server.ts +242 -242
- package/src/node/index.ts +18 -18
- package/src/node/workspace-backend-module.ts +37 -37
package/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
<div align='center'>
|
|
2
|
-
|
|
3
|
-
<br />
|
|
4
|
-
|
|
5
|
-
<img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
|
|
6
|
-
|
|
7
|
-
<h2>ECLIPSE THEIA - WORKSPACE EXTENSION</h2>
|
|
8
|
-
|
|
9
|
-
<hr />
|
|
10
|
-
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
## Description
|
|
14
|
-
|
|
15
|
-
The `@theia/workspace` extension provides functionality and services to handle workspaces (projects) within the application.
|
|
16
|
-
|
|
17
|
-
## Additional Information
|
|
18
|
-
|
|
19
|
-
- [API documentation for `@theia/workspace`](https://eclipse-theia.github.io/theia/docs/next/modules/workspace.html)
|
|
20
|
-
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
21
|
-
- [Theia - Website](https://theia-ide.org/)
|
|
22
|
-
|
|
23
|
-
## License
|
|
24
|
-
|
|
25
|
-
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
26
|
-
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
27
|
-
|
|
28
|
-
## Trademark
|
|
29
|
-
"Theia" is a trademark of the Eclipse Foundation
|
|
30
|
-
https://www.eclipse.org/theia
|
|
1
|
+
<div align='center'>
|
|
2
|
+
|
|
3
|
+
<br />
|
|
4
|
+
|
|
5
|
+
<img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
|
|
6
|
+
|
|
7
|
+
<h2>ECLIPSE THEIA - WORKSPACE EXTENSION</h2>
|
|
8
|
+
|
|
9
|
+
<hr />
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
## Description
|
|
14
|
+
|
|
15
|
+
The `@theia/workspace` extension provides functionality and services to handle workspaces (projects) within the application.
|
|
16
|
+
|
|
17
|
+
## Additional Information
|
|
18
|
+
|
|
19
|
+
- [API documentation for `@theia/workspace`](https://eclipse-theia.github.io/theia/docs/next/modules/workspace.html)
|
|
20
|
+
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
21
|
+
- [Theia - Website](https://theia-ide.org/)
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
26
|
+
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
27
|
+
|
|
28
|
+
## Trademark
|
|
29
|
+
"Theia" is a trademark of the Eclipse Foundation
|
|
30
|
+
https://www.eclipse.org/theia
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import URI from '@theia/core/lib/common/uri';
|
|
2
|
-
import { OpenerService, OpenerOptions } from '@theia/core/lib/browser';
|
|
3
|
-
import { MessageService } from '@theia/core/lib/common/message-service';
|
|
4
|
-
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
5
|
-
export declare class DiffService {
|
|
6
|
-
protected readonly fileService: FileService;
|
|
7
|
-
protected readonly openerService: OpenerService;
|
|
8
|
-
protected readonly messageService: MessageService;
|
|
9
|
-
openDiffEditor(left: URI, right: URI, label?: string, options?: OpenerOptions): Promise<void>;
|
|
10
|
-
}
|
|
1
|
+
import URI from '@theia/core/lib/common/uri';
|
|
2
|
+
import { OpenerService, OpenerOptions } from '@theia/core/lib/browser';
|
|
3
|
+
import { MessageService } from '@theia/core/lib/common/message-service';
|
|
4
|
+
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
5
|
+
export declare class DiffService {
|
|
6
|
+
protected readonly fileService: FileService;
|
|
7
|
+
protected readonly openerService: OpenerService;
|
|
8
|
+
protected readonly messageService: MessageService;
|
|
9
|
+
openDiffEditor(left: URI, right: URI, label?: string, options?: OpenerOptions): Promise<void>;
|
|
10
|
+
}
|
|
11
11
|
//# sourceMappingURL=diff-service.d.ts.map
|
|
@@ -1,86 +1,86 @@
|
|
|
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 WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.DiffService = void 0;
|
|
28
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
-
const diff_uris_1 = require("@theia/core/lib/browser/diff-uris");
|
|
30
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
31
|
-
const message_service_1 = require("@theia/core/lib/common/message-service");
|
|
32
|
-
const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
|
|
33
|
-
let DiffService = class DiffService {
|
|
34
|
-
async openDiffEditor(left, right, label, options) {
|
|
35
|
-
if (left.scheme === 'file' && right.scheme === 'file') {
|
|
36
|
-
const [resolvedLeft, resolvedRight] = await this.fileService.resolveAll([{ resource: left }, { resource: right }]);
|
|
37
|
-
if (resolvedLeft.success && resolvedRight.success) {
|
|
38
|
-
const leftStat = resolvedLeft.stat;
|
|
39
|
-
const rightStat = resolvedRight.stat;
|
|
40
|
-
if (leftStat && rightStat) {
|
|
41
|
-
if (!leftStat.isDirectory && !rightStat.isDirectory) {
|
|
42
|
-
const uri = diff_uris_1.DiffUris.encode(left, right, label);
|
|
43
|
-
await (0, browser_1.open)(this.openerService, uri, options);
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
const details = (() => {
|
|
47
|
-
if (leftStat.isDirectory && rightStat.isDirectory) {
|
|
48
|
-
return 'Both resource were a directory.';
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
if (leftStat.isDirectory) {
|
|
52
|
-
return `'${left.path.base}' was a directory.`;
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
return `'${right.path.base}' was a directory.`;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
this.messageService.warn(`Directories cannot be compared. ${details()}`);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
const uri = diff_uris_1.DiffUris.encode(left, right, label);
|
|
66
|
-
await (0, browser_1.open)(this.openerService, uri, options);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, inversify_1.inject)(file_service_1.FileService),
|
|
72
|
-
__metadata("design:type", file_service_1.FileService)
|
|
73
|
-
], DiffService.prototype, "fileService", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, inversify_1.inject)(browser_1.OpenerService),
|
|
76
|
-
__metadata("design:type", Object)
|
|
77
|
-
], DiffService.prototype, "openerService", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, inversify_1.inject)(message_service_1.MessageService),
|
|
80
|
-
__metadata("design:type", message_service_1.MessageService)
|
|
81
|
-
], DiffService.prototype, "messageService", void 0);
|
|
82
|
-
DiffService = __decorate([
|
|
83
|
-
(0, inversify_1.injectable)()
|
|
84
|
-
], DiffService);
|
|
85
|
-
exports.DiffService = DiffService;
|
|
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 WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.DiffService = void 0;
|
|
28
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
+
const diff_uris_1 = require("@theia/core/lib/browser/diff-uris");
|
|
30
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
31
|
+
const message_service_1 = require("@theia/core/lib/common/message-service");
|
|
32
|
+
const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
|
|
33
|
+
let DiffService = class DiffService {
|
|
34
|
+
async openDiffEditor(left, right, label, options) {
|
|
35
|
+
if (left.scheme === 'file' && right.scheme === 'file') {
|
|
36
|
+
const [resolvedLeft, resolvedRight] = await this.fileService.resolveAll([{ resource: left }, { resource: right }]);
|
|
37
|
+
if (resolvedLeft.success && resolvedRight.success) {
|
|
38
|
+
const leftStat = resolvedLeft.stat;
|
|
39
|
+
const rightStat = resolvedRight.stat;
|
|
40
|
+
if (leftStat && rightStat) {
|
|
41
|
+
if (!leftStat.isDirectory && !rightStat.isDirectory) {
|
|
42
|
+
const uri = diff_uris_1.DiffUris.encode(left, right, label);
|
|
43
|
+
await (0, browser_1.open)(this.openerService, uri, options);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
const details = (() => {
|
|
47
|
+
if (leftStat.isDirectory && rightStat.isDirectory) {
|
|
48
|
+
return 'Both resource were a directory.';
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
if (leftStat.isDirectory) {
|
|
52
|
+
return `'${left.path.base}' was a directory.`;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
return `'${right.path.base}' was a directory.`;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
this.messageService.warn(`Directories cannot be compared. ${details()}`);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
const uri = diff_uris_1.DiffUris.encode(left, right, label);
|
|
66
|
+
await (0, browser_1.open)(this.openerService, uri, options);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, inversify_1.inject)(file_service_1.FileService),
|
|
72
|
+
__metadata("design:type", file_service_1.FileService)
|
|
73
|
+
], DiffService.prototype, "fileService", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, inversify_1.inject)(browser_1.OpenerService),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], DiffService.prototype, "openerService", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, inversify_1.inject)(message_service_1.MessageService),
|
|
80
|
+
__metadata("design:type", message_service_1.MessageService)
|
|
81
|
+
], DiffService.prototype, "messageService", void 0);
|
|
82
|
+
DiffService = __decorate([
|
|
83
|
+
(0, inversify_1.injectable)()
|
|
84
|
+
], DiffService);
|
|
85
|
+
exports.DiffService = DiffService;
|
|
86
86
|
//# sourceMappingURL=diff-service.js.map
|
package/lib/browser/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './workspace-commands';
|
|
2
|
-
export * from './workspace-service';
|
|
3
|
-
export * from './workspace-frontend-contribution';
|
|
4
|
-
export * from './workspace-frontend-module';
|
|
5
|
-
export * from './workspace-preferences';
|
|
6
|
-
export * from './workspace-trust-service';
|
|
1
|
+
export * from './workspace-commands';
|
|
2
|
+
export * from './workspace-service';
|
|
3
|
+
export * from './workspace-frontend-contribution';
|
|
4
|
+
export * from './workspace-frontend-module';
|
|
5
|
+
export * from './workspace-preferences';
|
|
6
|
+
export * from './workspace-trust-service';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/browser/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
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 WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
25
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
__exportStar(require("./workspace-commands"), exports);
|
|
29
|
-
__exportStar(require("./workspace-service"), exports);
|
|
30
|
-
__exportStar(require("./workspace-frontend-contribution"), exports);
|
|
31
|
-
__exportStar(require("./workspace-frontend-module"), exports);
|
|
32
|
-
__exportStar(require("./workspace-preferences"), exports);
|
|
33
|
-
__exportStar(require("./workspace-trust-service"), exports);
|
|
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 WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
25
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
__exportStar(require("./workspace-commands"), exports);
|
|
29
|
+
__exportStar(require("./workspace-service"), exports);
|
|
30
|
+
__exportStar(require("./workspace-frontend-contribution"), exports);
|
|
31
|
+
__exportStar(require("./workspace-frontend-module"), exports);
|
|
32
|
+
__exportStar(require("./workspace-preferences"), exports);
|
|
33
|
+
__exportStar(require("./workspace-trust-service"), exports);
|
|
34
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { QuickPickItem, LabelProvider, QuickInputService, QuickInputButton, QuickPickSeparator } from '@theia/core/lib/browser';
|
|
2
|
-
import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
|
|
3
|
-
import { WorkspaceService } from './workspace-service';
|
|
4
|
-
import { WorkspacePreferences } from './workspace-preferences';
|
|
5
|
-
import URI from '@theia/core/lib/common/uri';
|
|
6
|
-
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
7
|
-
import { CommonWorkspaceUtils } from '../common/utils';
|
|
8
|
-
interface RecentlyOpenedPick extends QuickPickItem {
|
|
9
|
-
resource?: URI;
|
|
10
|
-
}
|
|
11
|
-
export declare class QuickOpenWorkspace {
|
|
12
|
-
protected items: Array<RecentlyOpenedPick | QuickPickSeparator>;
|
|
13
|
-
protected opened: boolean;
|
|
14
|
-
protected readonly quickInputService: QuickInputService;
|
|
15
|
-
protected readonly workspaceService: WorkspaceService;
|
|
16
|
-
protected readonly fileService: FileService;
|
|
17
|
-
protected readonly labelProvider: LabelProvider;
|
|
18
|
-
protected preferences: WorkspacePreferences;
|
|
19
|
-
protected readonly envServer: EnvVariablesServer;
|
|
20
|
-
protected workspaceUtils: CommonWorkspaceUtils;
|
|
21
|
-
protected readonly removeRecentWorkspaceButton: QuickInputButton;
|
|
22
|
-
open(workspaces: string[]): Promise<void>;
|
|
23
|
-
select(): void;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
1
|
+
import { QuickPickItem, LabelProvider, QuickInputService, QuickInputButton, QuickPickSeparator } from '@theia/core/lib/browser';
|
|
2
|
+
import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
|
|
3
|
+
import { WorkspaceService } from './workspace-service';
|
|
4
|
+
import { WorkspacePreferences } from './workspace-preferences';
|
|
5
|
+
import URI from '@theia/core/lib/common/uri';
|
|
6
|
+
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
7
|
+
import { CommonWorkspaceUtils } from '../common/utils';
|
|
8
|
+
interface RecentlyOpenedPick extends QuickPickItem {
|
|
9
|
+
resource?: URI;
|
|
10
|
+
}
|
|
11
|
+
export declare class QuickOpenWorkspace {
|
|
12
|
+
protected items: Array<RecentlyOpenedPick | QuickPickSeparator>;
|
|
13
|
+
protected opened: boolean;
|
|
14
|
+
protected readonly quickInputService: QuickInputService;
|
|
15
|
+
protected readonly workspaceService: WorkspaceService;
|
|
16
|
+
protected readonly fileService: FileService;
|
|
17
|
+
protected readonly labelProvider: LabelProvider;
|
|
18
|
+
protected preferences: WorkspacePreferences;
|
|
19
|
+
protected readonly envServer: EnvVariablesServer;
|
|
20
|
+
protected workspaceUtils: CommonWorkspaceUtils;
|
|
21
|
+
protected readonly removeRecentWorkspaceButton: QuickInputButton;
|
|
22
|
+
open(workspaces: string[]): Promise<void>;
|
|
23
|
+
select(): void;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
26
26
|
//# sourceMappingURL=quick-open-workspace.d.ts.map
|