-
Notifications
You must be signed in to change notification settings - Fork 9
Conversation
Went a bit too fast on this one. I need to get the file from the workspace and not a dumb |
Hey, thanks for your time and contribution 🚀
Actually I think it's ok to keep the same logic as |
I don't see any issue formatting the whole file. However when doing some tests, it seems the |
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.
I've tested locally, and it seems that it overrides the local changes, prior saving. A solution would be to maybe move that function to the onsave
handler, or find a way to update before that (doing a reload of the plan)
I'll take some time to explore today 😇 |
I wonder if we should start implementing |
I ran some quick and dirty stuff here, using a simple So I guess updating the Plan and getting back the file directly from it should solve our issue. I'll explore a way to do so |
8ea6580
to
75e7edb
Compare
@grouville I updated my code to take the file directly from the plan and add an override system to the plan. It seems to work well but it feels kinda hacky tbh. |
I'll take some time today to check your solution too |
@b4nst. I've been checking your solution, and it seems that it continues overwriting the user's input. It's more subtile, but it can still annoy the users: Enregistrement.de.l.ecran.2022-08-08.a.14.44.31.movDo you have an idea on where this happens ? |
Huum, maybe because the file didn't build correctly it was not in the list of files of the main Plan. I honestly have to give a better try to this one. It requires more work than this sort of hack |
An attempt at including formatting to the LSP. I'm quite new to LSP implementation, not sure if there's a standard for passing options to the formatter. I'll dig a bit in the doc later see if I find something useful.
Resolves #44