aurora-langium 0.2.28 → 0.2.29
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/dist/cjs/extension/src/commands/hide-ngos-command.cjs +10 -15
- package/dist/cjs/extension/src/commands/hide-ngos-command.cjs.map +2 -2
- package/dist/cjs/src/extension/src/commands/hide-ngos-command.js +11 -16
- package/dist/cjs/src/extension/src/commands/hide-ngos-command.js.map +1 -1
- package/dist/esm/extension/src/commands/hide-ngos-command.js +10 -15
- package/dist/esm/extension/src/commands/hide-ngos-command.js.map +2 -2
- package/dist/esm/src/extension/src/commands/hide-ngos-command.js +10 -15
- package/dist/esm/src/extension/src/commands/hide-ngos-command.js.map +1 -1
- package/package.json +1 -1
- package/src/extension/src/commands/hide-ngos-command.ts +12 -18
|
@@ -6445,17 +6445,6 @@ var HIDE_NGOS_ACTION_KIND = "hideNGOs";
|
|
|
6445
6445
|
|
|
6446
6446
|
// src/extension/src/commands/hide-ngos-command.ts
|
|
6447
6447
|
function hideNGOs(pcm, langConfig) {
|
|
6448
|
-
var _a, _b;
|
|
6449
|
-
const orderCoordinates = getQuickPickedOCs(pcm);
|
|
6450
|
-
const children = orderCoordinates.flatMap((oc) => oc.narrative);
|
|
6451
|
-
const action = {
|
|
6452
|
-
kind: HIDE_NGOS_ACTION_KIND,
|
|
6453
|
-
ocNames: orderCoordinates.map((o) => o.name),
|
|
6454
|
-
children: children.map((n) => n.name)
|
|
6455
|
-
};
|
|
6456
|
-
(_b = (_a = langConfig.webviewProvider) == null ? void 0 : _a.findActiveWebview()) == null ? void 0 : _b.sendAction(action);
|
|
6457
|
-
}
|
|
6458
|
-
function getQuickPickedOCs(pcm) {
|
|
6459
6448
|
let quickPick = vscode.window.createQuickPick();
|
|
6460
6449
|
quickPick.placeholder = "Choose which NGOs to hide...";
|
|
6461
6450
|
let ngoOptions = pcm.elements.filter((e) => e.$type === "Orders").flatMap((o) => o.namedGroups);
|
|
@@ -6463,7 +6452,6 @@ function getQuickPickedOCs(pcm) {
|
|
|
6463
6452
|
return { label: ngoName.name };
|
|
6464
6453
|
});
|
|
6465
6454
|
var selectedNGOs = [];
|
|
6466
|
-
var hideTheseOrderCoordinates = [];
|
|
6467
6455
|
quickPick.canSelectMany = true;
|
|
6468
6456
|
quickPick.onDidChangeSelection((selection) => {
|
|
6469
6457
|
if (selection && selection.length > 0) {
|
|
@@ -6477,10 +6465,17 @@ function getQuickPickedOCs(pcm) {
|
|
|
6477
6465
|
});
|
|
6478
6466
|
quickPick.show();
|
|
6479
6467
|
quickPick.onDidAccept(() => {
|
|
6480
|
-
|
|
6468
|
+
var _a, _b;
|
|
6469
|
+
const hideTheseOrderCoordinates = selectedNGOs.flatMap((ngo) => ngo.orders).filter((o) => o.$type === "OrderCoordinate").map((o) => o);
|
|
6470
|
+
const hideTheseChildren = hideTheseOrderCoordinates.flatMap((oc) => oc.narrative);
|
|
6471
|
+
const action = {
|
|
6472
|
+
kind: HIDE_NGOS_ACTION_KIND,
|
|
6473
|
+
ocNames: hideTheseOrderCoordinates.map((o) => o.name),
|
|
6474
|
+
children: hideTheseChildren.map((n) => n.name)
|
|
6475
|
+
};
|
|
6476
|
+
(_b = (_a = langConfig.webviewProvider) == null ? void 0 : _a.findActiveWebview()) == null ? void 0 : _b.sendAction(action);
|
|
6477
|
+
quickPick.dispose();
|
|
6481
6478
|
});
|
|
6482
|
-
quickPick.dispose();
|
|
6483
|
-
return hideTheseOrderCoordinates;
|
|
6484
6479
|
}
|
|
6485
6480
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6486
6481
|
0 && (module.exports = {
|