vjekob / al-objid

Manage object IDs in multi-user environments with mind-boggling simplicity.
MIT License
29 stars 18 forks source link

Public reservation API #55

Closed anzwdev closed 1 year ago

anzwdev commented 1 year ago

A new public api class that can be used by other VS Code extensions to get IDs suggestions and to reserve them. There are 2 methods in the api

let idNinjaExtension = vscode.extensions.getExtension("vjeko.vjeko-al-objid");
if ((idNinjaExtension) && (idNinjaExtension.isActive)) {
    let api = idNinjaExtension.exports;
    let ids = await api.suggestIds(uri, type);
}
fvet commented 1 year ago

@vjekob Any chance in merging this PR into the AL Object ID Ninja master?

It would help us in adopting AZ AL Dev Tools combined with the power of AL Object ID Ninja ;) https://github.com/anzwdev/al-code-outline/issues/276

vjekob commented 1 year ago

@vjekob Any chance in merging this PR into the AL Object ID Ninja master?

It would help us in adopting AZ AL Dev Tools combined with the power of AL Object ID Ninja ;) anzwdev/al-code-outline#276

Yes, I am going to merge this PR and release a new version shortly.

vjekob commented 1 year ago

I've decided to fix this myself as I want this feature to be a part of Ninja's next release.

Thanks for your contribution! 😊

anzwdev commented 1 year ago

That's great. Thank you :)