-
Notifications
You must be signed in to change notification settings - Fork 28.9k
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
onEnterRules should be multi-line aware #50952
Labels
editor-autoindent
Editor auto indentation issues
feature-request
Request for new features or functionality
languages-basic
Basic language support issues
Comments
The CPP extension sets
Looks like the last rule matches here and causes the observed behavior. |
aeschli
changed the title
Regexp should be multi-line aware
onEnterRules should be multi-line aware
Jun 4, 2018
rebornix
added
bug
Issue identified by VS Code Team member as probable bug
languages-basic
Basic language support issues
and removed
editor-core
Editor basic functionality
labels
Jun 4, 2018
The user wants to keep the last rule when inside a multiline comment, but from what I understand the |
rebornix
added
editor-autoindent
Editor auto indentation issues
and removed
editor
labels
Sep 18, 2018
rebornix
added
feature-request
Request for new features or functionality
and removed
bug
Issue identified by VS Code Team member as probable bug
labels
Nov 3, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
editor-autoindent
Editor auto indentation issues
feature-request
Request for new features or functionality
languages-basic
Basic language support issues
Use case: microsoft/vscode-cpptools#2072
Steps to Reproduce:
Type the following text in a .cpp file
Then hit enter at the end of the line to begin a new line. You'll get
This is not expected behavior in this context. This is perhaps expected when in the middle of a multiline decorated comment but not otherwise.
This does not happen in an unsaved file, a file with no extension, .txt extension etc. and does not happen if the cpptools extension is disabled and happens when it is re-enabled.
The text was updated successfully, but these errors were encountered: