Skip to content

Proposal: Symbol categories to surface for "Go to Symbol" feature #33

@rkeithhill

Description

@rkeithhill

Visual Studio Code has two related features that this proposal addresses: Go to Symbol and Go to Symbol by Category accessed with Ctrl+Shift+O or Ctrl+P, @ and Ctrl+P, @:. For a JavaScript file, the follow symbols are shown:

image

And by category:

image

PowerShell Symbol Categories

For PowerShell, I propose the following categories:

  • functions (both simple and advanced as well as filters)
  • workflows
  • configurations
  • classes
  • properties (properties within classes)
  • methods (methods within classes)
  • enums
  • variables (script-scope only)

Filters could be a category but they are not significantly different from functions and with the advent of advanced functions, I don't believe filters are widely used anymore.

The JavaScript support only shows global variables - not function-scoped variables. I suggest that we only show script-scope variables as well (assuming this can be determined from the AST). If scope can't be determined from the AST then I propose not showing variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions