@eclipse-glsp/playwright-theia 2.9.0-next.13
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 +642 -0
- package/README.md +59 -0
- package/docs/theia-integration.md +55 -0
- package/lib/index.d.ts +17 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +33 -0
- package/lib/index.js.map +1 -0
- package/lib/integration/index.d.ts +20 -0
- package/lib/integration/index.d.ts.map +1 -0
- package/lib/integration/index.js +36 -0
- package/lib/integration/index.js.map +1 -0
- package/lib/integration/po/index.d.ts +19 -0
- package/lib/integration/po/index.d.ts.map +1 -0
- package/lib/integration/po/index.js +35 -0
- package/lib/integration/po/index.js.map +1 -0
- package/lib/integration/po/theia-glsp-app.po.d.ts +32 -0
- package/lib/integration/po/theia-glsp-app.po.d.ts.map +1 -0
- package/lib/integration/po/theia-glsp-app.po.js +43 -0
- package/lib/integration/po/theia-glsp-app.po.js.map +1 -0
- package/lib/integration/po/theia-glsp-editor.po.d.ts +25 -0
- package/lib/integration/po/theia-glsp-editor.po.d.ts.map +1 -0
- package/lib/integration/po/theia-glsp-editor.po.js +36 -0
- package/lib/integration/po/theia-glsp-editor.po.js.map +1 -0
- package/lib/integration/po/theia-notifications.po.d.ts +26 -0
- package/lib/integration/po/theia-notifications.po.d.ts.map +1 -0
- package/lib/integration/po/theia-notifications.po.js +38 -0
- package/lib/integration/po/theia-notifications.po.js.map +1 -0
- package/lib/integration/theia-keybindings.d.ts +25 -0
- package/lib/integration/theia-keybindings.d.ts.map +1 -0
- package/lib/integration/theia-keybindings.js +32 -0
- package/lib/integration/theia-keybindings.js.map +1 -0
- package/lib/integration/theia.integration.d.ts +59 -0
- package/lib/integration/theia.integration.d.ts.map +1 -0
- package/lib/integration/theia.integration.js +91 -0
- package/lib/integration/theia.integration.js.map +1 -0
- package/lib/integration/theia.options.d.ts +44 -0
- package/lib/integration/theia.options.d.ts.map +1 -0
- package/lib/integration/theia.options.js +26 -0
- package/lib/integration/theia.options.js.map +1 -0
- package/package.json +72 -0
- package/src/index.ts +16 -0
- package/src/integration/index.ts +19 -0
- package/src/integration/po/index.ts +18 -0
- package/src/integration/po/theia-glsp-app.po.ts +55 -0
- package/src/integration/po/theia-glsp-editor.po.ts +39 -0
- package/src/integration/po/theia-notifications.po.ts +40 -0
- package/src/integration/theia-keybindings.ts +25 -0
- package/src/integration/theia.integration.ts +112 -0
- package/src/integration/theia.options.ts +50 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023-2026 Business Informatics Group (TU Wien) 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 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
|
|
17
|
+
import type { BaseIntegrationOptions, IntegrationFactory, IntegrationOptions } from '@eclipse-glsp/playwright';
|
|
18
|
+
|
|
19
|
+
export interface TheiaIntegrationOptions extends BaseIntegrationOptions {
|
|
20
|
+
type: 'Theia';
|
|
21
|
+
/**
|
|
22
|
+
* Required, so that a hand-written options literal is a compile error.
|
|
23
|
+
* Use {@link defineTheiaIntegration} to create the options.
|
|
24
|
+
*/
|
|
25
|
+
integrationFactory: IntegrationFactory<TheiaIntegrationOptions>;
|
|
26
|
+
url: string;
|
|
27
|
+
widgetId: string;
|
|
28
|
+
workspace?: string;
|
|
29
|
+
file?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The hand-written part of {@link TheiaIntegrationOptions}, i.e. everything except the
|
|
34
|
+
* discriminator and the factory that {@link defineTheiaIntegration} fills in.
|
|
35
|
+
*/
|
|
36
|
+
export type TheiaIntegrationConfig = Omit<TheiaIntegrationOptions, 'type' | 'integrationFactory'>;
|
|
37
|
+
|
|
38
|
+
declare global {
|
|
39
|
+
namespace GLSPPlaywright {
|
|
40
|
+
interface IntegrationOptionsMap {
|
|
41
|
+
Theia: TheiaIntegrationOptions;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export namespace TheiaIntegrationOptions {
|
|
47
|
+
export function is(options?: IntegrationOptions): options is TheiaIntegrationOptions {
|
|
48
|
+
return options?.type === 'Theia';
|
|
49
|
+
}
|
|
50
|
+
}
|