Skip to content

Commit

Permalink
Merge pull request #72 from DSaladinCH/release/v-2.3.1
Browse files Browse the repository at this point in the history
Release/v 2.3.1
  • Loading branch information
DominicSaladin committed Dec 21, 2022
2 parents fb8b1fd + a917ac0 commit dc5cc06
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log
All versions of AL Object Helper will be documented in this file.

## [2.3.1] - 2022-12-21
### Fix
- ALFunction is not a function (Fixes [#71](https://github.com/DSaladinCH/al-object-helper/issues/71))

## [2.3.0] - 2022-12-06
### Add
- Performance Modes
Expand Down Expand Up @@ -226,6 +230,7 @@ All versions of AL Object Helper will be documented in this file.
## [1.0.0] - 2020-06-24
- Initial release

[2.3.1]: https://github.com/DSaladinCH/al-object-helper/compare/2.3.0...2.3.1
[2.3.0]: https://github.com/DSaladinCH/al-object-helper/compare/2.2.13...2.3.0
[2.2.13]: https://github.com/DSaladinCH/al-object-helper/compare/2.2.12...2.2.13
[2.2.12]: https://github.com/DSaladinCH/al-object-helper/compare/2.2.10...2.2.12
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "Dominic Saladin"
},
"license": "MIT",
"version": "2.3.0",
"version": "2.3.1",
"icon": "Images/ALObjectHelper_Small.png",
"engines": {
"vscode": "^1.63.0"
Expand Down
8 changes: 4 additions & 4 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export async function activate(context: vscode.ExtensionContext) {
return;
}

const quickPick = new QuickPickManagement<ALFunction>();
const quickPick = new QuickPickManagement<ALFunctionItem>();
const picked = quickPick.create(`Select event from ${ObjectType[alObject.objectType]} "${alObject.objectName}" to copy`);

alObject = await reader.readAlObject(alObject);
Expand All @@ -112,13 +112,13 @@ export async function activate(context: vscode.ExtensionContext) {
).forEach(alFunction => alFunctionItems.push(new ALFunctionItem(alObject!, alFunction, true)));

quickPick.updateValue(alFunctionItems);
const alFunction = await picked;
const alFunctionItem = await picked;

if (!alFunction) {
if (!alFunctionItem) {
return;
}

await vscode.env.clipboard.writeText(alFunction.getEventSubscriberText(alObject));
await vscode.env.clipboard.writeText(alFunctionItem.alFunction.getEventSubscriberText(alObject));
vscode.window.showInformationMessage("Copied to Clipboard!");
}));

Expand Down

0 comments on commit dc5cc06

Please sign in to comment.