-
Notifications
You must be signed in to change notification settings - Fork 40.4k
Add language configuration file for visual basic #118932
Copy link
Copy link
Labels
editor-autoindentEditor auto indentation issuesEditor auto indentation issuesfeature-requestRequest for new features or functionalityRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insiderson-testplanvisualbasicVisual Basic support issuesVisual Basic support issues
Milestone
Metadata
Metadata
Labels
editor-autoindentEditor auto indentation issuesEditor auto indentation issuesfeature-requestRequest for new features or functionalityRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insiderson-testplanvisualbasicVisual Basic support issuesVisual Basic support issues
Type
Fields
Give feedbackNo fields configured for issues without a type.
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
Expected: When you type "End If", the indentation will go back to the same level as the opening block ("if"), as can be seen above.
Actual: The "end if" stays in the wrong indentation level:
Possible cause and solution:
I found out that this can happen in all programming languages where a closing tag includes the opening tag as a separate word (For example: If ... End If, or While ... End While).
Solution: This is related to the order of the pieces as defined in these lines of code in the richEditBrackets.ts file
I'm not sure if it will mess things up or not (though my initial tests look promising) and I'm not too familiar with the code to change it myself and issue a PR, so please take a look and let me know what you think.
Thank you!