Skip to content

Fix some missing indentationRules and indentation on ctrl+shift+enter #52209

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dqsully
Copy link

@dqsully dqsully commented Jun 18, 2018

Fixes #51802
Fixes #29134
Makes "Insert Line Above" command use current line's indentation when no indentationRules exist for the current language.

All indentationRules were copied/converted from the source language package or from a similar Atom package. Some language packages still don't have any indentationRules because I couldn't find any.

dqsully added 2 commits June 18, 2018 08:36
Use current line's indentation if language doesn't have indentation rules
@msftclas
Copy link

msftclas commented Jun 18, 2018

CLA assistant check
All CLA requirements met.

@dqsully
Copy link
Author

dqsully commented Aug 28, 2018

Any progress on this?

@rebornix rebornix added editor-autoindent Editor auto indentation issues feature-request Request for new features or functionality labels Oct 8, 2020
@joaomoreno joaomoreno changed the base branch from master to main February 15, 2021 08:51
@rebornix
Copy link
Member

I'm not sure if we want to invest more in textmate indentation rules at this moment. I'm leaning towards no but I'll leave this decision to @aiday-mar.

@rebornix rebornix assigned aiday-mar and unassigned rebornix Jan 21, 2025
@aiday-mar aiday-mar self-requested a review May 7, 2025 10:05
Copy link
Contributor

@aiday-mar aiday-mar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi thank you for making this PR and apologies for the delay in reviewing. I have looked at the PR and I think this is a promising PR. Could we do the following:

There is a merge conflict, could we resolve it?
You have added changes to the language configuration files in the same PR as you made a change to the src/vs/editor/common/controller/cursorTypeOperations.ts file. Could you separate these two into 2 PRs as these are fixing different issues
For each indentation rules you have added could you link the corresponding place you found them from? You mentioned they are taken from some Atom packages, I would like to have a look.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes-requested editor-autoindent Editor auto indentation issues feature-request Request for new features or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[rust] provide auto indent pattern Indentation Rule enhancement
4 participants