Comments (7)
My sympathies.
from fantomas-for-vs.
Hi @cmeeren
I've implemented diff shrinking, so now the edit surface should be minimal.
Could you please update the extension and try it out?
from fantomas-for-vs.
Yes, this was on my to-do list.
It mostly has to do with diff-patching in Visual Studio.
This would ideally be a candidate for Replace
instead of Delete+Insert
which works, but figuring that out in an elegant way might be hard. I haven't spent too much time on it.
from fantomas-for-vs.
I have no idea how this works, but might it be so simple that you trim a single newline (\r\n
or \n
) from oldText
and newText
(if both end with the same type of newline)?
from fantomas-for-vs.
Hi, sorry about the delay in responding.
There's a set of deletes followed by a set of inserts. It's not easy to decide if a line has been truly removed, only for it to be put back. Fantomas sometimes deletes several lines worth of whitespace in one go. I'm mostly worried about edge cases which could crop up and eat someone's code.
Would you be interested in solving this with me over a Visual Studio live-share?
from fantomas-for-vs.
No worries about the delay, it's not like I'm a paying customer of a service 😅
I appreciate the invitation, but unfortunately I'm already at 120% capacity at the moment, and I think it'll stay that way for a while. 😩
from fantomas-for-vs.
Works excellently, thanks a lot! 🙌
from fantomas-for-vs.
Related Issues (20)
- Move to fsprojects/fantomas-for-vs? HOT 5
- Microsoft.VisualStudio.Shell.15.0 not found when loading extension HOT 8
- Missing Options: Fantomas Visual Studio 2022 Community Options Menu HOT 3
- Formatting doesn't work with WSL2 hosted files in VS2022 HOT 31
- Fantomas' package name changed from `fantomas-tool` to `fantomas` HOT 3
- Fantomas does not work in Visual Studio 2022 HOT 6
- Reformating on selection messes text following selection HOT 5
- Fantomas scrambled up a huge script file HOT 8
- Inconsistent version numbers
- Settings page looks different from screenshot and is missing many options HOT 2
- Broken "read the documentation" link HOT 2
- Enable or disable "Format on save" per repo
- The extension stopped working after upgrading Visual Studio 2022 to the latest version 17.4 HOT 2
- Unable to install the extension to VS 2022 on ARM64 HOT 2
- Extension does not load when a folder is opened in VS instead of a solution HOT 1
- Fantomas < 5.0 breaks nested lists HOT 16
- fsharp_multiline_bracket_style setting is not applied HOT 9
- Error in format files inside Visual Studio after updating fantomas to 6.0.0-alpha-010 HOT 7
- [Live buffers] Extension does not work with the new live buffers HOT 3
- Error: "Creating the Fantomas Deamon failed" when saving a file or trying to format in VS HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fantomas-for-vs.