Skip to content

Explore removing brackets of language configuration file from the string/regex before evaluating indentation #209862

Closed

Description

In relation to #209519

In the case of a single line string, or a string that appears in conjunction with other tokens on a line, we would like to remove the brackets of the language configuration file from the string, before evaluating the indentation rules on that stripped string. We want to do this to avoid indenting in cases such as the following:

const aString = 'function f() {'

Do the same for brackets inside of the regexes.

Activity

  1. added
    editor-autoindent
    polish
    on Apr 9, 2024
  2. changed the title [-]Explore removing brackets of language configuration file from the string before evaluating indentation[/-] [+]Explore removing brackets of language configuration file from the string/regex before evaluating indentation[/+] on Apr 10, 2024
  3. added
    unreleased
    on May 27, 2024
  4. added
    feature-request
    verification-needed
    and removed
    feature-request
    polish
    verification-needed
    on May 27, 2024
  5. added
    insiders-released
    and removed
    unreleased
    on May 27, 2024
  6. locked and limited conversation to collaborators on Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

editor-autoindentfeature-requestinsiders-releasedon-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions