Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, init scripts are a very powerful feature that I feel are sometimes underused. The fact we need to reload the editor to apply the changes, together with the fact that if we have any error in the init script we will have it applied partially, or even have undesirable results, is also a problem
This PR adds a config "auto reload init script", which will basically do four things:
require
, we will useeval
, which will also allow us to reload the script and pass a new parameter -disposable
- which will be used to dispose old commands from previous scriptsI'm drafting this PR to request for comments, and also to ask for opinions on:
.coffee
init scripts? If so, we need to transpile.coffee
files before runningeval
true
tofalse
)pathwatcher
. We also have thensfw
watcher that is built-in into Pulsar, I'm unsure why Atom originally had these two options so I don't really know which one should we useMissing in this PR: