vscode-ibmi icon indicating copy to clipboard operation
vscode-ibmi copied to clipboard

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

Open julesyan opened this issue 9 months ago • 2 comments

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

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

julesyan avatar May 11 '24 21:05 julesyan

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"

julesyan avatar May 14 '24 23:05 julesyan

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

julesyan avatar May 17 '24 02:05 julesyan

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

chrjorgensen avatar Jul 17 '24 09:07 chrjorgensen