Skip to content

Fix colon-triggered block formatting - #2724

Merged
Don Jayamanne (DonJayamanne) merged 3 commits into
microsoft:masterfrom
jakebailey:on-type-formatting-provider
Sep 29, 2018
Merged

Don Jayamanne (DonJayamanne) merged 3 commits into
microsoft:masterfrom
jakebailey:on-type-formatting-provider

Conversation

@jakebailey

Copy link
Copy Markdown
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
Copy Markdown

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
Don Jayamanne (DonJayamanne) merged commit 6683da0 into microsoft:master Sep 29, 2018
Don Jayamanne (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.
@lock lock Bot locked as resolved and limited conversation to collaborators Jul 31, 2019
@jakebailey
Jake Bailey (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