Skip to content

Control application of insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets for Array Literal vs Array Access Expression #14994

Open

Description

@mjbvz

From TZ | 天猪 (@atian25) on March 28, 2017 0:25

  • VSCode Version: Code 1.10.2 [Unsupported] (8076a19fdcab7e1fc1707952d652f0bb6c6db331, 2017-03-08T13:56:35.908Z)
  • OS Version: Darwin x64 16.3.0
  • Extensions:
Extension Author Version
output-colorizer IBM 0.0.11
vscode-file-peek abierbaum 1.0.1
Bookmarks alefragnani 0.12.0
project-manager alefragnani 0.13.5
copy-syntax atian25 0.5.1
vscode-custom-css be5invis 2.3.1
npm-intellisense christian-kohler 1.3.0
vscode-mocha-latte cspotcode 0.2.0
vscode-eslint dbaeumer 1.2.8
vscode-npm-source dkundel 1.0.0
code-runner formulahendry 0.6.15
task-master ianhoney 0.1.39
path-autocomplete ionutvmi 1.4.1
plantuml jebbs 1.3.0
md-navigate jrieken 0.0.1
vue liuji-jim 0.1.5
debugger-for-chrome msjsdiag 2.7.1
node-modules-resolve naumovs 1.0.2
peep nwallace 0.0.5
vscode-json-transform octref 0.1.2
unittest-navigate roblourens 0.0.2
preview-vscode searKing 1.1.4
es6-mocha-snippets spoonscen 0.0.2
code-navigation vikas 0.2.0
JavaScriptSnippets xabikos 1.4.0

Steps to Reproduce:

javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets

// want this
const arr = [ 'a', 'b' ];
// don't want this
arr[ 1 ];

Copied from original issue: microsoft/vscode#23321

Activity

  1. removed their assignment
    on Apr 3, 2017
  2. changed the title [-]insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets[/-] [+]Control application of insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets for Array Literal vs Array Access Expression[/+] on Apr 3, 2017
  3. mjbvz commented on Apr 3, 2017

    @mjbvz
    ContributorAuthor

    I believe the current behavior is by design. I believe what TZ | 天猪 (@atian25) is requesting is an option to control adding spaces in array literal expressions vs bracket accessor expressions

  4. added this to the milestone on Aug 29, 2017
  5. atian25 commented on Oct 27, 2017

    @atian25

    any plan on this? Matt Bierner (@mjbvz)

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

    Domain: FormatterThe issue relates to the built-in formatterHelp WantedYou can do thisSuggestionAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions