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

Fold All Regions feature doesn't work #61220

Closed
suadev opened this issue Oct 18, 2018 · 6 comments
Closed

Fold All Regions feature doesn't work #61220

suadev opened this issue Oct 18, 2018 · 6 comments
Assignees
Labels
editor-folding Editor code folding issues info-needed Issue requires more information from poster

Comments

@suadev
Copy link

suadev commented Oct 18, 2018

  • VSCode Version: 1.28.2
  • OS Version: Windows

"Fold All Regions" feature doesn't work neither by ctrl+k, ctrl+8 nor by F1 menu.

@vscodebot
Copy link

vscodebot bot commented Oct 18, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@suadev suadev changed the title Fold All Regions feature does'nt work Fold All Regions feature doesn't work Oct 18, 2018
@vscodebot vscodebot bot added the editor-folding Editor code folding issues label Oct 18, 2018
@aeschli
Copy link
Contributor

aeschli commented Oct 23, 2018

Please add a code sample. I tried with the folloing sample and it worked
foo.ts

//#region
Test
//#endregion
//#region
Test2
//#endregion
  • ctrl + k / ctrl + 8: folds all regions
  • ctrl + k / ctrl + 9: unfolds all regions

@aeschli aeschli added the info-needed Issue requires more information from poster label Oct 23, 2018
@suadev
Copy link
Author

suadev commented Oct 23, 2018

@aeschli sorry, i should have specified the language.

It looks, it's ok for .ts file.

But for .cs file, it doesn't work.

public class foo
{
    #region newregion
    int i = 0;
    #endregion
}

@aeschli
Copy link
Contributor

aeschli commented Oct 23, 2018

Do you use an extension for c# ?

Out of the box you get indentation based folding with region markers sand your example works the same way as my example.
But maybe an extension adds language specific folding and doesn't mark the regions correctly.

@suadev
Copy link
Author

suadev commented Oct 23, 2018

Yes, i use c# extension that powered by omnisharp. My whole extension list;

image

@aeschli
Copy link
Contributor

aeschli commented Oct 24, 2018

This issue was moved to dotnet/vscode-csharp#2621

@aeschli aeschli closed this as completed Oct 24, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-folding Editor code folding issues info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants