rokucommunity / vscode-brightscript-language

A Visual Studio Code extension for Roku's BrightScript language
MIT License
110 stars 41 forks source link

Implement go to next/previous function #29

Closed georgejecook closed 4 years ago

georgejecook commented 5 years ago

I currently use this plugin : https://github.com/mishkinf/vscode-goto-next-previous-member/blob/master/src/extension.ts

but it lists all members. I've opened a PR there; but it might be just as nice to lift his code and bring it into the vscode plugin for brightscript, seeing as we have speficic needs he might not have time to address...

Mainly we have 3 options I see as being valid/useful;

  1. Go to previous/next function
  2. Goto previous/next var (i.e. m.var = declaration)
  3. Goto pervious/next member (i.e. all functions and m.var = declarations)

This could either be triggered by separate hotkeys (perhaps function/vs var) or a mode. (i.e. one hotkey for next/previous; and another to toggle previous/next mode).

georgejecook commented 4 years ago

not necessary - there are other ide extensions that do this. I'm using: https://marketplace.visualstudio.com/items?itemName=mishkinf.goto-next-previous-member