-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Added setting to make env.openExternal
optional
#464
Conversation
Any chance of this getting merged? @yhatt |
@rtfmkiesel Merge upstream and please confirm to pass CI check. If not, please add tests. We can review after than. |
src/commands/export.ts
Outdated
if (outputToLocalFS) { | ||
env.openExternal(uri) | ||
if (shouldOpen) { | ||
env.openExternal(uri) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (outputToLocalFS) { | |
env.openExternal(uri) | |
if (shouldOpen) { | |
env.openExternal(uri) | |
} | |
if (outputToLocalFS && shouldOpen) { | |
env.openExternal(uri) |
If the file is not opened automatically, I think it's better to run else
clause to provide a feedback to the user about the completion of the export process.
I don't like the auto-open functionality. Here is a setting, with the default being enabled (as it is now), which lets a user adjust this to their taste.