@theia/getting-started 1.67.0-next.3 → 1.67.0-next.56
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/README.md +1 -1
- package/package.json +8 -8
- package/lib/browser/getting-started-contribution.d.ts +0 -31
- package/lib/browser/getting-started-contribution.d.ts.map +0 -1
- package/lib/browser/getting-started-contribution.js +0 -150
- package/lib/browser/getting-started-contribution.js.map +0 -1
- package/lib/browser/getting-started-frontend-module.d.ts +0 -5
- package/lib/browser/getting-started-frontend-module.d.ts.map +0 -1
- package/lib/browser/getting-started-frontend-module.js +0 -35
- package/lib/browser/getting-started-frontend-module.js.map +0 -1
- package/lib/browser/getting-started-widget.d.ts +0 -174
- package/lib/browser/getting-started-widget.d.ts.map +0 -1
- package/lib/browser/getting-started-widget.js +0 -436
- package/lib/browser/getting-started-widget.js.map +0 -1
- package/lib/common/getting-started-preferences.d.ts +0 -12
- package/lib/common/getting-started-preferences.d.ts.map +0 -1
- package/lib/common/getting-started-preferences.js +0 -55
- package/lib/common/getting-started-preferences.js.map +0 -1
- package/lib/node/getting-started-backend-module.d.ts +0 -4
- package/lib/node/getting-started-backend-module.d.ts.map +0 -1
- package/lib/node/getting-started-backend-module.js +0 -23
- package/lib/node/getting-started-backend-module.js.map +0 -1
- package/lib/package.spec.d.ts +0 -1
- package/lib/package.spec.d.ts.map +0 -1
- package/lib/package.spec.js +0 -26
- package/lib/package.spec.js.map +0 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ The `getting-started` widget provides useful commands and functionality for quic
|
|
|
24
24
|
|
|
25
25
|
## Additional Information
|
|
26
26
|
|
|
27
|
-
- [API documentation for `@theia/getting-started`](https://eclipse-theia.github.io/theia/docs/next/modules/
|
|
27
|
+
- [API documentation for `@theia/getting-started`](https://eclipse-theia.github.io/theia/docs/next/modules/_theia_getting-started.html)
|
|
28
28
|
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
29
29
|
- [Theia - Website](https://theia-ide.org/)
|
|
30
30
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/getting-started",
|
|
3
|
-
"version": "1.67.0-next.
|
|
3
|
+
"version": "1.67.0-next.56+d8f18cc386c",
|
|
4
4
|
"description": "Theia - GettingStarted Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.67.0-next.
|
|
7
|
-
"@theia/editor": "1.67.0-next.
|
|
8
|
-
"@theia/filesystem": "1.67.0-next.
|
|
9
|
-
"@theia/keymaps": "1.67.0-next.
|
|
10
|
-
"@theia/preview": "1.67.0-next.
|
|
11
|
-
"@theia/workspace": "1.67.0-next.
|
|
6
|
+
"@theia/core": "1.67.0-next.56+d8f18cc386c",
|
|
7
|
+
"@theia/editor": "1.67.0-next.56+d8f18cc386c",
|
|
8
|
+
"@theia/filesystem": "1.67.0-next.56+d8f18cc386c",
|
|
9
|
+
"@theia/keymaps": "1.67.0-next.56+d8f18cc386c",
|
|
10
|
+
"@theia/preview": "1.67.0-next.56+d8f18cc386c",
|
|
11
|
+
"@theia/workspace": "1.67.0-next.56+d8f18cc386c",
|
|
12
12
|
"tslib": "^2.6.2"
|
|
13
13
|
},
|
|
14
14
|
"publishConfig": {
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"nyc": {
|
|
52
52
|
"extends": "../../configs/nyc.json"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "d8f18cc386c45a736cd193d42eab02c8f64c6b10"
|
|
55
55
|
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { CommandRegistry, MenuModelRegistry, PreferenceContribution, PreferenceSchemaService, PreferenceService } from '@theia/core/lib/common';
|
|
2
|
-
import { AbstractViewContribution, FrontendApplicationContribution, FrontendApplication } from '@theia/core/lib/browser';
|
|
3
|
-
import { EditorManager } from '@theia/editor/lib/browser/editor-manager';
|
|
4
|
-
import { GettingStartedWidget } from './getting-started-widget';
|
|
5
|
-
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
6
|
-
import { FrontendApplicationStateService } from '@theia/core/lib/browser/frontend-application-state';
|
|
7
|
-
import { PreviewContribution } from '@theia/preview/lib/browser/preview-contribution';
|
|
8
|
-
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
9
|
-
/**
|
|
10
|
-
* Triggers opening the `GettingStartedWidget`.
|
|
11
|
-
*/
|
|
12
|
-
export declare const GettingStartedCommand: {
|
|
13
|
-
id: string;
|
|
14
|
-
label: string;
|
|
15
|
-
};
|
|
16
|
-
export declare class GettingStartedContribution extends AbstractViewContribution<GettingStartedWidget> implements FrontendApplicationContribution, PreferenceContribution {
|
|
17
|
-
protected readonly commandRegistry: CommandRegistry;
|
|
18
|
-
protected readonly editorManager: EditorManager;
|
|
19
|
-
protected readonly fileService: FileService;
|
|
20
|
-
protected readonly preferenceService: PreferenceService;
|
|
21
|
-
protected readonly previewContribution: PreviewContribution;
|
|
22
|
-
protected readonly stateService: FrontendApplicationStateService;
|
|
23
|
-
protected readonly workspaceService: WorkspaceService;
|
|
24
|
-
constructor();
|
|
25
|
-
initSchema(service: PreferenceSchemaService): Promise<void>;
|
|
26
|
-
onStart(app: FrontendApplication): Promise<void>;
|
|
27
|
-
protected openReadme(): Promise<void>;
|
|
28
|
-
registerCommands(registry: CommandRegistry): void;
|
|
29
|
-
registerMenus(menus: MenuModelRegistry): void;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=getting-started-contribution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getting-started-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/getting-started-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EACS,eAAe,EAAE,iBAAiB,EAAO,sBAAsB,EACnD,uBAAuB,EAAE,iBAAiB,EACrE,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAA+B,wBAAwB,EAAE,+BAA+B,EAAE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
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2018 Ericsson 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.GettingStartedContribution = exports.GettingStartedCommand = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const common_1 = require("@theia/core/lib/common");
|
|
22
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
23
|
-
const editor_manager_1 = require("@theia/editor/lib/browser/editor-manager");
|
|
24
|
-
const getting_started_widget_1 = require("./getting-started-widget");
|
|
25
|
-
const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
|
|
26
|
-
const frontend_application_state_1 = require("@theia/core/lib/browser/frontend-application-state");
|
|
27
|
-
const preview_contribution_1 = require("@theia/preview/lib/browser/preview-contribution");
|
|
28
|
-
const browser_2 = require("@theia/workspace/lib/browser");
|
|
29
|
-
const frontend_application_config_provider_1 = require("@theia/core/lib/browser/frontend-application-config-provider");
|
|
30
|
-
/**
|
|
31
|
-
* Triggers opening the `GettingStartedWidget`.
|
|
32
|
-
*/
|
|
33
|
-
exports.GettingStartedCommand = {
|
|
34
|
-
id: getting_started_widget_1.GettingStartedWidget.ID,
|
|
35
|
-
label: getting_started_widget_1.GettingStartedWidget.LABEL
|
|
36
|
-
};
|
|
37
|
-
let GettingStartedContribution = class GettingStartedContribution extends browser_1.AbstractViewContribution {
|
|
38
|
-
constructor() {
|
|
39
|
-
super({
|
|
40
|
-
widgetId: getting_started_widget_1.GettingStartedWidget.ID,
|
|
41
|
-
widgetName: getting_started_widget_1.GettingStartedWidget.LABEL,
|
|
42
|
-
defaultWidgetOptions: {
|
|
43
|
-
area: 'main',
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
async initSchema(service) {
|
|
48
|
-
const property = {
|
|
49
|
-
enumDescriptions: [
|
|
50
|
-
common_1.nls.localizeByDefault('Start without an editor.'),
|
|
51
|
-
common_1.nls.localize('theia/getting-started/startup-editor/welcomePage', 'Open the Welcome page, with content to aid in getting started with {0} and extensions.', frontend_application_config_provider_1.FrontendApplicationConfigProvider.get().applicationName),
|
|
52
|
-
// eslint-disable-next-line max-len
|
|
53
|
-
common_1.nls.localizeByDefault("Open the README when opening a folder that contains one, fallback to 'welcomePage' otherwise. Note: This is only observed as a global configuration, it will be ignored if set in a workspace or folder configuration."),
|
|
54
|
-
common_1.nls.localizeByDefault('Open a new untitled text file (only applies when opening an empty window).'),
|
|
55
|
-
common_1.nls.localizeByDefault('Open the Welcome page when opening an empty workbench.'),
|
|
56
|
-
],
|
|
57
|
-
};
|
|
58
|
-
service.updateSchemaProperty('workbench.startupEditor', property);
|
|
59
|
-
}
|
|
60
|
-
async onStart(app) {
|
|
61
|
-
this.stateService.reachedState('ready').then(async () => {
|
|
62
|
-
if (this.editorManager.all.length === 0) {
|
|
63
|
-
await this.preferenceService.ready;
|
|
64
|
-
const startupEditor = this.preferenceService.get('workbench.startupEditor');
|
|
65
|
-
switch (startupEditor) {
|
|
66
|
-
case 'welcomePage':
|
|
67
|
-
this.openView({ reveal: true, activate: true });
|
|
68
|
-
break;
|
|
69
|
-
case 'welcomePageInEmptyWorkbench':
|
|
70
|
-
if (!this.workspaceService.opened) {
|
|
71
|
-
this.openView({ reveal: true, activate: true });
|
|
72
|
-
}
|
|
73
|
-
break;
|
|
74
|
-
case 'newUntitledFile':
|
|
75
|
-
this.commandRegistry.executeCommand(browser_1.CommonCommands.NEW_UNTITLED_TEXT_FILE.id);
|
|
76
|
-
break;
|
|
77
|
-
case 'readme':
|
|
78
|
-
await this.openReadme();
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
async openReadme() {
|
|
85
|
-
const roots = await this.workspaceService.roots;
|
|
86
|
-
const readmes = await Promise.all(roots.map(async (folder) => {
|
|
87
|
-
var _a;
|
|
88
|
-
const folderStat = await this.fileService.resolve(folder.resource);
|
|
89
|
-
const fileArr = ((_a = folderStat === null || folderStat === void 0 ? void 0 : folderStat.children) === null || _a === void 0 ? void 0 : _a.sort((a, b) => a.name.localeCompare(b.name))) || [];
|
|
90
|
-
const filePath = fileArr.find(file => file.name.toLowerCase() === 'readme.md') || fileArr.find(file => file.name.toLowerCase().startsWith('readme'));
|
|
91
|
-
return filePath === null || filePath === void 0 ? void 0 : filePath.resource;
|
|
92
|
-
}));
|
|
93
|
-
const validReadmes = common_1.ArrayUtils.coalesce(readmes);
|
|
94
|
-
if (validReadmes.length) {
|
|
95
|
-
for (const readme of validReadmes) {
|
|
96
|
-
await this.previewContribution.open(readme);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
// If no readme is found, show the welcome page.
|
|
101
|
-
this.openView({ reveal: true, activate: true });
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
registerCommands(registry) {
|
|
105
|
-
registry.registerCommand(exports.GettingStartedCommand, {
|
|
106
|
-
execute: () => this.openView({ reveal: true, activate: true }),
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
registerMenus(menus) {
|
|
110
|
-
menus.registerMenuAction(browser_1.CommonMenus.HELP, {
|
|
111
|
-
commandId: exports.GettingStartedCommand.id,
|
|
112
|
-
label: exports.GettingStartedCommand.label,
|
|
113
|
-
order: 'a10'
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
exports.GettingStartedContribution = GettingStartedContribution;
|
|
118
|
-
tslib_1.__decorate([
|
|
119
|
-
(0, inversify_1.inject)(common_1.CommandRegistry),
|
|
120
|
-
tslib_1.__metadata("design:type", common_1.CommandRegistry)
|
|
121
|
-
], GettingStartedContribution.prototype, "commandRegistry", void 0);
|
|
122
|
-
tslib_1.__decorate([
|
|
123
|
-
(0, inversify_1.inject)(editor_manager_1.EditorManager),
|
|
124
|
-
tslib_1.__metadata("design:type", editor_manager_1.EditorManager)
|
|
125
|
-
], GettingStartedContribution.prototype, "editorManager", void 0);
|
|
126
|
-
tslib_1.__decorate([
|
|
127
|
-
(0, inversify_1.inject)(file_service_1.FileService),
|
|
128
|
-
tslib_1.__metadata("design:type", file_service_1.FileService)
|
|
129
|
-
], GettingStartedContribution.prototype, "fileService", void 0);
|
|
130
|
-
tslib_1.__decorate([
|
|
131
|
-
(0, inversify_1.inject)(common_1.PreferenceService),
|
|
132
|
-
tslib_1.__metadata("design:type", Object)
|
|
133
|
-
], GettingStartedContribution.prototype, "preferenceService", void 0);
|
|
134
|
-
tslib_1.__decorate([
|
|
135
|
-
(0, inversify_1.inject)(preview_contribution_1.PreviewContribution),
|
|
136
|
-
tslib_1.__metadata("design:type", preview_contribution_1.PreviewContribution)
|
|
137
|
-
], GettingStartedContribution.prototype, "previewContribution", void 0);
|
|
138
|
-
tslib_1.__decorate([
|
|
139
|
-
(0, inversify_1.inject)(frontend_application_state_1.FrontendApplicationStateService),
|
|
140
|
-
tslib_1.__metadata("design:type", frontend_application_state_1.FrontendApplicationStateService)
|
|
141
|
-
], GettingStartedContribution.prototype, "stateService", void 0);
|
|
142
|
-
tslib_1.__decorate([
|
|
143
|
-
(0, inversify_1.inject)(browser_2.WorkspaceService),
|
|
144
|
-
tslib_1.__metadata("design:type", browser_2.WorkspaceService)
|
|
145
|
-
], GettingStartedContribution.prototype, "workspaceService", void 0);
|
|
146
|
-
exports.GettingStartedContribution = GettingStartedContribution = tslib_1.__decorate([
|
|
147
|
-
(0, inversify_1.injectable)(),
|
|
148
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
149
|
-
], GettingStartedContribution);
|
|
150
|
-
//# sourceMappingURL=getting-started-contribution.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getting-started-contribution.js","sourceRoot":"","sources":["../../src/browser/getting-started-contribution.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,4DAAkE;AAClE,mDAGgC;AAChC,qDAAsJ;AACtJ,6EAAyE;AACzE,qEAAgE;AAChE,6EAAyE;AACzE,mGAAqG;AACrG,0FAAsF;AACtF,0DAAgE;AAChE,uHAAiH;AAEjH;;GAEG;AACU,QAAA,qBAAqB,GAAG;IACjC,EAAE,EAAE,6CAAoB,CAAC,EAAE;IAC3B,KAAK,EAAE,6CAAoB,CAAC,KAAK;CACpC,CAAC;AAGK,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,kCAA8C;IAuB1F;QACI,KAAK,CAAC;YACF,QAAQ,EAAE,6CAAoB,CAAC,EAAE;YACjC,UAAU,EAAE,6CAAoB,CAAC,KAAK;YACtC,oBAAoB,EAAE;gBAClB,IAAI,EAAE,MAAM;aACf;SACJ,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,OAAgC;QAC7C,MAAM,QAAQ,GAA2B;YACrC,gBAAgB,EAAE;gBACd,YAAG,CAA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"getting-started-frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/getting-started-frontend-module.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAc,MAAM,8BAA8B,CAAC;AAI3E,OAAO,mCAAmC,CAAC;;AAE3C,wBAUG"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2018 Ericsson 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 getting_started_contribution_1 = require("./getting-started-contribution");
|
|
19
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
20
|
-
const getting_started_widget_1 = require("./getting-started-widget");
|
|
21
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
22
|
-
const getting_started_preferences_1 = require("../common/getting-started-preferences");
|
|
23
|
-
require("../../src/browser/style/index.css");
|
|
24
|
-
exports.default = new inversify_1.ContainerModule((bind) => {
|
|
25
|
-
(0, browser_1.bindViewContribution)(bind, getting_started_contribution_1.GettingStartedContribution);
|
|
26
|
-
bind(browser_1.FrontendApplicationContribution).toService(getting_started_contribution_1.GettingStartedContribution);
|
|
27
|
-
bind(browser_1.WidgetStatusBarContribution).toConstantValue((0, browser_1.noopWidgetStatusBarContribution)(getting_started_widget_1.GettingStartedWidget));
|
|
28
|
-
bind(getting_started_widget_1.GettingStartedWidget).toSelf();
|
|
29
|
-
bind(browser_1.WidgetFactory).toDynamicValue(context => ({
|
|
30
|
-
id: getting_started_widget_1.GettingStartedWidget.ID,
|
|
31
|
-
createWidget: () => context.container.get(getting_started_widget_1.GettingStartedWidget),
|
|
32
|
-
})).inSingletonScope();
|
|
33
|
-
(0, getting_started_preferences_1.bindGettingStartedPreferences)(bind);
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=getting-started-frontend-module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getting-started-frontend-module.js","sourceRoot":"","sources":["../../src/browser/getting-started-frontend-module.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,iFAA4E;AAC5E,4DAA2E;AAC3E,qEAAgE;AAChE,qDAA6K;AAC7K,uFAAsF;AACtF,6CAA2C;AAE3C,kBAAe,IAAI,2BAAe,CAAC,CAAC,IAAqB,EAAE,EAAE;IACzD,IAAA,8BAAoB,EAAC,IAAI,EAAE,yDAA0B,CAAC,CAAC;IACvD,IAAI,CAAC,yCAA+B,CAAC,CAAC,SAAS,CAAC,yDAA0B,CAAC,CAAC;IAC5E,IAAI,CAAC,qCAA2B,CAAC,CAAC,eAAe,CAAC,IAAA,yCAA+B,EAAC,6CAAoB,CAAC,CAAC,CAAC;IACzG,IAAI,CAAC,6CAAoB,CAAC,CAAC,MAAM,EAAE,CAAC;IACpC,IAAI,CAAC,uBAAa,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAC3C,EAAE,EAAE,6CAAoB,CAAC,EAAE;QAC3B,YAAY,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAuB,6CAAoB,CAAC;KACxF,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACvB,IAAA,2DAA6B,EAAC,IAAI,CAAC,CAAC;AACxC,CAAC,CAAC,CAAC"}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { LabelProvider, Message, ReactWidget } from '@theia/core/lib/browser';
|
|
3
|
-
import { WindowService } from '@theia/core/lib/browser/window/window-service';
|
|
4
|
-
import { CommandRegistry, PreferenceService } from '@theia/core/lib/common';
|
|
5
|
-
import { ApplicationInfo, ApplicationServer } from '@theia/core/lib/common/application-protocol';
|
|
6
|
-
import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
|
|
7
|
-
import URI from '@theia/core/lib/common/uri';
|
|
8
|
-
import * as React from '@theia/core/shared/react';
|
|
9
|
-
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
10
|
-
/**
|
|
11
|
-
* Default implementation of the `GettingStartedWidget`.
|
|
12
|
-
* The widget is displayed when there are currently no workspaces present.
|
|
13
|
-
* Some of the features displayed include:
|
|
14
|
-
* - `open` commands.
|
|
15
|
-
* - `recently used workspaces`.
|
|
16
|
-
* - `settings` commands.
|
|
17
|
-
* - `help` commands.
|
|
18
|
-
* - helpful links.
|
|
19
|
-
*/
|
|
20
|
-
export declare class GettingStartedWidget extends ReactWidget {
|
|
21
|
-
/**
|
|
22
|
-
* The widget `id`.
|
|
23
|
-
*/
|
|
24
|
-
static readonly ID = "getting.started.widget";
|
|
25
|
-
/**
|
|
26
|
-
* The widget `label` which is used for display purposes.
|
|
27
|
-
*/
|
|
28
|
-
static readonly LABEL: string;
|
|
29
|
-
/**
|
|
30
|
-
* The `ApplicationInfo` for the application if available.
|
|
31
|
-
* Used in order to obtain the version number of the application.
|
|
32
|
-
*/
|
|
33
|
-
protected applicationInfo: ApplicationInfo | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* The application name which is used for display purposes.
|
|
36
|
-
*/
|
|
37
|
-
protected applicationName: string;
|
|
38
|
-
protected home: string | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* The recently used workspaces limit.
|
|
41
|
-
* Used in order to limit the number of recently used workspaces to display.
|
|
42
|
-
*/
|
|
43
|
-
protected recentLimit: number;
|
|
44
|
-
/**
|
|
45
|
-
* The list of recently used workspaces.
|
|
46
|
-
*/
|
|
47
|
-
protected recentWorkspaces: string[];
|
|
48
|
-
/**
|
|
49
|
-
* Indicates whether the "ai-core" extension is available.
|
|
50
|
-
*/
|
|
51
|
-
protected aiIsIncluded: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Collection of useful links to display for end users.
|
|
54
|
-
*/
|
|
55
|
-
protected readonly documentationUrl = "https://www.theia-ide.org/docs/";
|
|
56
|
-
protected readonly compatibilityUrl = "https://eclipse-theia.github.io/vscode-theia-comparator/status.html";
|
|
57
|
-
protected readonly extensionUrl = "https://www.theia-ide.org/docs/authoring_extensions";
|
|
58
|
-
protected readonly pluginUrl = "https://www.theia-ide.org/docs/authoring_plugins";
|
|
59
|
-
protected readonly userAIDocUrl = "https://theia-ide.org/docs/user_ai/";
|
|
60
|
-
protected readonly theiaAIDocUrl = "https://theia-ide.org/docs/theia_ai/";
|
|
61
|
-
protected readonly dataUsageTelemetryUrl = "https://theia-ide.org/docs/data_usage_telemetry/";
|
|
62
|
-
protected readonly ghProjectUrl = "https://github.com/eclipse-theia/theia/issues/new/choose";
|
|
63
|
-
protected readonly appServer: ApplicationServer;
|
|
64
|
-
protected readonly commandRegistry: CommandRegistry;
|
|
65
|
-
protected readonly environments: EnvVariablesServer;
|
|
66
|
-
protected readonly labelProvider: LabelProvider;
|
|
67
|
-
protected readonly windowService: WindowService;
|
|
68
|
-
protected readonly workspaceService: WorkspaceService;
|
|
69
|
-
protected readonly preferenceService: PreferenceService;
|
|
70
|
-
protected init(): void;
|
|
71
|
-
protected doInit(): Promise<void>;
|
|
72
|
-
protected onActivateRequest(msg: Message): void;
|
|
73
|
-
/**
|
|
74
|
-
* Render the content of the widget.
|
|
75
|
-
*/
|
|
76
|
-
protected render(): React.ReactNode;
|
|
77
|
-
/**
|
|
78
|
-
* Render the widget header.
|
|
79
|
-
* Renders the title `{applicationName} Getting Started`.
|
|
80
|
-
*/
|
|
81
|
-
protected renderHeader(): React.ReactNode;
|
|
82
|
-
/**
|
|
83
|
-
* Render the `Start` section.
|
|
84
|
-
* Displays a collection of "start-to-work" related commands like `open` commands and some other.
|
|
85
|
-
*/
|
|
86
|
-
protected renderStart(): React.ReactNode;
|
|
87
|
-
/**
|
|
88
|
-
* Render the recently used workspaces section.
|
|
89
|
-
*/
|
|
90
|
-
protected renderRecentWorkspaces(): React.ReactNode;
|
|
91
|
-
/**
|
|
92
|
-
* Render the settings section.
|
|
93
|
-
* Generally used to display useful links.
|
|
94
|
-
*/
|
|
95
|
-
protected renderSettings(): React.ReactNode;
|
|
96
|
-
/**
|
|
97
|
-
* Render the help section.
|
|
98
|
-
*/
|
|
99
|
-
protected renderHelp(): React.ReactNode;
|
|
100
|
-
/**
|
|
101
|
-
* Render the version section.
|
|
102
|
-
*/
|
|
103
|
-
protected renderVersion(): React.ReactNode;
|
|
104
|
-
protected renderPreferences(): React.ReactNode;
|
|
105
|
-
protected renderNews(): React.ReactNode;
|
|
106
|
-
protected renderAIBanner(): React.ReactNode;
|
|
107
|
-
protected doOpenAIChatView: () => Promise<unknown>;
|
|
108
|
-
protected doOpenAIChatViewEnter: (e: React.KeyboardEvent) => void;
|
|
109
|
-
/**
|
|
110
|
-
* Build the list of workspace paths.
|
|
111
|
-
* @param workspaces {string[]} the list of workspaces.
|
|
112
|
-
* @returns {string[]} the list of workspace paths.
|
|
113
|
-
*/
|
|
114
|
-
protected buildPaths(workspaces: string[]): string[];
|
|
115
|
-
/**
|
|
116
|
-
* Trigger the create file command.
|
|
117
|
-
*/
|
|
118
|
-
protected doCreateFile: () => Promise<unknown>;
|
|
119
|
-
protected doCreateFileEnter: (e: React.KeyboardEvent) => void;
|
|
120
|
-
/**
|
|
121
|
-
* Trigger the open command.
|
|
122
|
-
*/
|
|
123
|
-
protected doOpen: () => Promise<unknown>;
|
|
124
|
-
protected doOpenEnter: (e: React.KeyboardEvent) => void;
|
|
125
|
-
/**
|
|
126
|
-
* Trigger the open file command.
|
|
127
|
-
*/
|
|
128
|
-
protected doOpenFile: () => Promise<unknown>;
|
|
129
|
-
protected doOpenFileEnter: (e: React.KeyboardEvent) => void;
|
|
130
|
-
/**
|
|
131
|
-
* Trigger the open folder command.
|
|
132
|
-
*/
|
|
133
|
-
protected doOpenFolder: () => Promise<unknown>;
|
|
134
|
-
protected doOpenFolderEnter: (e: React.KeyboardEvent) => void;
|
|
135
|
-
/**
|
|
136
|
-
* Trigger the open workspace command.
|
|
137
|
-
*/
|
|
138
|
-
protected doOpenWorkspace: () => Promise<unknown>;
|
|
139
|
-
protected doOpenWorkspaceEnter: (e: React.KeyboardEvent) => void;
|
|
140
|
-
/**
|
|
141
|
-
* Trigger the open recent workspace command.
|
|
142
|
-
*/
|
|
143
|
-
protected doOpenRecentWorkspace: () => Promise<unknown>;
|
|
144
|
-
protected doOpenRecentWorkspaceEnter: (e: React.KeyboardEvent) => void;
|
|
145
|
-
/**
|
|
146
|
-
* Trigger the open preferences command.
|
|
147
|
-
* Used to open the preferences widget.
|
|
148
|
-
*/
|
|
149
|
-
protected doOpenPreferences: () => Promise<unknown>;
|
|
150
|
-
protected doOpenPreferencesEnter: (e: React.KeyboardEvent) => void;
|
|
151
|
-
/**
|
|
152
|
-
* Trigger the open keyboard shortcuts command.
|
|
153
|
-
* Used to open the keyboard shortcuts widget.
|
|
154
|
-
*/
|
|
155
|
-
protected doOpenKeyboardShortcuts: () => Promise<unknown>;
|
|
156
|
-
protected doOpenKeyboardShortcutsEnter: (e: React.KeyboardEvent) => void;
|
|
157
|
-
/**
|
|
158
|
-
* Open a workspace given its uri.
|
|
159
|
-
* @param uri {URI} the workspace uri.
|
|
160
|
-
*/
|
|
161
|
-
protected open: (uri: URI) => void;
|
|
162
|
-
protected openEnter: (e: React.KeyboardEvent, uri: URI) => void;
|
|
163
|
-
/**
|
|
164
|
-
* Open a link in an external window.
|
|
165
|
-
* @param url the link.
|
|
166
|
-
*/
|
|
167
|
-
protected doOpenExternalLink: (url: string) => undefined;
|
|
168
|
-
protected doOpenExternalLinkEnter: (e: React.KeyboardEvent, url: string) => void;
|
|
169
|
-
protected isEnterKey(e: React.KeyboardEvent): boolean;
|
|
170
|
-
}
|
|
171
|
-
export interface PreferencesProps {
|
|
172
|
-
preferenceService: PreferenceService;
|
|
173
|
-
}
|
|
174
|
-
//# sourceMappingURL=getting-started-widget.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getting-started-widget.d.ts","sourceRoot":"","sources":["../../src/browser/getting-started-widget.tsx"],"names":[],"mappings":";AAgBA,OAAO,EAAyC,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAErH,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC9E,OAAO,EAAE,eAAe,EAA4B,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACtG,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AACjG,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAE7C,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAqB,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEnF;;;;;;;;;GASG;AACH,qBACa,oBAAqB,SAAQ,WAAW;IAEjD;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,EAAE,4BAA4B;IAC9C;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAoC;IA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O,mBAAmB,UAItD;IAEF;;OAEG;IACH,SAAS,CAAC,qBAAqB,yBAAyF;IACxH,SAAS,CAAC,0BAA0B,MAAO,mBAAmB,UAI5D;IAEF;;;OAGG;IACH,SAAS,CAAC,iBAAiB,yBAAiF;IAC5G,SAAS,CAAC,sBAAsB,MAAO,mBAAmB,UAIxD;IAEF;;;OAGG;IACH,SAAS,CAAC,uBAAuB,yBAA8E;IAC/G,SAAS,CAAC,4BAA4B,MAAO,mBAAmB,UAI9D;IAEF;;;OAGG;IACH,SAAS,CAAC,IAAI,QAAS,GAAG,UAAqC;IAC/D,SAAS,CAAC,SAAS,MAAO,mBAAmB,OAAO,GAAG,UAIrD;IAEF;;;OAGG;IACH,SAAS,CAAC,kBAAkB,QAAS,MAAM,eAA+D;IAC1G,SAAS,CAAC,uBAAuB,MAAO,mBAAmB,OAAO,MAAM,UAItE;IAEF,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,OAAO;CAGxD;AAED,MAAM,WAAW,gBAAgB;IAC7B,iBAAiB,EAAE,iBAAiB,CAAC;CACxC"}
|
|
@@ -1,436 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2018 Ericsson 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
|
-
var GettingStartedWidget_1;
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.GettingStartedWidget = void 0;
|
|
20
|
-
const tslib_1 = require("tslib");
|
|
21
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
22
|
-
const frontend_application_config_provider_1 = require("@theia/core/lib/browser/frontend-application-config-provider");
|
|
23
|
-
const window_service_1 = require("@theia/core/lib/browser/window/window-service");
|
|
24
|
-
const common_1 = require("@theia/core/lib/common");
|
|
25
|
-
const application_protocol_1 = require("@theia/core/lib/common/application-protocol");
|
|
26
|
-
const env_variables_1 = require("@theia/core/lib/common/env-variables");
|
|
27
|
-
const nls_1 = require("@theia/core/lib/common/nls");
|
|
28
|
-
const uri_1 = require("@theia/core/lib/common/uri");
|
|
29
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
30
|
-
const React = require("@theia/core/shared/react");
|
|
31
|
-
const browser_2 = require("@theia/keymaps/lib/browser");
|
|
32
|
-
const browser_3 = require("@theia/workspace/lib/browser");
|
|
33
|
-
/**
|
|
34
|
-
* Default implementation of the `GettingStartedWidget`.
|
|
35
|
-
* The widget is displayed when there are currently no workspaces present.
|
|
36
|
-
* Some of the features displayed include:
|
|
37
|
-
* - `open` commands.
|
|
38
|
-
* - `recently used workspaces`.
|
|
39
|
-
* - `settings` commands.
|
|
40
|
-
* - `help` commands.
|
|
41
|
-
* - helpful links.
|
|
42
|
-
*/
|
|
43
|
-
let GettingStartedWidget = GettingStartedWidget_1 = class GettingStartedWidget extends browser_1.ReactWidget {
|
|
44
|
-
constructor() {
|
|
45
|
-
super(...arguments);
|
|
46
|
-
/**
|
|
47
|
-
* The application name which is used for display purposes.
|
|
48
|
-
*/
|
|
49
|
-
this.applicationName = frontend_application_config_provider_1.FrontendApplicationConfigProvider.get().applicationName;
|
|
50
|
-
/**
|
|
51
|
-
* The recently used workspaces limit.
|
|
52
|
-
* Used in order to limit the number of recently used workspaces to display.
|
|
53
|
-
*/
|
|
54
|
-
this.recentLimit = 5;
|
|
55
|
-
/**
|
|
56
|
-
* The list of recently used workspaces.
|
|
57
|
-
*/
|
|
58
|
-
this.recentWorkspaces = [];
|
|
59
|
-
/**
|
|
60
|
-
* Collection of useful links to display for end users.
|
|
61
|
-
*/
|
|
62
|
-
this.documentationUrl = 'https://www.theia-ide.org/docs/';
|
|
63
|
-
this.compatibilityUrl = 'https://eclipse-theia.github.io/vscode-theia-comparator/status.html';
|
|
64
|
-
this.extensionUrl = 'https://www.theia-ide.org/docs/authoring_extensions';
|
|
65
|
-
this.pluginUrl = 'https://www.theia-ide.org/docs/authoring_plugins';
|
|
66
|
-
this.userAIDocUrl = 'https://theia-ide.org/docs/user_ai/';
|
|
67
|
-
this.theiaAIDocUrl = 'https://theia-ide.org/docs/theia_ai/';
|
|
68
|
-
this.dataUsageTelemetryUrl = 'https://theia-ide.org/docs/data_usage_telemetry/';
|
|
69
|
-
this.ghProjectUrl = 'https://github.com/eclipse-theia/theia/issues/new/choose';
|
|
70
|
-
this.doOpenAIChatView = () => this.commandRegistry.executeCommand('aiChat:toggle');
|
|
71
|
-
this.doOpenAIChatViewEnter = (e) => {
|
|
72
|
-
if (this.isEnterKey(e)) {
|
|
73
|
-
this.doOpenAIChatView();
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* Trigger the create file command.
|
|
78
|
-
*/
|
|
79
|
-
this.doCreateFile = () => this.commandRegistry.executeCommand(browser_1.CommonCommands.PICK_NEW_FILE.id);
|
|
80
|
-
this.doCreateFileEnter = (e) => {
|
|
81
|
-
if (this.isEnterKey(e)) {
|
|
82
|
-
this.doCreateFile();
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Trigger the open command.
|
|
87
|
-
*/
|
|
88
|
-
this.doOpen = () => this.commandRegistry.executeCommand(browser_3.WorkspaceCommands.OPEN.id);
|
|
89
|
-
this.doOpenEnter = (e) => {
|
|
90
|
-
if (this.isEnterKey(e)) {
|
|
91
|
-
this.doOpen();
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* Trigger the open file command.
|
|
96
|
-
*/
|
|
97
|
-
this.doOpenFile = () => this.commandRegistry.executeCommand(browser_3.WorkspaceCommands.OPEN_FILE.id);
|
|
98
|
-
this.doOpenFileEnter = (e) => {
|
|
99
|
-
if (this.isEnterKey(e)) {
|
|
100
|
-
this.doOpenFile();
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Trigger the open folder command.
|
|
105
|
-
*/
|
|
106
|
-
this.doOpenFolder = () => this.commandRegistry.executeCommand(browser_3.WorkspaceCommands.OPEN_FOLDER.id);
|
|
107
|
-
this.doOpenFolderEnter = (e) => {
|
|
108
|
-
if (this.isEnterKey(e)) {
|
|
109
|
-
this.doOpenFolder();
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* Trigger the open workspace command.
|
|
114
|
-
*/
|
|
115
|
-
this.doOpenWorkspace = () => this.commandRegistry.executeCommand(browser_3.WorkspaceCommands.OPEN_WORKSPACE.id);
|
|
116
|
-
this.doOpenWorkspaceEnter = (e) => {
|
|
117
|
-
if (this.isEnterKey(e)) {
|
|
118
|
-
this.doOpenWorkspace();
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* Trigger the open recent workspace command.
|
|
123
|
-
*/
|
|
124
|
-
this.doOpenRecentWorkspace = () => this.commandRegistry.executeCommand(browser_3.WorkspaceCommands.OPEN_RECENT_WORKSPACE.id);
|
|
125
|
-
this.doOpenRecentWorkspaceEnter = (e) => {
|
|
126
|
-
if (this.isEnterKey(e)) {
|
|
127
|
-
this.doOpenRecentWorkspace();
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* Trigger the open preferences command.
|
|
132
|
-
* Used to open the preferences widget.
|
|
133
|
-
*/
|
|
134
|
-
this.doOpenPreferences = () => this.commandRegistry.executeCommand(browser_1.CommonCommands.OPEN_PREFERENCES.id);
|
|
135
|
-
this.doOpenPreferencesEnter = (e) => {
|
|
136
|
-
if (this.isEnterKey(e)) {
|
|
137
|
-
this.doOpenPreferences();
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
/**
|
|
141
|
-
* Trigger the open keyboard shortcuts command.
|
|
142
|
-
* Used to open the keyboard shortcuts widget.
|
|
143
|
-
*/
|
|
144
|
-
this.doOpenKeyboardShortcuts = () => this.commandRegistry.executeCommand(browser_2.KeymapsCommands.OPEN_KEYMAPS.id);
|
|
145
|
-
this.doOpenKeyboardShortcutsEnter = (e) => {
|
|
146
|
-
if (this.isEnterKey(e)) {
|
|
147
|
-
this.doOpenKeyboardShortcuts();
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
/**
|
|
151
|
-
* Open a workspace given its uri.
|
|
152
|
-
* @param uri {URI} the workspace uri.
|
|
153
|
-
*/
|
|
154
|
-
this.open = (uri) => this.workspaceService.open(uri);
|
|
155
|
-
this.openEnter = (e, uri) => {
|
|
156
|
-
if (this.isEnterKey(e)) {
|
|
157
|
-
this.open(uri);
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* Open a link in an external window.
|
|
162
|
-
* @param url the link.
|
|
163
|
-
*/
|
|
164
|
-
this.doOpenExternalLink = (url) => this.windowService.openNewWindow(url, { external: true });
|
|
165
|
-
this.doOpenExternalLinkEnter = (e, url) => {
|
|
166
|
-
if (this.isEnterKey(e)) {
|
|
167
|
-
this.doOpenExternalLink(url);
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
init() {
|
|
172
|
-
this.doInit();
|
|
173
|
-
}
|
|
174
|
-
async doInit() {
|
|
175
|
-
this.id = GettingStartedWidget_1.ID;
|
|
176
|
-
this.title.label = GettingStartedWidget_1.LABEL;
|
|
177
|
-
this.title.caption = GettingStartedWidget_1.LABEL;
|
|
178
|
-
this.title.closable = true;
|
|
179
|
-
this.applicationInfo = await this.appServer.getApplicationInfo();
|
|
180
|
-
this.recentWorkspaces = await this.workspaceService.recentWorkspaces();
|
|
181
|
-
this.home = new uri_1.default(await this.environments.getHomeDirUri()).path.toString();
|
|
182
|
-
const extensions = await this.appServer.getExtensionsInfos();
|
|
183
|
-
this.aiIsIncluded = extensions.find(ext => ext.name === '@theia/ai-core') !== undefined;
|
|
184
|
-
this.update();
|
|
185
|
-
}
|
|
186
|
-
onActivateRequest(msg) {
|
|
187
|
-
super.onActivateRequest(msg);
|
|
188
|
-
const elArr = this.node.getElementsByTagName('a');
|
|
189
|
-
if (elArr && elArr.length > 0) {
|
|
190
|
-
elArr[0].focus();
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Render the content of the widget.
|
|
195
|
-
*/
|
|
196
|
-
render() {
|
|
197
|
-
return React.createElement("div", { className: 'gs-container' },
|
|
198
|
-
React.createElement("div", { className: 'gs-content-container' },
|
|
199
|
-
this.aiIsIncluded &&
|
|
200
|
-
React.createElement("div", { className: 'gs-float shadow-pulse' }, this.renderAIBanner()),
|
|
201
|
-
this.renderHeader(),
|
|
202
|
-
React.createElement("hr", { className: 'gs-hr' }),
|
|
203
|
-
this.aiIsIncluded &&
|
|
204
|
-
React.createElement("div", { className: 'flex-grid' },
|
|
205
|
-
React.createElement("div", { className: 'col' }, this.renderNews())),
|
|
206
|
-
React.createElement("div", { className: 'flex-grid' },
|
|
207
|
-
React.createElement("div", { className: 'col' }, this.renderStart())),
|
|
208
|
-
React.createElement("div", { className: 'flex-grid' },
|
|
209
|
-
React.createElement("div", { className: 'col' }, this.renderRecentWorkspaces())),
|
|
210
|
-
React.createElement("div", { className: 'flex-grid' },
|
|
211
|
-
React.createElement("div", { className: 'col' }, this.renderSettings())),
|
|
212
|
-
React.createElement("div", { className: 'flex-grid' },
|
|
213
|
-
React.createElement("div", { className: 'col' }, this.renderHelp())),
|
|
214
|
-
React.createElement("div", { className: 'flex-grid' },
|
|
215
|
-
React.createElement("div", { className: 'col' }, this.renderVersion()))),
|
|
216
|
-
React.createElement("div", { className: 'gs-preference-container' }, this.renderPreferences()));
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Render the widget header.
|
|
220
|
-
* Renders the title `{applicationName} Getting Started`.
|
|
221
|
-
*/
|
|
222
|
-
renderHeader() {
|
|
223
|
-
return React.createElement("div", { className: 'gs-header' },
|
|
224
|
-
React.createElement("h1", null,
|
|
225
|
-
this.applicationName,
|
|
226
|
-
React.createElement("span", { className: 'gs-sub-header' }, ' ' + GettingStartedWidget_1.LABEL)));
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Render the `Start` section.
|
|
230
|
-
* Displays a collection of "start-to-work" related commands like `open` commands and some other.
|
|
231
|
-
*/
|
|
232
|
-
renderStart() {
|
|
233
|
-
const requireSingleOpen = common_1.isOSX || !common_1.environment.electron.is();
|
|
234
|
-
const createFile = React.createElement("div", { className: 'gs-action-container' },
|
|
235
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: this.doCreateFile, onKeyDown: this.doCreateFileEnter }, nls_1.nls.localizeByDefault('New File...')));
|
|
236
|
-
const open = requireSingleOpen && React.createElement("div", { className: 'gs-action-container' },
|
|
237
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: this.doOpen, onKeyDown: this.doOpenEnter }, nls_1.nls.localizeByDefault('Open')));
|
|
238
|
-
const openFile = !requireSingleOpen && React.createElement("div", { className: 'gs-action-container' },
|
|
239
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: this.doOpenFile, onKeyDown: this.doOpenFileEnter }, nls_1.nls.localizeByDefault('Open File')));
|
|
240
|
-
const openFolder = !requireSingleOpen && React.createElement("div", { className: 'gs-action-container' },
|
|
241
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: this.doOpenFolder, onKeyDown: this.doOpenFolderEnter }, nls_1.nls.localizeByDefault('Open Folder')));
|
|
242
|
-
const openWorkspace = (React.createElement("a", { role: 'button', tabIndex: 0, onClick: this.doOpenWorkspace, onKeyDown: this.doOpenWorkspaceEnter }, nls_1.nls.localizeByDefault('Open Workspace')));
|
|
243
|
-
return React.createElement("div", { className: 'gs-section' },
|
|
244
|
-
React.createElement("h3", { className: 'gs-section-header' },
|
|
245
|
-
React.createElement("i", { className: (0, browser_1.codicon)('folder-opened') }),
|
|
246
|
-
nls_1.nls.localizeByDefault('Start')),
|
|
247
|
-
createFile,
|
|
248
|
-
open,
|
|
249
|
-
openFile,
|
|
250
|
-
openFolder,
|
|
251
|
-
openWorkspace);
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Render the recently used workspaces section.
|
|
255
|
-
*/
|
|
256
|
-
renderRecentWorkspaces() {
|
|
257
|
-
const items = this.recentWorkspaces;
|
|
258
|
-
const paths = this.buildPaths(items);
|
|
259
|
-
const content = paths.slice(0, this.recentLimit).map((item, index) => React.createElement("div", { className: 'gs-action-container', key: index },
|
|
260
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: () => this.open(new uri_1.default(items[index])), onKeyDown: (e) => this.openEnter(e, new uri_1.default(items[index])) }, this.labelProvider.getName(new uri_1.default(items[index]))),
|
|
261
|
-
React.createElement("span", { className: 'gs-action-details' }, item)));
|
|
262
|
-
// If the recently used workspaces list exceeds the limit, display `More...` which triggers the recently used workspaces quick-open menu upon selection.
|
|
263
|
-
const more = paths.length > this.recentLimit && React.createElement("div", { className: 'gs-action-container' },
|
|
264
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: this.doOpenRecentWorkspace, onKeyDown: this.doOpenRecentWorkspaceEnter }, nls_1.nls.localizeByDefault('More...')));
|
|
265
|
-
return React.createElement("div", { className: 'gs-section' },
|
|
266
|
-
React.createElement("h3", { className: 'gs-section-header' },
|
|
267
|
-
React.createElement("i", { className: (0, browser_1.codicon)('history') }),
|
|
268
|
-
nls_1.nls.localizeByDefault('Recent')),
|
|
269
|
-
items.length > 0 ? content : React.createElement("p", { className: 'gs-no-recent' },
|
|
270
|
-
nls_1.nls.localizeByDefault('You have no recent folders,') + ' ',
|
|
271
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: this.doOpenFolder, onKeyDown: this.doOpenFolderEnter }, nls_1.nls.localizeByDefault('open a folder')),
|
|
272
|
-
' ' + nls_1.nls.localizeByDefault('to start.')),
|
|
273
|
-
more);
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* Render the settings section.
|
|
277
|
-
* Generally used to display useful links.
|
|
278
|
-
*/
|
|
279
|
-
renderSettings() {
|
|
280
|
-
return React.createElement("div", { className: 'gs-section' },
|
|
281
|
-
React.createElement("h3", { className: 'gs-section-header' },
|
|
282
|
-
React.createElement("i", { className: (0, browser_1.codicon)('settings-gear') }),
|
|
283
|
-
nls_1.nls.localizeByDefault('Settings')),
|
|
284
|
-
React.createElement("div", { className: 'gs-action-container' },
|
|
285
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: this.doOpenPreferences, onKeyDown: this.doOpenPreferencesEnter }, nls_1.nls.localizeByDefault('Open Settings'))),
|
|
286
|
-
React.createElement("div", { className: 'gs-action-container' },
|
|
287
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: this.doOpenKeyboardShortcuts, onKeyDown: this.doOpenKeyboardShortcutsEnter }, nls_1.nls.localizeByDefault('Open Keyboard Shortcuts'))));
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* Render the help section.
|
|
291
|
-
*/
|
|
292
|
-
renderHelp() {
|
|
293
|
-
return React.createElement("div", { className: 'gs-section' },
|
|
294
|
-
React.createElement("h3", { className: 'gs-section-header' },
|
|
295
|
-
React.createElement("i", { className: (0, browser_1.codicon)('question') }),
|
|
296
|
-
nls_1.nls.localizeByDefault('Help')),
|
|
297
|
-
React.createElement("div", { className: 'gs-action-container' },
|
|
298
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: () => this.doOpenExternalLink(this.documentationUrl), onKeyDown: (e) => this.doOpenExternalLinkEnter(e, this.documentationUrl) }, nls_1.nls.localizeByDefault('Documentation'))),
|
|
299
|
-
React.createElement("div", { className: 'gs-action-container' },
|
|
300
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: () => this.doOpenExternalLink(this.compatibilityUrl), onKeyDown: (e) => this.doOpenExternalLinkEnter(e, this.compatibilityUrl) }, nls_1.nls.localize('theia/getting-started/apiComparator', '{0} API Compatibility', 'VS Code'))),
|
|
301
|
-
React.createElement("div", { className: 'gs-action-container' },
|
|
302
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: () => this.doOpenExternalLink(this.extensionUrl), onKeyDown: (e) => this.doOpenExternalLinkEnter(e, this.extensionUrl) }, nls_1.nls.localize('theia/getting-started/newExtension', 'Building a New Extension'))),
|
|
303
|
-
React.createElement("div", { className: 'gs-action-container' },
|
|
304
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: () => this.doOpenExternalLink(this.pluginUrl), onKeyDown: (e) => this.doOpenExternalLinkEnter(e, this.pluginUrl) }, nls_1.nls.localize('theia/getting-started/newPlugin', 'Building a New Plugin'))),
|
|
305
|
-
React.createElement("div", { className: 'gs-action-container' },
|
|
306
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: () => this.doOpenExternalLink(this.dataUsageTelemetryUrl), onKeyDown: (e) => this.doOpenExternalLinkEnter(e, this.dataUsageTelemetryUrl) }, nls_1.nls.localize('theia/getting-started/telemetry', 'Data Usage & Telemetry'))));
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* Render the version section.
|
|
310
|
-
*/
|
|
311
|
-
renderVersion() {
|
|
312
|
-
return React.createElement("div", { className: 'gs-section' },
|
|
313
|
-
React.createElement("div", { className: 'gs-action-container' },
|
|
314
|
-
React.createElement("p", { className: 'gs-sub-header' }, this.applicationInfo ? nls_1.nls.localizeByDefault('Version: {0}', this.applicationInfo.version) : '')));
|
|
315
|
-
}
|
|
316
|
-
renderPreferences() {
|
|
317
|
-
return React.createElement(WelcomePreferences, { preferenceService: this.preferenceService });
|
|
318
|
-
}
|
|
319
|
-
renderNews() {
|
|
320
|
-
return React.createElement("div", { className: 'gs-section' },
|
|
321
|
-
React.createElement("h3", { className: 'gs-section-header' }, "\uD83D\uDE80 AI Support in the Theia IDE is available (Beta Version)! \u2728"),
|
|
322
|
-
React.createElement("div", { className: 'gs-action-container' },
|
|
323
|
-
React.createElement("a", { role: 'button', style: { fontSize: 'var(--theia-ui-font-size2)' }, tabIndex: 0, onClick: () => this.doOpenAIChatView(), onKeyDown: (e) => this.doOpenAIChatViewEnter(e) }, 'Open the AI Chat View now to learn how to start! ✨')));
|
|
324
|
-
}
|
|
325
|
-
renderAIBanner() {
|
|
326
|
-
return React.createElement("div", { className: 'gs-container gs-aifeature-container' },
|
|
327
|
-
React.createElement("div", { className: 'flex-grid' },
|
|
328
|
-
React.createElement("div", { className: 'col' },
|
|
329
|
-
React.createElement("h3", { className: 'gs-section-header' }, " \uD83D\uDE80 AI Support in the Theia IDE is available (Beta Version)! \u2728"),
|
|
330
|
-
React.createElement("div", { className: 'gs-action-container' },
|
|
331
|
-
"Theia IDE now contains AI support, which offers early access to cutting-edge AI capabilities within your IDE.",
|
|
332
|
-
React.createElement("br", null),
|
|
333
|
-
"Please note that these features are disabled by default, ensuring that users can opt-in at their discretion. For those who choose to enable AI support, it is important to be aware that these may generate continuous requests to the language models (LLMs) you provide access to. This might incur costs that you need to monitor closely.",
|
|
334
|
-
React.createElement("br", null),
|
|
335
|
-
"For more details, please visit \u00A0",
|
|
336
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: () => this.doOpenExternalLink(this.userAIDocUrl), onKeyDown: (e) => this.doOpenExternalLinkEnter(e, this.userAIDocUrl) }, 'the documentation'),
|
|
337
|
-
".",
|
|
338
|
-
React.createElement("br", null),
|
|
339
|
-
React.createElement("br", null),
|
|
340
|
-
"\uD83D\uDEA7 Please note that this feature is currently in a beta state and may undergo changes. We welcome your feedback, contributions, and sponsorship! To support the ongoing development of the AI capabilities please visit the\u00A0",
|
|
341
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: () => this.doOpenExternalLink(this.ghProjectUrl), onKeyDown: (e) => this.doOpenExternalLinkEnter(e, this.ghProjectUrl) }, 'Github Project'),
|
|
342
|
-
". \u00A0Thank you for being part of our community!",
|
|
343
|
-
React.createElement("br", null),
|
|
344
|
-
"The AI features are built on the framework Theia AI. If you want to build a custom AI-powered tool or IDE, Theia AI has been published as stable release. Check out ",
|
|
345
|
-
React.createElement("a", { role: 'button', tabIndex: 0, onClick: () => this.doOpenExternalLink(this.theiaAIDocUrl), onKeyDown: (e) => this.doOpenExternalLinkEnter(e, this.theiaAIDocUrl) }, 'the Theia AI documentation'),
|
|
346
|
-
"!"),
|
|
347
|
-
React.createElement("br", null),
|
|
348
|
-
React.createElement("div", { className: 'gs-action-container' },
|
|
349
|
-
React.createElement("a", { role: 'button', style: { fontSize: 'var(--theia-ui-font-size2)' }, tabIndex: 0, onClick: () => this.doOpenAIChatView(), onKeyDown: (e) => this.doOpenAIChatViewEnter(e) }, 'Open the AI Chat View now to learn how to start! ✨')))));
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* Build the list of workspace paths.
|
|
353
|
-
* @param workspaces {string[]} the list of workspaces.
|
|
354
|
-
* @returns {string[]} the list of workspace paths.
|
|
355
|
-
*/
|
|
356
|
-
buildPaths(workspaces) {
|
|
357
|
-
const paths = [];
|
|
358
|
-
workspaces.forEach(workspace => {
|
|
359
|
-
const uri = new uri_1.default(workspace);
|
|
360
|
-
const pathLabel = this.labelProvider.getLongName(uri);
|
|
361
|
-
const path = this.home ? common_1.Path.tildify(pathLabel, this.home) : pathLabel;
|
|
362
|
-
paths.push(path);
|
|
363
|
-
});
|
|
364
|
-
return paths;
|
|
365
|
-
}
|
|
366
|
-
isEnterKey(e) {
|
|
367
|
-
var _a;
|
|
368
|
-
return browser_1.Key.ENTER.keyCode === ((_a = browser_1.KeyCode.createKeyCode(e.nativeEvent).key) === null || _a === void 0 ? void 0 : _a.keyCode);
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
|
-
exports.GettingStartedWidget = GettingStartedWidget;
|
|
372
|
-
/**
|
|
373
|
-
* The widget `id`.
|
|
374
|
-
*/
|
|
375
|
-
GettingStartedWidget.ID = 'getting.started.widget';
|
|
376
|
-
/**
|
|
377
|
-
* The widget `label` which is used for display purposes.
|
|
378
|
-
*/
|
|
379
|
-
GettingStartedWidget.LABEL = nls_1.nls.localizeByDefault('Welcome');
|
|
380
|
-
tslib_1.__decorate([
|
|
381
|
-
(0, inversify_1.inject)(application_protocol_1.ApplicationServer),
|
|
382
|
-
tslib_1.__metadata("design:type", Object)
|
|
383
|
-
], GettingStartedWidget.prototype, "appServer", void 0);
|
|
384
|
-
tslib_1.__decorate([
|
|
385
|
-
(0, inversify_1.inject)(common_1.CommandRegistry),
|
|
386
|
-
tslib_1.__metadata("design:type", common_1.CommandRegistry)
|
|
387
|
-
], GettingStartedWidget.prototype, "commandRegistry", void 0);
|
|
388
|
-
tslib_1.__decorate([
|
|
389
|
-
(0, inversify_1.inject)(env_variables_1.EnvVariablesServer),
|
|
390
|
-
tslib_1.__metadata("design:type", Object)
|
|
391
|
-
], GettingStartedWidget.prototype, "environments", void 0);
|
|
392
|
-
tslib_1.__decorate([
|
|
393
|
-
(0, inversify_1.inject)(browser_1.LabelProvider),
|
|
394
|
-
tslib_1.__metadata("design:type", browser_1.LabelProvider)
|
|
395
|
-
], GettingStartedWidget.prototype, "labelProvider", void 0);
|
|
396
|
-
tslib_1.__decorate([
|
|
397
|
-
(0, inversify_1.inject)(window_service_1.WindowService),
|
|
398
|
-
tslib_1.__metadata("design:type", Object)
|
|
399
|
-
], GettingStartedWidget.prototype, "windowService", void 0);
|
|
400
|
-
tslib_1.__decorate([
|
|
401
|
-
(0, inversify_1.inject)(browser_3.WorkspaceService),
|
|
402
|
-
tslib_1.__metadata("design:type", browser_3.WorkspaceService)
|
|
403
|
-
], GettingStartedWidget.prototype, "workspaceService", void 0);
|
|
404
|
-
tslib_1.__decorate([
|
|
405
|
-
(0, inversify_1.inject)(common_1.PreferenceService),
|
|
406
|
-
tslib_1.__metadata("design:type", Object)
|
|
407
|
-
], GettingStartedWidget.prototype, "preferenceService", void 0);
|
|
408
|
-
tslib_1.__decorate([
|
|
409
|
-
(0, inversify_1.postConstruct)(),
|
|
410
|
-
tslib_1.__metadata("design:type", Function),
|
|
411
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
412
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
413
|
-
], GettingStartedWidget.prototype, "init", null);
|
|
414
|
-
exports.GettingStartedWidget = GettingStartedWidget = GettingStartedWidget_1 = tslib_1.__decorate([
|
|
415
|
-
(0, inversify_1.injectable)()
|
|
416
|
-
], GettingStartedWidget);
|
|
417
|
-
function WelcomePreferences(props) {
|
|
418
|
-
const [startupEditor, setStartupEditor] = React.useState(props.preferenceService.get('workbench.startupEditor', 'welcomePage'));
|
|
419
|
-
React.useEffect(() => {
|
|
420
|
-
const prefListener = props.preferenceService.onPreferenceChanged(change => {
|
|
421
|
-
if (change.preferenceName === 'workbench.startupEditor') {
|
|
422
|
-
const prefValue = change.newValue;
|
|
423
|
-
setStartupEditor(prefValue);
|
|
424
|
-
}
|
|
425
|
-
});
|
|
426
|
-
return () => prefListener.dispose();
|
|
427
|
-
}, [props.preferenceService]);
|
|
428
|
-
const handleChange = (e) => {
|
|
429
|
-
const newValue = e.target.checked ? 'welcomePage' : 'none';
|
|
430
|
-
props.preferenceService.updateValue('workbench.startupEditor', newValue);
|
|
431
|
-
};
|
|
432
|
-
return (React.createElement("div", { className: 'gs-preference' },
|
|
433
|
-
React.createElement("input", { type: "checkbox", className: "theia-input", id: "startupEditor", onChange: handleChange, checked: startupEditor === 'welcomePage' || startupEditor === 'welcomePageInEmptyWorkbench' }),
|
|
434
|
-
React.createElement("label", { htmlFor: "startupEditor" }, nls_1.nls.localizeByDefault('Show welcome page on startup'))));
|
|
435
|
-
}
|
|
436
|
-
//# sourceMappingURL=getting-started-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getting-started-widget.js","sourceRoot":"","sources":["../../src/browser/getting-started-widget.tsx"],"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,qDAAqH;AACrH,uHAAiH;AACjH,kFAA8E;AAC9E,mDAAsG;AACtG,sFAAiG;AACjG,wEAA0E;AAC1E,oDAAiD;AACjD,oDAA6C;AAC7C,4DAAiF;AACjF,kDAAkD;AAClD,wDAA6D;AAC7D,0DAAmF;AAEnF;;;;;;;;;GASG;AAEI,IAAM,oBAAoB,4BAA1B,MAAM,oBAAqB,SAAQ,qBAAW;IAA9C;;QAgBH;;WAEG;QACO,oBAAe,GAAG,wEAAiC,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC;QAIpF;;;WAGG;QACO,gBAAW,GAAG,CAAC,CAAC;QAC1B;;WAEG;QACO,qBAAgB,GAAa,EAAE,CAAC;QAO1C;;WAEG;QACgB,qBAAgB,GAAG,iCAAiC,CAAC;QACrD,qBAAgB,GAAG,qEAAqE,CAAC;QACzF,iBAAY,GAAG,qDAAqD,CAAC;QACrE,cAAS,GAAG,kDAAkD,CAAC;QAC/D,iBAAY,GAAG,qCAAqC,CAAC;QACrD,kBAAa,GAAG,sCAAsC,CAAC;QACvD,0BAAqB,GAAG,kDAAkD,CAAC;QAC3E,iBAAY,GAAG,0DAA0D,CAAC;QAwZnF,qBAAgB,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC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QACL,CAAC,CAAC,CAAC;QACH,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;IACxC,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAC9B,MAAM,YAAY,GAAG,CAAC,CAAsC,EAAE,EAAE;QAC5D,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC3D,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,yBAAyB,EAAE,QAAQ,CAAC,CAAC;IAC7E,CAAC,CAAC;IACF,OAAO,CACH,6BAAK,SAAS,EAAC,eAAe;QAC1B,+BACI,IAAI,EAAC,UAAU,EACf,SAAS,EAAC,aAAa,EACvB,EAAE,EAAC,eAAe,EAClB,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,aAAa,KAAK,aAAa,IAAI,aAAa,KAAK,6BAA6B,GAC7F;QACF,+BAAO,OAAO,EAAC,eAAe,IACzB,SAAG,CAAC,iBAAiB,CAAC,8BAA8B,CAAC,CAClD,CACN,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { interfaces } from '@theia/core/shared/inversify';
|
|
2
|
-
import { PreferenceProxy, PreferenceSchema, PreferenceService } from '@theia/core/lib/common/preferences';
|
|
3
|
-
export declare const GettingStartedPreferenceSchema: PreferenceSchema;
|
|
4
|
-
export interface GettingStartedConfiguration {
|
|
5
|
-
'workbench.startupEditor': string;
|
|
6
|
-
}
|
|
7
|
-
export declare const GettingStartedPreferenceContribution: unique symbol;
|
|
8
|
-
export declare const GettingStartedPreferences: unique symbol;
|
|
9
|
-
export type GettingStartedPreferences = PreferenceProxy<GettingStartedConfiguration>;
|
|
10
|
-
export declare function createGettingStartedPreferences(preferences: PreferenceService, schema?: PreferenceSchema): GettingStartedPreferences;
|
|
11
|
-
export declare function bindGettingStartedPreferences(bind: interfaces.Bind): void;
|
|
12
|
-
//# sourceMappingURL=getting-started-preferences.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getting-started-preferences.d.ts","sourceRoot":"","sources":["../../src/common/getting-started-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAGH,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACpB,MAAM,oCAAoC,CAAC;AAG5C,eAAO,MAAM,8BAA8B,EAAE,gBAkB5C,CAAC;AAEF,MAAM,WAAW,2BAA2B;IACxC,yBAAyB,EAAE,MAAM,CAAC;CACrC;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,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2023 Ericsson 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.bindGettingStartedPreferences = exports.createGettingStartedPreferences = exports.GettingStartedPreferences = exports.GettingStartedPreferenceContribution = exports.GettingStartedPreferenceSchema = void 0;
|
|
19
|
-
const preferences_1 = require("@theia/core/lib/common/preferences");
|
|
20
|
-
const nls_1 = require("@theia/core/lib/common/nls");
|
|
21
|
-
exports.GettingStartedPreferenceSchema = {
|
|
22
|
-
properties: {
|
|
23
|
-
'workbench.startupEditor': {
|
|
24
|
-
type: 'string',
|
|
25
|
-
enum: ['none', 'welcomePage', 'readme', 'newUntitledFile', 'welcomePageInEmptyWorkbench'],
|
|
26
|
-
enumDescriptions: [
|
|
27
|
-
nls_1.nls.localizeByDefault('Start without an editor.'),
|
|
28
|
-
nls_1.nls.localize('theia/getting-started/startup-editor/welcomePage', 'Open the Welcome page, with content to aid in getting started with {0} and extensions.', 'Theia'),
|
|
29
|
-
// eslint-disable-next-line max-len
|
|
30
|
-
nls_1.nls.localizeByDefault("Open the README when opening a folder that contains one, fallback to 'welcomePage' otherwise. Note: This is only observed as a global configuration, it will be ignored if set in a workspace or folder configuration."),
|
|
31
|
-
nls_1.nls.localizeByDefault('Open a new untitled text file (only applies when opening an empty window).'),
|
|
32
|
-
nls_1.nls.localizeByDefault('Open the Welcome page when opening an empty workbench.'),
|
|
33
|
-
],
|
|
34
|
-
default: 'welcomePage',
|
|
35
|
-
description: nls_1.nls.localizeByDefault('Controls which editor is shown at startup, if none are restored from the previous session.')
|
|
36
|
-
},
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
exports.GettingStartedPreferenceContribution = Symbol('GettingStartedPreferenceContribution');
|
|
40
|
-
exports.GettingStartedPreferences = Symbol('GettingStartedPreferences');
|
|
41
|
-
function createGettingStartedPreferences(preferences, schema = exports.GettingStartedPreferenceSchema) {
|
|
42
|
-
return (0, preferences_1.createPreferenceProxy)(preferences, schema);
|
|
43
|
-
}
|
|
44
|
-
exports.createGettingStartedPreferences = createGettingStartedPreferences;
|
|
45
|
-
function bindGettingStartedPreferences(bind) {
|
|
46
|
-
bind(exports.GettingStartedPreferences).toDynamicValue(ctx => {
|
|
47
|
-
const preferences = ctx.container.get(preferences_1.PreferenceService);
|
|
48
|
-
const contribution = ctx.container.get(exports.GettingStartedPreferenceContribution);
|
|
49
|
-
return createGettingStartedPreferences(preferences, contribution.schema);
|
|
50
|
-
}).inSingletonScope();
|
|
51
|
-
bind(exports.GettingStartedPreferenceContribution).toConstantValue({ schema: exports.GettingStartedPreferenceSchema });
|
|
52
|
-
bind(preferences_1.PreferenceContribution).toService(exports.GettingStartedPreferenceContribution);
|
|
53
|
-
}
|
|
54
|
-
exports.bindGettingStartedPreferences = bindGettingStartedPreferences;
|
|
55
|
-
//# sourceMappingURL=getting-started-preferences.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getting-started-preferences.js","sourceRoot":"","sources":["../../src/common/getting-started-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,oEAM4C;AAC5C,oDAAiD;AAEpC,QAAA,8BAA8B,GAAqB;IAC5D,UAAU,EAAE;QACR,yBAAyB,EAAE;YACvB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,iBAAiB,EAAE,6BAA6B,CAAC;YACzF,gBAAgB,EAAE;gBACd,SAAG,CAAC,iBAAiB,CAAC,0BAA0B,CAAC;gBACjD,SAAG,CAAC,QAAQ,CAAC,kDAAkD,EAAE,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started-backend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAc,MAAM,8BAA8B,CAAC;;AAG3E,wBAEG"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2018 Ericsson 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 getting_started_preferences_1 = require("../common/getting-started-preferences");
|
|
20
|
-
exports.default = new inversify_1.ContainerModule((bind) => {
|
|
21
|
-
(0, getting_started_preferences_1.bindGettingStartedPreferences)(bind);
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=getting-started-backend-module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getting-started-backend-module.js","sourceRoot":"","sources":["../../src/node/getting-started-backend-module.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,4DAA2E;AAC3E,uFAAsF;AAEtF,kBAAe,IAAI,2BAAe,CAAC,CAAC,IAAqB,EAAE,EAAE;IACzD,IAAA,2DAA6B,EAAC,IAAI,CAAC,CAAC;AACxC,CAAC,CAAC,CAAC"}
|
package/lib/package.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=package.spec.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package.spec.d.ts","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":""}
|
package/lib/package.spec.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2018 Ericsson 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
|
-
/* note: this bogus test file is required so that
|
|
17
|
-
we are able to run mocha unit tests on this
|
|
18
|
-
package, without having any actual unit tests in it.
|
|
19
|
-
This way a coverage report will be generated,
|
|
20
|
-
showing 0% coverage, instead of no report.
|
|
21
|
-
This file can be removed once we have real unit
|
|
22
|
-
tests in place. */
|
|
23
|
-
describe('getting-started package', () => {
|
|
24
|
-
it('support code coverage statistics', () => true);
|
|
25
|
-
});
|
|
26
|
-
//# sourceMappingURL=package.spec.js.map
|
package/lib/package.spec.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.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;;;;;;qBAMqB;AAErB,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IAErC,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC"}
|