Coder Social home page Coder Social logo

triforcely / collapselevel Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 3.0 41 KB

๐Ÿ—ž Finally an extension for Visual Studio that allows you to fold your code by levels โœจ

License: MIT License

C# 100.00%
fold indentation visual-studio vsix vsix-extensions

collapselevel's People

Contributors

monoblaine avatar triforcely avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

collapselevel's Issues

Extremely slow with large files

Running this on a large file (80k lines), takes me 1:35-1:40 minutes to complete. Any way to speed this up (async perhaps)?

Specs:
Processor: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3401 Mhz, 4 Core(s), 8 Logical Processor(s)
Installed Physical Memory (RAM): 16.0 GB

Collapse within selected option

I would like to request a collapse withing selection option. If i select a section of text, a way to collapse all collapsible items within that selection would be very useful.

Won't install in VSCode

When I used the command "Install from VSIX ..." in VSCode, nothing gets installed, nothing happens. When I use the Windows CMD window to run this command:

`code --install-extension .\Installs\VSCode\Extensions\CollapseLevel.vsix`

I get the error below. Would you just have to create a package.json file, or would it be more complicated than that?

Error: extension/package.json not found inside zip.
at ZipFile.<anonymous> (C:\Program Files\Microsoft VS Code\resources\app\out\vs\code\node\cliProcessMain.js:118:142)
at Object.onceWrapper (events.js:293:19)
at emitNone (events.js:86:13)
at ZipFile.emit (events.js:188:7)
at FdSlicer.<anonymous> (C:\Program Files\Microsoft VS Code\resources\app\node_modules\yauzl\index.js:198:10)
at Object.onceWrapper (events.js:293:19)
at emitNone (events.js:86:13)
at FdSlicer.emit (events.js:188:7)
at onCloseDone (C:\Program Files\Microsoft VS Code\resources\app\node_modules\fd-slicer\index.js:74:12)
at FSReqWrap.oncomplete (fs.js:114:15)

Collapse on open?

I am missing another old extension which was collapsing a document at its opening. Would you implement this as an optional feature? Your extension is already great, with this extra feature, it would be really top...

Collapse level behavior seems to be changed

First of all, thanks for open-sourcing this extension! Today, I realized that Alt + 1 no longer works the way it used be. Than I realized that the extension was auto-updated to version 2.0.0, and I also realized that it was open-sourced. And here I am :)

View.Level1collapse used to change the following file:

function foo () {
    // code
}

function bar () {
    // more code
}

into this:

[+] function foo () [...]

[+] function bar () [...]

But starting with version 2.0.0, the only way to do this is to apply a custom level (zero).

Was this change intentional?

I've removed some line to restore the original behavior:

monoblaine@16a64a5

Replace TextViewRegistry with something better.

TextViewRegistry is a IWpfTextViewCreationListener used to keep track of all created text views so they can be later accessed by collapse commands. Current solution is quite hackish, because collapse action will be performed on regions in all open views - not currently selected one. This leads to performance issues and confusing UX.

TL;DR: Find a way to get IWpfTextView of active pane and use it intead of quirky TextViewRegistry

Suggestion: Expand recursively

Hi I have a suggestion, a commnand to expand recursively based on the position of the caret.

Today if we collapse everything we have to expand multiple times in multiple places within the code to get a method or a part of the code entirelly expanded to work with.

You have familiarity with this kind of task, maybe can do this command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.