Git Product home page Git Product logo

vscode-scope-bar's Introduction

Scope Bar

A Visual Studio Code Extension for showing the scope symbol name of the cursor on status bar.

Note: Notice that it didn't provider any symbol service. It depend on your language extension whitch registered a documentSymbolProvider. For more detail, see https://code.visualstudio.com/docs/extensionAPI/language-support#_show-all-symbol-definitions-within-a-document

Features

  1. Showing scope symbol name.

feature-1

  1. Navigate methods on current class.
    • Deafault keybinding: ctrl + alt + p
    • Configration for command for click status: scopebar.Navigate
      • ScopeSymbol: The effect as follows
      • FileSymbol: Goto file symbol, just like command by @.

feature-2

Source

GitHub

License

MIT

vscode-scope-bar's People

Stargazers

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

Watchers

 avatar  avatar  avatar

vscode-scope-bar's Issues

Doesn't work for Rust

Thank you for VSCode Scope Bar.

Most of the time it shows only "Global Scope" for (a large) Rust project.
image

I have (current) VS Code with rust-analyzer extension, which is the only mainstream language provider for Rust. (There exists "RLS" = Rust Language Support, which is obsolete and unmaintained.)

rust-analyzer feeds inferred type annotations, breadcrumbs... I don't know if rust-analyzer is registered/good enough with documentSymbolProvider.

Add Vue support

I expected to see 'plotAverage' function but extensions says 'Global Scope'
image

Indent Scope

Is there a way to see the scope of an indent similar to the way that Pycharm does it?
image
It would be really helpful to see what if statement I am in.

Cannot read property 'iterNodesRevers' of undefined: TypeError: Cannot read property 'iterNodesRevers' of undefined

Cannot read property 'iterNodesRevers' of undefined: TypeError: Cannot read property 'iterNodesRevers' of undefined
at ScopeFinder. (C:\Users\Jens.vscode-insiders\extensions\amos402.scope-bar-0.0.3\out\src\scope.js:147:46)
at Generator.next ()
at fulfilled (C:\Users\Jens.vscode-insiders\extensions\amos402.scope-bar-0.0.3\out\src\scope.js:4:58)
at
e.onUnexpectedError @ shell.ts:459
(anonymous) @ shell.ts:419
e.onUnexpectedError @ errors.ts:119
o @ errors.ts:138
e.$onUnexpectedError @ mainThreadErrors.ts:26
e.invoke @ abstractThreadService.ts:41
e._invokeHandler @ rpcProtocol.ts:109
e._receiveOneMessage @ rpcProtocol.ts:96
(anonymous) @ rpcProtocol.ts:32
(anonymous) @ rpcProtocol.ts:157
e.invoke @ callbackList.ts:36
e.fire @ event.ts:123
(anonymous) @ ipc.net.ts:82
emitOne @ events.js:96
emit @ events.js:191
readableAddChunk @ _stream_readable.js:178
Readable.push @ _stream_readable.js:136
onread @ net.js:560

Could you fix that bug please?

Status bar text doesn't update if file is edited until it is saved

During editing, if the scope range increases by a few lines and the file is not saved then what is displayed in the status bar won't reflect the edited state of the document.

While still super useful for seeing scope while reading, this extension would be most powerful if it had an option to reflect the edited, unsaved state of the document.

I understand this would probably come at a performance cost and so it might be good to be able to set an update interval once a file is edited.

Feature request: Showing currently selected function signature.

Hello.
This is more like a question if it would be easy to do this.
So it's fine if you don't have the time to implement this i mainly would like help in implementing it myself (maybe by forking your extension).

This is a feature from atom where wenever you move the cursor over a function, you can see the full function signature definition.

Example situation:

function something (thing, otherthing) {
    return thing
}

function main() {
    something|()
}

For example if i put the cursor where the | is i would see on the bottom bar "function something (thing, otherthing)" wich is the definition of the function that i am calling over there.

Performance issue

It has slow reaction when handling a large file, tested in a large python file.

It just stopped working. Vscode 1.27.2, Ubuntu 14.04

I am using vscode Version: 1.27.2, on Ubuntu 14.04
The extension just stopped working, I believe after I updated vscode, lately.
My attempts to get it to work include:
-Uninstalling the extension, closing vscode, restarting it, installing the extension, closing vscode and restating it again.
-Disabling and then enabling the extension.
None of that worked.
Any idea ?
Thanks

Show recently visited symbols when clicking the toolbar icon

Hello. I think it would be more useful to me if clicking the toolbar icon showed the recent symbols/functions I visited recently at the top. That way I can quickly navigate through functions I'm working on.

If this is possible to do without extensions please tell me.

Not working

Using with php, framework cakephp. Not working at the moment, any idea?

image

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.