Skip to content

@ts-ignore for the block scope and imports #19573

Open
@zpdDG4gta8XKpMCd

Description

@zpdDG4gta8XKpMCd

currently @ts-ignore only mutes the errors from the line immediately below it

would be great to have the same for

  1. the whole next block
  2. also for all imports

use case:

refactoring: commenting out a piece of code to see what would break without it, yet avoiding to deal with the errors in the file where commented code is which can be many

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 TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions