You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the suggestion! We have marked this issue as "needs decision" to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes the opening comment gets to help us make our decision.
Region is quite nice and easy to extend (configuration based) So you can do:
#region imports <- This is foldablefromfunctoolsimportlru_cache#endregion
I wasn't able to get this to work with Python (works fine for me with JS with the provided config example, though). What's your config for it for Python?
Region is quite nice and easy to extend (configuration based) So you can do:
#region imports <- This is foldablefromfunctoolsimportlru_cache#endregion
I wasn't able to get this to work with Python (works fine for me with JS with the provided config example, though). What's your config for it for Python?
Mel Massadian (@melMass) i don't want to install any third party extensions and modify the code in order to achieve pretty standard functionality - import folding, so that's why i'm raising this as a feature request
Mel Massadian (@melMass) i don't want to install any third party extensions and modify the code in order to achieve pretty standard functionality - import folding, so that's why i'm raising this as a feature request
And I just found out we actually respect "editor.foldingImportsByDefault": true. When you flip it for the first time you may need to wait a bit for the Python and Pylance extensions to activate and do its magic, but it works 😊
Activity
karthiknadig commentedon Jan 25, 2021
Thank you for the suggestion! We have marked this issue as "needs decision" to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes the opening comment gets to help us make our decision.
nfx commentedon Feb 14, 2021
Karthik Nadig (@karthiknadig) this is standard behavior for IntelliJ and for VSCode-GoLang.
nfx commentedon Feb 17, 2021
Jim Griesmer (@greazer), Joyce Er (@joyceerhl), Rich Chiodo (@rchiodo) I think this is a good issue to put on editor roadmap.
melMass commentedon Aug 12, 2021
Region is quite nice and easy to extend (configuration based)
So you can do:
HappyCuppy commentedon Oct 5, 2021
I wasn't able to get this to work with Python (works fine for me with JS with the provided config example, though). What's your config for it for Python?
melMass commentedon Oct 5, 2021
It should be working by default:
https://github.com/maptz/maptz.vscode.extensions.customfolding/blob/de39a96ae09341d31a299120b074bb821ec9a44e/src/config/DefaultConfiguration.ts#L138
nfx commentedon Oct 7, 2021
Mel Massadian (@melMass) i don't want to install any third party extensions and modify the code in order to achieve pretty standard functionality - import folding, so that's why i'm raising this as a feature request
melMass commentedon Oct 7, 2021
I was answering to HappyCuppy.
luabud commentedon Jan 28, 2022
Import folding is now working on the latest release of Pylance. The only missing bit is supporting a setting to automatically do it for Python files.
luabud commentedon Jan 29, 2022
And I just found out we actually respect
"editor.foldingImportsByDefault": true. When you flip it for the first time you may need to wait a bit for the Python and Pylance extensions to activate and do its magic, but it works 😊TylerYep commentedon Jan 29, 2022
Thank you!! This is so awesome :)