@eclipse-glsp/client 2.6.0-next.5 → 2.6.0-next.6
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/lib/base/messages.json +68 -57
- package/lib/base/tool-manager/tool-manager.d.ts +2 -2
- package/lib/base/tool-manager/tool-manager.d.ts.map +1 -1
- package/lib/base/tool-manager/tool-manager.js +4 -4
- package/lib/base/tool-manager/tool-manager.js.map +1 -1
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-palette.d.ts +1 -1
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-palette.js +1 -1
- package/lib/features/accessibility/keyboard/keyboard-module.d.ts +1 -1
- package/lib/features/accessibility/keyboard/keyboard-module.js +1 -1
- package/lib/features/accessibility/keyboard-grid/keyboard-grid-search-palette.d.ts +1 -1
- package/lib/features/accessibility/keyboard-grid/keyboard-grid-search-palette.js +1 -1
- package/lib/features/accessibility/keyboard-grid/keyboard-node-grid.d.ts +1 -1
- package/lib/features/accessibility/keyboard-grid/keyboard-node-grid.js +1 -1
- package/lib/features/context-menu/delete-element-context-menu.d.ts +4 -4
- package/lib/features/context-menu/delete-element-context-menu.d.ts.map +1 -1
- package/lib/features/context-menu/delete-element-context-menu.js +6 -2
- package/lib/features/context-menu/delete-element-context-menu.js.map +1 -1
- package/lib/features/context-menu/server-context-menu-provider.d.ts +4 -4
- package/lib/features/context-menu/server-context-menu-provider.d.ts.map +1 -1
- package/lib/features/context-menu/server-context-menu-provider.js +4 -5
- package/lib/features/context-menu/server-context-menu-provider.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts +22 -5
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.js +16 -11
- package/lib/features/copy-paste/copy-paste-context-menu.js.map +1 -1
- package/lib/features/validation/marker-navigator.d.ts +3 -3
- package/lib/features/validation/marker-navigator.d.ts.map +1 -1
- package/lib/features/validation/marker-navigator.js +8 -7
- package/lib/features/validation/marker-navigator.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
- package/src/base/messages.json +68 -57
- package/src/base/tool-manager/tool-manager.ts +4 -4
- package/src/features/accessibility/edge-autocomplete/edge-autocomplete-palette.ts +1 -1
- package/src/features/accessibility/keyboard/keyboard-module.ts +1 -1
- package/src/features/accessibility/keyboard-grid/keyboard-grid-search-palette.ts +1 -1
- package/src/features/accessibility/keyboard-grid/keyboard-node-grid.ts +1 -1
- package/src/features/context-menu/delete-element-context-menu.ts +9 -5
- package/src/features/context-menu/server-context-menu-provider.ts +8 -9
- package/src/features/copy-paste/copy-paste-context-menu.ts +21 -17
- package/src/features/validation/marker-navigator.ts +9 -8
- package/src/index.ts +2 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-2025 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import {
|
|
17
17
|
Action,
|
|
18
18
|
CenterAction,
|
|
19
|
+
ClientMenuItem,
|
|
19
20
|
GIssueSeverity,
|
|
20
21
|
GModelElement,
|
|
21
22
|
GModelRoot,
|
|
@@ -23,7 +24,6 @@ import {
|
|
|
23
24
|
IActionHandler,
|
|
24
25
|
IContextMenuItemProvider,
|
|
25
26
|
KeyListener,
|
|
26
|
-
MenuItem,
|
|
27
27
|
Point,
|
|
28
28
|
SelectAction,
|
|
29
29
|
TYPES,
|
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
matchesKeystroke
|
|
36
36
|
} from '@eclipse-glsp/sprotty';
|
|
37
37
|
import { inject, injectable } from 'inversify';
|
|
38
|
+
import { messages } from '../../base/messages';
|
|
38
39
|
import { SelectionService } from '../../base/selection-service';
|
|
39
40
|
import { BoundsAwareModelElement, SelectableElement, getElements, isSelectableAndBoundsAware } from '../../utils/gmodel-util';
|
|
40
41
|
import { MarkerPredicates, collectIssueMarkers } from '../../utils/marker';
|
|
@@ -206,33 +207,33 @@ export class NavigateToMarkerActionHandler implements IActionHandler {
|
|
|
206
207
|
export class MarkerNavigatorContextMenuItemProvider implements IContextMenuItemProvider {
|
|
207
208
|
@inject(SelectionService) protected selectionService: SelectionService;
|
|
208
209
|
|
|
209
|
-
getItems(root: Readonly<GModelRoot>, lastMousePosition?: Point): Promise<
|
|
210
|
+
async getItems(root: Readonly<GModelRoot>, lastMousePosition?: Point): Promise<ClientMenuItem[]> {
|
|
210
211
|
const selectedElementIds = Array.from(this.selectionService.getSelectedElementIDs());
|
|
211
212
|
const hasMarkers = collectIssueMarkers(root).length > 0;
|
|
212
|
-
return
|
|
213
|
+
return [
|
|
213
214
|
{
|
|
214
215
|
id: 'navigate',
|
|
215
|
-
label:
|
|
216
|
+
label: messages.context_menu.marker.navigation,
|
|
216
217
|
group: 'navigate',
|
|
217
218
|
actions: [],
|
|
218
219
|
children: [
|
|
219
220
|
{
|
|
220
221
|
id: 'next-marker',
|
|
221
|
-
label:
|
|
222
|
+
label: messages.context_menu.marker.next,
|
|
222
223
|
group: 'marker',
|
|
223
224
|
actions: [NavigateToMarkerAction.create({ direction: 'next', selectedElementIds })],
|
|
224
225
|
isEnabled: () => hasMarkers
|
|
225
226
|
},
|
|
226
227
|
{
|
|
227
228
|
id: 'previous-marker',
|
|
228
|
-
label:
|
|
229
|
+
label: messages.context_menu.marker.previous,
|
|
229
230
|
group: 'marker',
|
|
230
231
|
actions: [NavigateToMarkerAction.create({ direction: 'previous', selectedElementIds })],
|
|
231
232
|
isEnabled: () => hasMarkers
|
|
232
233
|
}
|
|
233
234
|
]
|
|
234
235
|
}
|
|
235
|
-
]
|
|
236
|
+
];
|
|
236
237
|
}
|
|
237
238
|
}
|
|
238
239
|
|
package/src/index.ts
CHANGED
|
@@ -170,6 +170,8 @@ export * from './features/save/save-module';
|
|
|
170
170
|
export * from './features/search-palette/search-palette';
|
|
171
171
|
export * from './features/search-palette/search-palette-key-listener';
|
|
172
172
|
export * from './features/search-palette/search-palette-module';
|
|
173
|
+
export * from './features/search-palette/suggestions/edge-element-suggestions';
|
|
174
|
+
export * from './features/search-palette/suggestions/named-element-suggestions';
|
|
173
175
|
export * from './features/select/select-feedback-command';
|
|
174
176
|
export * from './features/select/select-module';
|
|
175
177
|
export * from './features/select/select-mouse-listener';
|