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

Add ability to compare selected or open file with an IFS or local file path #2049

Merged
merged 19 commits into from
Jul 6, 2024

Conversation

julesyan
Copy link
Collaborator

@julesyan julesyan commented May 11, 2024

Changes

Based on #1902

  • Added ability to compare with local files (even when IBM i is not connected)
    • Context menu item shows in Object Browser and IFS Browser
    • Context menu item also shows in VSCode's File Explorer, it does not show when selecting folders
    • Command palette uses currently active file
  • Added ability to compare with stream files
    • Context menu item shows in Object Browser and IFS Browser
    • Context menu item also shows in VSCode's File Explorer, it does not show when selecting folders
    • Command palette uses currently active file

How to test this PR

  • compare with local file (IBM i does not need to be connected, except for option 1):
    • Option 1: Right click file in IFS/Object view, select "Compare with local file...", enter in local file path
    • Option 2: Have a file open, open command palette, select "Compare with local file...", enter in local file path
    • Option 3: Rick click file in VSCode's File Explorer view, select "Compare with local file...", enter in local file path
  • compare with IFS file (IBM i must be connected):
    • Option 1: Right click file in IFS/Object view, select "Compare with IFS file...", enter in IFS file path
    • Option 2: Have a file open, open command palette, select "Compare with IFS file...", enter in IFS file path
    • Option 3: Rick click file in VSCode's File Explorer view, select "Compare with IFS file...", enter in IFS file path

Checklist

  • have tested my change
  • have created one or more test cases
  • updated relevant documentation
  • Remove any/all console.logs I added
  • have added myself to the contributors' list in CONTRIBUTING.md

@julesyan
Copy link
Collaborator Author

Added ability to compare with Active File:

  • Option 1: Right click file in IFS/Object view, select "Compare with Active File"
  • Option 2: Have a file open, open "Go to file..." from Object browser or command palette, click split editor icon on a path
  • Option 3: Rick click file in VSCode's File Explorer view, select "Compare with Active File"

.gitignore Outdated Show resolved Hide resolved
@julesyan julesyan requested a review from sebjulliand May 15, 2024 12:01
Copy link
Contributor

@worksofliam worksofliam left a comment

Choose a reason for hiding this comment

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

I have left a quick review. Lack of member support is really the only major issue.

Also, can you please also add code-for-ibmi.compareCurrentFileWithMember?

src/instantiate.ts Outdated Show resolved Hide resolved
src/instantiate.ts Outdated Show resolved Hide resolved
src/instantiate.ts Outdated Show resolved Hide resolved
@julesyan julesyan requested a review from worksofliam May 17, 2024 02:07
@julesyan
Copy link
Collaborator Author

Added ability to compare with members (IBM i must be connected):

  • Option 1: Right click file in IFS/Object view, select "Compare with member...", enter in member path
  • Option 2: Have a file open, open command palette, select "Compare with member...", enter in member path
  • Option 3: Rick click file in VSCode's File Explorer view, select "Compare with member...", enter in member path

@chrjorgensen chrjorgensen self-requested a review June 22, 2024 21:19
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/instantiate.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@chrjorgensen chrjorgensen left a comment

Choose a reason for hiding this comment

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

@julesyan Should we get this PR going? I have made some comments regarding the UX, which I hope you can fix. 🙏

src/instantiate.ts Outdated Show resolved Hide resolved
@@ -17,6 +17,7 @@ import { t } from './locale';
import { Action, BrowserItem, DeploymentMethod, MemberItem, OpenEditableOptions, WithPath } from "./typings";
import { ActionsUI } from './webviews/actions';
import { VariablesUI } from "./webviews/variables";
import { t } from './locale';
Copy link
Collaborator

Choose a reason for hiding this comment

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

t is already imported...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I get errors when i remove it, where is it imported?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see this when I check out the PR:

image

I will fix this... no worries...

@chrjorgensen chrjorgensen self-requested a review July 1, 2024 08:15
Copy link
Collaborator

@chrjorgensen chrjorgensen left a comment

Choose a reason for hiding this comment

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

@julesyan Only two small issues and then we're good to go! 👍

Copy link
Collaborator

@chrjorgensen chrjorgensen left a comment

Choose a reason for hiding this comment

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

@julesyan Well done - works as expected. 👍

Approved and merged.

@chrjorgensen chrjorgensen merged commit 361ba40 into codefori:master Jul 6, 2024
1 check passed
@chrjorgensen
Copy link
Collaborator

@worksofliam I think this merged PR fixes issue #1902 right?

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.

4 participants