question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature request] Allow disabling `--cursor-offset` through user option

See original GitHub issue

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 settings

"additional_cli_args": {
  "--cursor-offset": -1
}

results 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:

$ prettier --version
  1.16.4

JsPrettier Plug-in Version

The JsPrettier Sublime Text Plug-in version is located in the package.json file.

...
"name": "sublime-js-prettier",
"version": "1.26.3",
...

Platform Details

Provide your Sublime Text version and Platform details.

Example

- Sublime Text Version: 3.2
- Sublime Text Build: 3200
- Sublime Text Architecture: 64-bit
- Operating System Name: Ubuntu
- Operating System Version: 18.04.2
- Operating System Architecture: 64-bit

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jonlabellecommented, Apr 7, 2019

Give it a whirl.

1reaction
jonlabellecommented, Mar 26, 2019

Yea… I often experience the same problem. I’ll work this in.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disabling/Enabling Feature Requests - Instabug
Described here is how to disable or enable the feature requests. ... You can completely prevent any feature request related features from displaying...
Read more >
cursorOffset - API Reference - Kendo UI Sortable
In this article you can see how to configure the cursorOffset property of the Kendo UI Sortable.
Read more >
JsPrettier - Package Control
This option allows you to switch between the default behavior ( auto ) and disabling this feature entirely ( off ). See example....
Read more >
Release note | Teradici Documents and Downloads
ZoomText cursor and magnification features get internally disabled when launched with Windows Graphics Agent versions post 20.01.
Read more >
User manual - TeXstudio
This dialog allows you to set the main features of your document (class, paper size, encoding...). Note : You can add other options...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found