Skip to content

Mark function expressions differently from variables #36183

@ackvf

Description

@ackvf

Search Terms

Differentiate JS function vars from other vars, outline, breadcrumb, variable, function expression, arrow function expression

Suggestion

With the addition of outline.showVariables setting in VS Code, I would like to have this issue reconsidered.

microsoft/vscode#84359

image

image

Use case and example as above.

Other internal mechanisms and userland extensions could possibly benefit from this change as well.

Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
  • This feature would agree with the rest of TypeScript's Design Goals.

refs

microsoft/vscode#84359
#14830
#29036

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions