-
Notifications
You must be signed in to change notification settings - Fork 63
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
[Feature request] Allow disabling --cursor-offset
through user option
#168
Comments
Yea... I often experience the same problem. I'll work this in. |
I often experience the same problem too. Sublime freezes frequently when I format |
I found a hacked way to disable
Find a line |
I would very much appreciate that. I was just thinking if there could be a third option besides |
@Prinzhorn: I thought about the heuristic approach...and did some trial and error... but never could pin-point a reasonable location. |
Give it a whirl. |
Nice, works as advertised. Just pasted a big minified js file and saving/formatting only took like 2s. Thanks! |
@jonlabelle would it be possible for the cursor to stay at the position it was before formatting? Right now the cursor is gone after formatting. Maybe it can be reset to where it was. Right now I need to click into the file in order to get a cursor back, so the option made regular programming kind of a pain instead of just having a slightly misaligned cursor from time to time. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Explain the Issue and Expected Behavior
#147 says the freezing is not an issue with Sublime or SublimeJsPrettier. I agree but I'd love to be able to disable
--cursor-offset
in user settings. Adding the following to the settingsresults in the following command
... --loglevel debug --cursor-offset -1 --cursor-offset 509
so I'm not able to disable it at all.
I'm working with markdown a lot and even the tiniest bit of unformatted JSON code blocks will cause the prettier process to freeze for minutes due to
--cursor-offset
(I confirmed that on the CLI).Prettier version
To show the currently installed prettier version, run the following command:
JsPrettier Plug-in Version
The JsPrettier Sublime Text Plug-in version is located in the
package.json
file.Platform Details
Provide your Sublime Text version and Platform details.
Example
The text was updated successfully, but these errors were encountered: