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.

Help with FoldingRange.collapsedText

See original GitHub issue

I’m trying to use https://github.com/microsoft/vscode-languageserver-node/pull/910.

I have set startCharacter to 0 and collapsedText to the full collapsed text that I want displayed, but the editor still chooses the first line as the collapsed text. Am I doing something wrong or is this feature not supported on the clilent side yet?

VSCode version

Version: 1.71.0-insider (user setup)
Commit: 35b971c92d210face8c446a1c6f1e470ad2bcb54
Date: 2022-08-26T05:19:46.020Z
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.22622
Sandboxed: Yes

NPM package versions

vscode-languageserver-textdocument@1.0.7
vscode-languageserver@8.0.2
vscode-languageclient@8.0.2

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dbaeumercommented, Sep 7, 2022

OK. I will close this issue then since there is nothing I can do in LSP to address this.

1reaction
aeschlicommented, Sep 7, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Collapse or expand parts of a document - Microsoft Support
Click the triangle to collapse the body text and subheadings below it. Collapsible heading. Tip: If you're working on a touch device, tap...
Read more >
Video: Collapsible headings - Microsoft Support
Training: Collapsed headings (headers) become something like a table of contents, allowing you to quickly browse through the document with body text out...
Read more >
[folding] custom folding text for folded ranges (#70794) - GitHub
[folding] custom folding text for folded ranges #70794 ... property that would be displayed when the folding range wass collapsed.
Read more >
How do I collapse an arbitrary selection of code in Visual ...
Run code snippet. Hide results. Expand snippet ... Create Manual Folding Range from Selection editor.createFoldingRangeFromSelection.
Read more >
Basic Editing in Visual Studio Code
This topic takes you through the basics of the editor and helps you get moving with your code. ... Expand the Search widget...
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