Skip to content

Should unused span cover type annotation as well #24598

Closed

Description

@mjbvz

From microsoft/vscode#50640

TypeScript Version: 3.0.0-dev.201601

Search Terms:

  • unused

Code

function foo(x: number) {}

Current behavior:
Only the span for the letter x is marked as unused

Question
Should the unused span cover the type annotation as well

Activity

  1. mhegazy commented on Jun 2, 2018

    @mhegazy
    Contributor

    Given our previous attempts to mark the keyword as part of the span, i think we are better off just marking the declaration name consistently.. see #24573 for more details.

  2. added
    Working as IntendedThe behavior described is the intended behavior; this is not a bug
    and removed
    VS Code TrackedThere is a VS Code equivalent to this issue
    on Jun 2, 2018
  3. typescript-bot commented on Jun 18, 2018

    @typescript-bot
    Contributor

    Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.

  4. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions