-
Notifications
You must be signed in to change notification settings - Fork 30k
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 event information in onDidSaveTextDocument
#5305
Comments
This is a duplicate of #239 |
Is this actually really a duplicate of that issue? That issue is about adding new event types like As you said before, it's quite difficult to change that without breaking the API. Currently only the interface EventObject {
document: TextDocument,
action: string
} Where |
Sorry, I was wrong here... yeah, it's on_Will_ and on_Did_... Will be hard to make it work in a nice way... |
How is everything doing here? |
Since we are facing API breakage with this, it might help if we expose the required data in the |
@jrieken Would this still be considered in VS Code 2.0.0 or something? It feels a little like a design flaw to pass in the TextDocument directly as event instead of an event object with the property |
It clearly is a design flaw and could not come up with a back-wards compatible way to introducing such an event unless its like |
If VS Code 2.x means breaking changes (major semver change), it might be possible to push this through. BUT, I understand that this is very hard to do because that means that every extension relying on this behaviour (which is probably 99% of all the extensions), will not work on VS Code 2.x.
Yes, if that would be backwards compatible AND if somehow, we could force in the type definitions, that in the next version the object returned is an Event object with properties I think it might be worth exploring as this might allow to add new features more easily in the future. |
Closing this because it would require API breakage and because the information asked for is available in the |
It would be nice if extensions are able to distinguish the
autoSave
event from a manualsave
. We need this information in our EditorConfig extension.// @bpasero @jrieken
The text was updated successfully, but these errors were encountered: