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

Make auto indent depend on formatOnType setting value #20490

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

karthiknadig
Copy link
Member

For #20479

Another fix for recovery release.

@karthiknadig karthiknadig added the bug Issue identified by VS Code Team member as probable bug label Jan 11, 2023
@karthiknadig karthiknadig self-assigned this Jan 11, 2023
@karthiknadig karthiknadig added the skip tests Updates to tests unnecessary label Jan 11, 2023
@karthiknadig karthiknadig enabled auto-merge (squash) January 11, 2023 01:22
@karthiknadig karthiknadig merged commit 8ac655b into microsoft:release/2022.20 Jan 11, 2023
return inExperiment && formatOnTypeEffectiveValue;
const formatOnTypeEffectiveValue = this.getPythonSpecificEditorSection().get(FORMAT_ON_TYPE_CONFIG_SETTING);

return formatOnTypeEffectiveValue;
}

private async isInAutoIndentExperiment(): Promise<boolean> {

Choose a reason for hiding this comment

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

We're still checking for inExperiment, so can you clarify how are we making sure this is enabled for all users? cc/ @luabud

Copy link
Member

Choose a reason for hiding this comment

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

We don't want to enable this to all users, just those who explicitly enable format on type. If they don't have it enabled, we still want only those who are in the experiment to experience it.

@karthiknadig karthiknadig deleted the cherry2 branch January 11, 2023 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug skip tests Updates to tests unnecessary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants