Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement remove filter command in object browser #2250

Closed

Conversation

worksofliam
Copy link
Contributor

This pull request adds a new command, "Remove Filter", to the object browser in the IBM i category. The command allows users to remove a filter from the object browser. The implementation includes changes to the command registration and the initialization of the object browser.

This change was added to seperate the difference between deleting an object vs removing the filter (just like we do in the IFS Browser)

Signed-off-by: worksofliam <mrliamallan@live.co.uk>
vscode.commands.registerCommand(`code-for-ibmi.objectBrowser.removeFilter`, async (node?: ObjectBrowserItem) => {
if (node && node instanceof ObjectBrowserFilterItem) {
const message = t('objectBrowser.delete.confirm', node.toString());
if (await vscode.window.showWarningMessage(message, { modal: true }, t(`Yes`))) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'Remove Shortcut' in the IFS browser does not have a warning, would we want to match that functionality more?

@worksofliam
Copy link
Contributor Author

Swapping back to draft and will reopen based on suggestion from 2252

@worksofliam worksofliam closed this Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants