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

Fix colon-triggered block formatting #2724

Merged
merged 3 commits into from
Sep 29, 2018

Conversation

jakebailey
Copy link
Member

For #2714.

Open to suggestions for naming the added class (if "dispatcher" isn't a good choice). As mentioned in #2714, this doesn't contain tests for things outside of the specific added class (i.e. integration). I haven't written anything in TypeScript before, so let me know if something here is unidiomatic or wrong.

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Has a news entry file (remember to thank yourself!)
  • Unit tests & system/integration tests are added/updated
  • Any new/changed dependencies in package.json are pinned (e.g. "1.2.3", not "^1.2.3" for the specified version)
  • package-lock.json has been regenerated by running npm install (if dependencies have changed)

@DonJayamanne
Copy link

Dispatcher is perfect. Though I wouldn't have added the dispatchers via the ctor, would have preferred an add method.
Neither here nor there...
Awesome

@DonJayamanne DonJayamanne merged commit 6683da0 into microsoft:master Sep 29, 2018
DonJayamanne pushed a commit that referenced this pull request Oct 9, 2018
For #2690.

Similar to #2612. Note that `:`-based formatting isn't implemented in language server yet (microsoft/python-language-server#165), but it hasn't been enabled in the extension for anyone for a while now either (fixed in #2714/#2724).

Since line formatting is relatively new in language server, this likely shouldn't make it out into a release until the language server downloaded by default is new enough to include that functionality. I haven't been monitoring that side of things, so feel free to hold off on merging this until the right time.
@Canorus Canorus mentioned this pull request Feb 23, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 2019
@jakebailey jakebailey deleted the on-type-formatting-provider branch September 3, 2020 22:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants