Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript: code blocks auto indent improperly when apostrophes/quotation marks are present #86176

Closed
ariffjeff opened this issue Dec 3, 2019 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-autoindent Editor auto indentation issues help wanted Issues identified as good community contribution opportunities insiders-released Patch has been released in VS Code Insiders javascript JavaScript support issues typescript Typescript support issues verified Verification succeeded
Milestone

Comments

@ariffjeff
Copy link

Issue Type: Bug

When apostrophes/quotation marks are present on the first line of an if statement or for loop, and the VS Code command "Reindent Lines" is done, code within the statement or loop is indented incorrectly (no indentation).

if() {
   x = 4 
} 

... turns into the following after "Reindent Lines" ...

if() { // '
x = 4 
} 

VS Code version: Code 1.40.2 (f359dd6, 2019-11-25T14:54:45.096Z)
OS version: Windows_NT x64 10.0.18362

Extensions (1)
Extension Author (truncated) Version
extendscript-debug Ado 1.1.2
@vscodebot
Copy link

vscodebot bot commented Dec 3, 2019

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@mjbvz mjbvz added editor-autoindent Editor auto indentation issues help wanted Issues identified as good community contribution opportunities javascript JavaScript support issues typescript Typescript support issues labels Dec 3, 2019
@rebornix rebornix added the under-discussion Issue is under discussion for relevance, priority, approach label Nov 3, 2020
@mjbvz mjbvz closed this as completed in d89e2e1 Feb 27, 2021
@mjbvz mjbvz added this to the March 2021 milestone Feb 27, 2021
@rzhao271 rzhao271 added verified Verification succeeded bug Issue identified by VS Code Team member as probable bug and removed under-discussion Issue is under discussion for relevance, priority, approach labels Mar 24, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug editor-autoindent Editor auto indentation issues help wanted Issues identified as good community contribution opportunities insiders-released Patch has been released in VS Code Insiders javascript JavaScript support issues typescript Typescript support issues verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
@rebornix @rzhao271 @mjbvz @ariffjeff and others