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

Use vscode.openWith only when necessary #2348

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

sebjulliand
Copy link
Collaborator

Changes

Fixes #2347

Streamfiles were always opened using vscode.openWith, forcing VS Code to use the default text editor regardless of the file's type. Since vscode.openWith is used to be able to open the text editor at a given position, if we don't need to open at a position, we use vscode.open instead, allowing the editor linked to the file type to be opened, if any.

How to test this PR

  1. Install vscode-pdf
  2. Connect to an IBM i
  3. Open a PDF file from the IFS browser
  4. The PDF editor must open to display the PDF file

Checklist

  • have tested my change

Otherwise, use `vscode.open` to let VS Code open files with the approriate editor.

Signed-off-by: Seb Julliand <[email protected]>
@sebjulliand sebjulliand added the bug A confirmed issue when something isn't working as intended label Nov 13, 2024
@sebjulliand sebjulliand self-assigned this Nov 13, 2024
@sebjulliand sebjulliand merged commit 55867c0 into master Nov 13, 2024
1 check passed
@sebjulliand sebjulliand deleted the openStreamfilesEditorType branch November 13, 2024 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A confirmed issue when something isn't working as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Opening a binary PDF via the IFS file list does not automatically open PDF file with associated plugin
2 participants