Skip to content

Conversation

davidwengier
Copy link
Member

This was a lot more complicated than I thought, so after chatting with @ryzngard this is taking the easy way out, since the hard way would require big changes to formatting.

With this change the actual formatting service doesn't check the on type formatting setting, just the LSP endpoints do, with this PR specifically adding that check to the auto insert endpoint. This means the setting will also turn off XML doc comment completion, but I think thats a reasonable compromise for now. It also means the setting has no effect if Single Server is turned off, but we have no reason to think anyone has done that anyway.

There is a comment explaining that, and a bit more, in the code.

Closes #4336

@phil-allen-msft I think we should take this for M2

@davidwengier davidwengier requested review from a team as code owners March 2, 2023 02:49
@davidwengier
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@davidwengier
Copy link
Member Author

whoops, jumped the gun, i thought the merge from main had gone in

@davidwengier davidwengier force-pushed the OnTypeFormattingOption branch from 1598589 to 15c5665 Compare March 3, 2023 00:00
@davidwengier davidwengier changed the base branch from main to release/dev17.6 March 3, 2023 00:01
@davidwengier
Copy link
Member Author

Force pushed, and retargeted to 17.6 for M2 purposes

@davidwengier davidwengier merged commit 47a4b09 into dotnet:release/dev17.6 Mar 3, 2023
@davidwengier davidwengier deleted the OnTypeFormattingOption branch March 3, 2023 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to turn off On Type formatting
2 participants