|
2 | 2 | "schemaVersion": 1, |
3 | 3 | "description": "Editor action validation through `plugins.editorActions.decode`. Every case is sent as the request `{version, kind, icons, sourceBytes, text, value}`: `version` is required and is `0` (Core accepts only `0`, otherwise `Unsupported editor action validation version.`); `icons` and `sourceBytes` are the `host` members below, which the host declared in getCapabilities (`services.editor.options.actionIcons` and `limits.editorActionSourceBytes`); `kind` is `actions` for a collector result (one-based UTF-16 positions in `text`) or `invokeResult` for the result of a clicked action or alternative. Accepted cases list the normalized value; rejected cases reject the whole result.", |
4 | 4 | "host": { |
5 | | - "actionIcons": ["run", "run-all", "debug", "test", "test-passed", "test-failed", "test-skipped", "navigate-super", "navigate-implementations"], |
| 5 | + "actionIcons": [ |
| 6 | + "run", |
| 7 | + "run-all", |
| 8 | + "debug", |
| 9 | + "test", |
| 10 | + "test-passed", |
| 11 | + "test-failed", |
| 12 | + "test-skipped", |
| 13 | + "navigate-super", |
| 14 | + "navigate-implementations", |
| 15 | + "navigate-implemented", |
| 16 | + "navigate-implementing", |
| 17 | + "navigate-overridden", |
| 18 | + "navigate-overriding" |
| 19 | + ], |
6 | 20 | "actionSourceBytes": 1048576 |
7 | 21 | }, |
8 | 22 | "cases": [ |
|
58 | 72 | ] |
59 | 73 | } |
60 | 74 | }, |
| 75 | + { |
| 76 | + "name": "navigation markers distinguish interface implementations and inheritance overrides", |
| 77 | + "kind": "actions", |
| 78 | + "text": "interface Service { void run(); }\nclass Impl implements Service {\n public void run() {}\n}\nclass Base { void step() {} }\nclass Sub extends Base {\n void step() {}\n}\n", |
| 79 | + "value": { |
| 80 | + "actions": [ |
| 81 | + { "id": "iface-down", "range": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 10 } }, "title": "Go to implementations", "icon": "navigate-implemented", "invoke": { "functionID": "nav.invoke", "params": { "direction": "down", "relation": "interface" } } }, |
| 82 | + { "id": "impl-up", "range": { "start": { "line": 3, "column": 1 }, "end": { "line": 3, "column": 2 } }, "title": "Go to interface declaration", "icon": "navigate-implementing", "invoke": { "functionID": "nav.invoke", "params": { "direction": "up", "relation": "interface" } } }, |
| 83 | + { "id": "base-down", "range": { "start": { "line": 5, "column": 1 }, "end": { "line": 5, "column": 6 } }, "title": "Go to overriding subclasses", "icon": "navigate-overridden", "invoke": { "functionID": "nav.invoke", "params": { "direction": "down", "relation": "inheritance" } } }, |
| 84 | + { "id": "sub-up", "range": { "start": { "line": 7, "column": 1 }, "end": { "line": 7, "column": 2 } }, "title": "Go to super method", "icon": "navigate-overriding", "invoke": { "functionID": "nav.invoke", "params": { "direction": "up", "relation": "inheritance" } } } |
| 85 | + ] |
| 86 | + }, |
| 87 | + "expected": { |
| 88 | + "status": "accepted", |
| 89 | + "value": [ |
| 90 | + { "id": "iface-down", "range": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 10 } }, "title": "Go to implementations", "icon": "navigate-implemented", "invoke": { "functionID": "nav.invoke", "params": { "direction": "down", "relation": "interface" } } }, |
| 91 | + { "id": "impl-up", "range": { "start": { "line": 3, "column": 1 }, "end": { "line": 3, "column": 2 } }, "title": "Go to interface declaration", "icon": "navigate-implementing", "invoke": { "functionID": "nav.invoke", "params": { "direction": "up", "relation": "interface" } } }, |
| 92 | + { "id": "base-down", "range": { "start": { "line": 5, "column": 1 }, "end": { "line": 5, "column": 6 } }, "title": "Go to overriding subclasses", "icon": "navigate-overridden", "invoke": { "functionID": "nav.invoke", "params": { "direction": "down", "relation": "inheritance" } } }, |
| 93 | + { "id": "sub-up", "range": { "start": { "line": 7, "column": 1 }, "end": { "line": 7, "column": 2 } }, "title": "Go to super method", "icon": "navigate-overriding", "invoke": { "functionID": "nav.invoke", "params": { "direction": "up", "relation": "inheritance" } } } |
| 94 | + ] |
| 95 | + } |
| 96 | + }, |
61 | 97 | { |
62 | 98 | "name": "an icon the host did not declare", |
63 | 99 | "kind": "actions", |
|
0 commit comments