Skip to content
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

const hasWordWrap: boolean = (editor as vscode.TextEditor).options.wordWrap; #186837

Open
solomonkinard opened this issue Jul 2, 2023 · 1 comment
Assignees

Comments

@solomonkinard
Copy link
Contributor

Add ability to detect if the current editor has word wrap turned on. Otherwise editor.setDecoration() is broken by putting items at the end of the wrapped line, instead of at the end of the first line. Example extension.

Example code:
const hasWordWrap: boolean = (editor as vscode.TextEditor).options.wordWrap;

Semi-related:
Add wordwrap indicator
Add support for language-aware word wrap

@solomonkinard
Copy link
Contributor Author

Unfortunately, checking the configuration isn't reliable in detection due to possible user changes in the current editor.

Grumpy2869 referenced this issue Jul 2, 2023
…) (#185085)

* UNC allow list checks cannot be disabled in extension host (#184989)

* Update src/vs/base/node/unc.js

Co-authored-by: Robo <hop2deep@gmail.com>

---------

Co-authored-by: Robo <hop2deep@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants