@eclipse-glsp/playwright-theia 2.9.0-next.12
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 +61 -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 +65 -0
- package/lib/integration/theia.integration.d.ts.map +1 -0
- package/lib/integration/theia.integration.js +101 -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 +123 -0
- package/src/integration/theia.options.ts +50 -0
package/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# @eclipse-glsp/playwright-theia
|
|
2
|
+
|
|
3
|
+
Theia integration for the GLSP Playwright testing framework.
|
|
4
|
+
|
|
5
|
+
Use this package to test a GLSP diagram editor running inside a Theia application.
|
|
6
|
+
It contributes the `Theia` integration, its page objects, and the Theia specific key
|
|
7
|
+
bindings; everything else comes from
|
|
8
|
+
[`@eclipse-glsp/playwright`](https://github.com/eclipse-glsp/glsp-core/tree/master/e2e/playwright),
|
|
9
|
+
which is developed in the [glsp-core](https://github.com/eclipse-glsp/glsp-core) repository.
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Create the integration options with `defineTheiaIntegration()` in your Playwright
|
|
14
|
+
configuration. The returned options carry the factory that the `integration` fixture uses,
|
|
15
|
+
so no further registration is needed:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { defineTheiaIntegration } from '@eclipse-glsp/playwright-theia';
|
|
19
|
+
|
|
20
|
+
const integrationOptions = defineTheiaIntegration({
|
|
21
|
+
url: 'http://localhost:3000',
|
|
22
|
+
widgetId: 'workflow-diagram',
|
|
23
|
+
workspace: '../workspace',
|
|
24
|
+
file: 'example1.wf'
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export default {
|
|
28
|
+
projects: [{ name: 'theia', use: { integrationOptions } }]
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Tests themselves stay integration-agnostic and keep importing `test` and `expect` from
|
|
33
|
+
`@eclipse-glsp/playwright`.
|
|
34
|
+
|
|
35
|
+
## Documentation
|
|
36
|
+
|
|
37
|
+
The framework concepts (integrations, page objects, extensions, flows) are documented once, in
|
|
38
|
+
the core package: [concepts](https://github.com/eclipse-glsp/glsp-core/tree/master/e2e/playwright/docs).
|
|
39
|
+
Only what is specific to Theia is documented here, under [`docs/`](./docs).
|
|
40
|
+
|
|
41
|
+
## Building
|
|
42
|
+
|
|
43
|
+
This package is built as part of the [glsp-theia-integration](https://github.com/eclipse-glsp/glsp-theia-integration)
|
|
44
|
+
workspace:
|
|
45
|
+
|
|
46
|
+
```console
|
|
47
|
+
pnpm install
|
|
48
|
+
pnpm compile
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## License
|
|
52
|
+
|
|
53
|
+
This program and the accompanying materials are made available under the terms of the
|
|
54
|
+
[Eclipse Public License v. 2.0](http://www.eclipse.org/legal/epl-2.0) which is available at
|
|
55
|
+
https://www.eclipse.org/legal/epl-2.0, or the
|
|
56
|
+
[GNU General Public License, version 2](https://www.gnu.org/software/classpath/license.html)
|
|
57
|
+
with the GNU Classpath Exception.
|
|
58
|
+
|
|
59
|
+
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# The Theia integration
|
|
2
|
+
|
|
3
|
+
This document covers only what is specific to running the GLSP Playwright framework against a Theia
|
|
4
|
+
application. The framework concepts it builds on — integrations, page objects, extensions, flows and
|
|
5
|
+
capabilities — are documented once, in the core package:
|
|
6
|
+
[glsp-core/e2e/playwright/docs](https://github.com/eclipse-glsp/glsp-core/tree/master/e2e/playwright/docs).
|
|
7
|
+
|
|
8
|
+
## What the integration provides
|
|
9
|
+
|
|
10
|
+
`TheiaIntegration` launches a Theia application through `@theia/playwright`'s `TheiaAppLoader`,
|
|
11
|
+
opens a diagram editor on a file in the workspace, and exposes the diagram to the shared page
|
|
12
|
+
objects. Beyond the base `Integration` contract it implements three capabilities that only exist in
|
|
13
|
+
an IDE context:
|
|
14
|
+
|
|
15
|
+
| Capability | What Theia contributes |
|
|
16
|
+
| ---------------------------- | ---------------------------------------------------------------------------------------- |
|
|
17
|
+
| `ContextMenuIntegration` | The Lumino menu rendered as a sibling of `body`, so the shared context-menu suites apply |
|
|
18
|
+
| `DiagramShortcutIntegration` | Host key bindings (`hostDiagramShortcuts`) rather than the browser-level defaults |
|
|
19
|
+
| `MarkerNavigatorIntegration` | `TheiaMarkerNavigator`, because Theia rebinds the marker navigation keys |
|
|
20
|
+
|
|
21
|
+
Suites in `@eclipse-glsp-examples/workflow-e2e` branch on these capabilities, so a Theia run picks up
|
|
22
|
+
the context-menu and marker-navigation cases automatically — no per-suite overrides are needed.
|
|
23
|
+
|
|
24
|
+
Since `@theia/playwright` 1.77 the loader runs the application on the fixture page, so the
|
|
25
|
+
fixture's own teardown cleans it up. Older loaders create a separate page outside Playwright's test
|
|
26
|
+
fixtures; for those, `TheiaIntegration.close()` closes that page (and its browser context) during
|
|
27
|
+
integration teardown rather than leaving it alive until the worker exits. If such an older loader
|
|
28
|
+
fails before it returns the application, its page is not covered by this teardown.
|
|
29
|
+
|
|
30
|
+
## Options
|
|
31
|
+
|
|
32
|
+
`defineTheiaIntegration()` is the only supported way to build the options: it fills in the
|
|
33
|
+
discriminator and the factory that the `integration` fixture uses, so a hand-written options literal
|
|
34
|
+
is a compile error.
|
|
35
|
+
|
|
36
|
+
| Option | Required | Description |
|
|
37
|
+
| ----------- | -------- | ---------------------------------------------------------------------- |
|
|
38
|
+
| `url` | yes | Base URL of the Theia application |
|
|
39
|
+
| `widgetId` | yes | Id of the diagram widget, e.g. `workflow-diagram` |
|
|
40
|
+
| `workspace` | no | Path to a workspace directory; copied to a temporary location per test |
|
|
41
|
+
| `file` | no | File in the workspace to open; when omitted no editor is opened |
|
|
42
|
+
|
|
43
|
+
## Launching the GLSP server
|
|
44
|
+
|
|
45
|
+
Theia's `GLSPServerContribution` spawns the GLSP server itself unless the application is started
|
|
46
|
+
with `--glspDebug`, which sets `launchedExternally`. Tests that want to own the server lifecycle —
|
|
47
|
+
to isolate its log output, or to run against a Java server — therefore start the server themselves
|
|
48
|
+
and pass `--glspDebug` to Theia. Without that flag the application launches its own server and the
|
|
49
|
+
two compete for the same port.
|
|
50
|
+
|
|
51
|
+
See [`workflow-theia-e2e`](../../workflow-theia-e2e/README.md) for a complete configuration.
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
This program and the accompanying materials are made available under the terms of the
|
|
56
|
+
[Eclipse Public License v. 2.0](http://www.eclipse.org/legal/epl-2.0) which is available at
|
|
57
|
+
https://www.eclipse.org/legal/epl-2.0, or the
|
|
58
|
+
[GNU General Public License, version 2](https://www.gnu.org/software/classpath/license.html)
|
|
59
|
+
with the GNU Classpath Exception.
|
|
60
|
+
|
|
61
|
+
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 EclipseSource 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
|
+
export * from './integration';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,eAAe,CAAC"}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/********************************************************************************
|
|
18
|
+
* Copyright (c) 2026 EclipseSource and others.
|
|
19
|
+
*
|
|
20
|
+
* This program and the accompanying materials are made available under the
|
|
21
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
22
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
23
|
+
*
|
|
24
|
+
* This Source Code may also be made available under the following Secondary
|
|
25
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
26
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
27
|
+
* with the GNU Classpath Exception which is available at
|
|
28
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
29
|
+
*
|
|
30
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
31
|
+
********************************************************************************/
|
|
32
|
+
__exportStar(require("./integration"), exports);
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,gDAA8B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 EclipseSource 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
|
+
export * from './po';
|
|
17
|
+
export * from './theia-keybindings';
|
|
18
|
+
export * from './theia.integration';
|
|
19
|
+
export * from './theia.options';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/integration/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,MAAM,CAAC;AACrB,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/********************************************************************************
|
|
18
|
+
* Copyright (c) 2026 EclipseSource and others.
|
|
19
|
+
*
|
|
20
|
+
* This program and the accompanying materials are made available under the
|
|
21
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
22
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
23
|
+
*
|
|
24
|
+
* This Source Code may also be made available under the following Secondary
|
|
25
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
26
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
27
|
+
* with the GNU Classpath Exception which is available at
|
|
28
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
29
|
+
*
|
|
30
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
31
|
+
********************************************************************************/
|
|
32
|
+
__exportStar(require("./po"), exports);
|
|
33
|
+
__exportStar(require("./theia-keybindings"), exports);
|
|
34
|
+
__exportStar(require("./theia.integration"), exports);
|
|
35
|
+
__exportStar(require("./theia.options"), exports);
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/integration/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,uCAAqB;AACrB,sDAAoC;AACpC,sDAAoC;AACpC,kDAAgC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2024-2026 EclipseSource 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
|
+
export * from './theia-glsp-app.po';
|
|
17
|
+
export * from './theia-glsp-editor.po';
|
|
18
|
+
export * from './theia-notifications.po';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integration/po/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/********************************************************************************
|
|
18
|
+
* Copyright (c) 2024-2026 EclipseSource and others.
|
|
19
|
+
*
|
|
20
|
+
* This program and the accompanying materials are made available under the
|
|
21
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
22
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
23
|
+
*
|
|
24
|
+
* This Source Code may also be made available under the following Secondary
|
|
25
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
26
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
27
|
+
* with the GNU Classpath Exception which is available at
|
|
28
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
29
|
+
*
|
|
30
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
31
|
+
********************************************************************************/
|
|
32
|
+
__exportStar(require("./theia-glsp-app.po"), exports);
|
|
33
|
+
__exportStar(require("./theia-glsp-editor.po"), exports);
|
|
34
|
+
__exportStar(require("./theia-notifications.po"), exports);
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integration/po/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,sDAAoC;AACpC,yDAAuC;AACvC,2DAAyC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
import { Page } from '@playwright/test';
|
|
17
|
+
import { TheiaApp, TheiaEditor, TheiaWorkspace } from '@theia/playwright';
|
|
18
|
+
import type { TheiaIntegrationOptions } from '../theia.options';
|
|
19
|
+
import { TheiaNotifications } from './theia-notifications.po';
|
|
20
|
+
/**
|
|
21
|
+
* App for accessing the [Theia Page Objects](https://www.npmjs.com/package/@theia/playwright).
|
|
22
|
+
*/
|
|
23
|
+
export declare class TheiaGLSPApp extends TheiaApp {
|
|
24
|
+
protected _options: TheiaIntegrationOptions;
|
|
25
|
+
notifications: TheiaNotifications;
|
|
26
|
+
get options(): TheiaIntegrationOptions;
|
|
27
|
+
constructor(page: Page, workspace: TheiaWorkspace, isElectron: boolean);
|
|
28
|
+
initialize(options: TheiaIntegrationOptions): void;
|
|
29
|
+
protected createNotifications(): TheiaNotifications;
|
|
30
|
+
openEditor<T extends TheiaEditor>(filePath: string, editorFactory: new (editorFilePath: string, app: TheiaGLSPApp) => T, editorName?: string | undefined, expectFileNodes?: boolean | undefined): Promise<T>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=theia-glsp-app.po.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theia-glsp-app.po.d.ts","sourceRoot":"","sources":["../../../src/integration/po/theia-glsp-app.po.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D;;GAEG;AACH,qBAAa,YAAa,SAAQ,QAAQ;IACtC,SAAS,CAAC,QAAQ,EAAE,uBAAuB,CAAC;IAE5C,aAAa,EAAE,kBAAkB,CAAC;IAElC,IAAI,OAAO,IAAI,uBAAuB,CAErC;IAED,YAAmB,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,OAAO,EAG5E;IAED,UAAU,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI,CAEjD;IAED,SAAS,CAAC,mBAAmB,IAAI,kBAAkB,CAElD;IAEQ,UAAU,CAAC,CAAC,SAAS,WAAW,EACrC,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,KAAK,CAAC,EACnE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,EAC/B,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,GACtC,OAAO,CAAC,CAAC,CAAC,CAEZ;CACJ"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2023-2026 Business Informatics Group (TU Wien) 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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.TheiaGLSPApp = void 0;
|
|
19
|
+
const playwright_1 = require("@theia/playwright");
|
|
20
|
+
const theia_notifications_po_1 = require("./theia-notifications.po");
|
|
21
|
+
/**
|
|
22
|
+
* App for accessing the [Theia Page Objects](https://www.npmjs.com/package/@theia/playwright).
|
|
23
|
+
*/
|
|
24
|
+
class TheiaGLSPApp extends playwright_1.TheiaApp {
|
|
25
|
+
get options() {
|
|
26
|
+
return this._options;
|
|
27
|
+
}
|
|
28
|
+
constructor(page, workspace, isElectron) {
|
|
29
|
+
super(page, workspace, isElectron);
|
|
30
|
+
this.notifications = this.createNotifications();
|
|
31
|
+
}
|
|
32
|
+
initialize(options) {
|
|
33
|
+
this._options = options;
|
|
34
|
+
}
|
|
35
|
+
createNotifications() {
|
|
36
|
+
return new theia_notifications_po_1.TheiaNotifications(this);
|
|
37
|
+
}
|
|
38
|
+
openEditor(filePath, editorFactory, editorName, expectFileNodes) {
|
|
39
|
+
return super.openEditor(filePath, editorFactory, editorName, expectFileNodes);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.TheiaGLSPApp = TheiaGLSPApp;
|
|
43
|
+
//# sourceMappingURL=theia-glsp-app.po.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theia-glsp-app.po.js","sourceRoot":"","sources":["../../../src/integration/po/theia-glsp-app.po.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAGlF,kDAA0E;AAE1E,qEAA8D;AAE9D;;GAEG;AACH,kBAA0B,SAAQ,qBAAQ;IAKtC,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAED,YAAmB,IAAU,EAAE,SAAyB,EAAE,UAAmB;QACzE,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,mBAAmB,EAAE,CAAC;IACpD,CAAC;IAED,UAAU,CAAC,OAAgC;QACvC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5B,CAAC;IAES,mBAAmB;QACzB,OAAO,IAAI,2CAAkB,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAEQ,UAAU,CACf,QAAgB,EAChB,aAAmE,EACnE,UAA+B,EAC/B,eAAqC;QAErC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,EAAE,aAAkD,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC;IACvH,CAAC;CACJ"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
import { TheiaEditor } from '@theia/playwright';
|
|
17
|
+
import type { TheiaGLSPApp } from './theia-glsp-app.po';
|
|
18
|
+
/**
|
|
19
|
+
* Custom Page Object for the Theia editor using the widget id of the GLSP editor
|
|
20
|
+
* to locate the correct editor in Theia.
|
|
21
|
+
*/
|
|
22
|
+
export declare class TheiaGLSPEditor extends TheiaEditor {
|
|
23
|
+
constructor(filePath: string, app: TheiaGLSPApp);
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=theia-glsp-editor.po.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theia-glsp-editor.po.d.ts","sourceRoot":"","sources":["../../../src/integration/po/theia-glsp-editor.po.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAe,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC5C,YAAY,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,EAa9C;CACJ"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2023-2026 Business Informatics Group (TU Wien) 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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.TheiaGLSPEditor = void 0;
|
|
19
|
+
const playwright_1 = require("@theia/playwright");
|
|
20
|
+
/**
|
|
21
|
+
* Custom Page Object for the Theia editor using the widget id of the GLSP editor
|
|
22
|
+
* to locate the correct editor in Theia.
|
|
23
|
+
*/
|
|
24
|
+
class TheiaGLSPEditor extends playwright_1.TheiaEditor {
|
|
25
|
+
constructor(filePath, app) {
|
|
26
|
+
// shell-tab-code-editor-opener:file:///c%3A/Users/user/AppData/Local/Temp/cloud-ws-JBUhb6/sample.txt:1
|
|
27
|
+
// code-editor-opener:file:///c%3A/Users/user/AppData/Local/Temp/cloud-ws-JBUhb6/sample.txt:1
|
|
28
|
+
super({
|
|
29
|
+
tabSelector: (0, playwright_1.normalizeId)(`#shell-tab-${app.options.widgetId}:${app.workspace.pathAsUrl(filePath)}
|
|
30
|
+
)}:1`),
|
|
31
|
+
viewSelector: (0, playwright_1.normalizeId)(`#${app.options.widgetId}:${app.workspace.pathAsUrl(filePath)}`)
|
|
32
|
+
}, app);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.TheiaGLSPEditor = TheiaGLSPEditor;
|
|
36
|
+
//# sourceMappingURL=theia-glsp-editor.po.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theia-glsp-editor.po.js","sourceRoot":"","sources":["../../../src/integration/po/theia-glsp-editor.po.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,kDAA6D;AAG7D;;;GAGG;AACH,qBAA6B,SAAQ,wBAAW;IAC5C,YAAY,QAAgB,EAAE,GAAiB;QAC3C,uGAAuG;QACvG,6FAA6F;QAC7F,KAAK,CACD;YACI,WAAW,EAAE,IAAA,wBAAW,EACpB,cAAc,GAAG,CAAC,OAAO,CAAC,QAAQ,IAAI,GAAG,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC;yBAClE,CACR;YACD,YAAY,EAAE,IAAA,wBAAW,EAAC,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,IAAI,GAAG,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC;SAC7F,EACD,GAAG,CACN,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2024-2026 EclipseSource 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
|
+
import { TheiaApp, TheiaPageObject } from '@theia/playwright';
|
|
17
|
+
/**
|
|
18
|
+
* Page Object for notifications.
|
|
19
|
+
*/
|
|
20
|
+
export declare class TheiaNotifications extends TheiaPageObject {
|
|
21
|
+
protected readonly selector: string;
|
|
22
|
+
readonly locator: import("playwright-core").Locator;
|
|
23
|
+
constructor(app: TheiaApp, selector?: string);
|
|
24
|
+
closeAll(): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=theia-notifications.po.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theia-notifications.po.d.ts","sourceRoot":"","sources":["../../../src/integration/po/theia-notifications.po.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,eAAe;IAK/C,SAAS,CAAC,QAAQ,CAAC,QAAQ;IAJ/B,QAAQ,CAAC,OAAO,oCAAC;IAEjB,YACI,GAAG,EAAE,QAAQ,EACM,QAAQ,SAAmC,EAIjE;IAEK,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAM9B;CACJ"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2024-2026 EclipseSource 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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.TheiaNotifications = void 0;
|
|
19
|
+
const playwright_1 = require("@theia/playwright");
|
|
20
|
+
/**
|
|
21
|
+
* Page Object for notifications.
|
|
22
|
+
*/
|
|
23
|
+
class TheiaNotifications extends playwright_1.TheiaPageObject {
|
|
24
|
+
constructor(app, selector = '.theia-notifications-container') {
|
|
25
|
+
super(app);
|
|
26
|
+
this.selector = selector;
|
|
27
|
+
this.locator = this.page.locator(this.selector);
|
|
28
|
+
}
|
|
29
|
+
async closeAll() {
|
|
30
|
+
for await (const clear of await this.locator.locator('[title="Clear"]').all()) {
|
|
31
|
+
if (await clear.isVisible()) {
|
|
32
|
+
await clear.click();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.TheiaNotifications = TheiaNotifications;
|
|
38
|
+
//# sourceMappingURL=theia-notifications.po.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theia-notifications.po.js","sourceRoot":"","sources":["../../../src/integration/po/theia-notifications.po.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,kDAA8D;AAE9D;;GAEG;AACH,wBAAgC,SAAQ,4BAAe;IAGnD,YACI,GAAa,EACM,QAAQ,GAAG,gCAAgC;QAE9D,KAAK,CAAC,GAAG,CAAC,CAAC;wBAFQ,QAAQ;QAG3B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,QAAQ;QACV,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC;YAC5E,IAAI,MAAM,KAAK,CAAC,SAAS,EAAE,EAAE,CAAC;gBAC1B,MAAM,KAAK,CAAC,KAAK,EAAE,CAAC;YACxB,CAAC;QACL,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 EclipseSource 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
|
+
import { MarkerNavigator } from '@eclipse-glsp/playwright';
|
|
17
|
+
/**
|
|
18
|
+
* Theia binds marker navigation to the same keys as its own problem navigation,
|
|
19
|
+
* rather than to the GLSP-Client defaults.
|
|
20
|
+
*/
|
|
21
|
+
export declare class TheiaMarkerNavigator extends MarkerNavigator {
|
|
22
|
+
protected readonly forwardKey = "F8";
|
|
23
|
+
protected readonly backwardKey = "Shift+F8";
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=theia-keybindings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theia-keybindings.d.ts","sourceRoot":"","sources":["../../src/integration/theia-keybindings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,eAAe;IACrD,SAAS,CAAC,QAAQ,CAAC,UAAU,QAAQ;IACrC,SAAS,CAAC,QAAQ,CAAC,WAAW,cAAc;CAC/C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TheiaMarkerNavigator = void 0;
|
|
4
|
+
/********************************************************************************
|
|
5
|
+
* Copyright (c) 2026 EclipseSource and others.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
9
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
10
|
+
*
|
|
11
|
+
* This Source Code may also be made available under the following Secondary
|
|
12
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
13
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
14
|
+
* with the GNU Classpath Exception which is available at
|
|
15
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
16
|
+
*
|
|
17
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
|
+
********************************************************************************/
|
|
19
|
+
const playwright_1 = require("@eclipse-glsp/playwright");
|
|
20
|
+
/**
|
|
21
|
+
* Theia binds marker navigation to the same keys as its own problem navigation,
|
|
22
|
+
* rather than to the GLSP-Client defaults.
|
|
23
|
+
*/
|
|
24
|
+
class TheiaMarkerNavigator extends playwright_1.MarkerNavigator {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this.forwardKey = 'F8';
|
|
28
|
+
this.backwardKey = 'Shift+F8';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.TheiaMarkerNavigator = TheiaMarkerNavigator;
|
|
32
|
+
//# sourceMappingURL=theia-keybindings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theia-keybindings.js","sourceRoot":"","sources":["../../src/integration/theia-keybindings.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yDAA2D;AAE3D;;;GAGG;AACH,0BAAkC,SAAQ,4BAAe;IAAzD;;QACuB,eAAU,GAAG,IAAI,CAAC;QAClB,gBAAW,GAAG,UAAU,CAAC;IAChD,CAAC;CAAA"}
|