René's URL Explorer Experiment


Title: Implement on-type block formatting · Issue #165 · microsoft/python-language-server · GitHub

Open Graph Title: Implement on-type block formatting · Issue #165 · microsoft/python-language-server

X Title: Implement on-type block formatting · Issue #165 · microsoft/python-language-server

Description: The VS Code extension provides an on-type formatter that triggers on : which allows for block formatting. For example, you can hit colon after the else in the following code: if x: pass else Which will then be reformatted into: if x: pas...

Open Graph Description: The VS Code extension provides an on-type formatter that triggers on : which allows for block formatting. For example, you can hit colon after the else in the following code: if x: pass else Which ...

X Description: The VS Code extension provides an on-type formatter that triggers on : which allows for block formatting. For example, you can hit colon after the else in the following code: if x: pass else Which ...

Opengraph URL: https://github.com/microsoft/python-language-server/issues/165

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implement on-type block formatting","articleBody":"The VS Code extension provides an on-type formatter that triggers on `:` which allows for block formatting. For example, you can hit colon after the `else` in the following code:\r\n\r\n```python\r\nif x:\r\n    pass\r\n    else\r\n```\r\n\r\nWhich will then be reformatted into:\r\n\r\n```python\r\nif x:\r\n    pass\r\nelse:\r\n```\r\n\r\nThis functionality should be implemented in language server for feature parity. The language server may even be able to handle more cases correctly than the extension's use of regex, since we have access to an AST.\r\n\r\nSince on-type formatting has only one entrypoint (`DocumentOnTypeFormatting`), that function would need to map trigger characters to the right handler. A nicety would be to have a Dictionary of handlers, then produce the `DocumentOnTypeFormattingOptions`'s trigger character members from that dictionary rather than needing to remember to change the characters in two different files.\r\n\r\nRelated to Microsoft/vscode-python#2714.","author":{"url":"https://github.com/jakebailey","@type":"Person","name":"jakebailey"},"datePublished":"2018-09-27T22:17:56Z","url":"https://github.com/microsoft/python-language-server/issues/165"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:104e3b11-767d-fcaf-dd03-13d799ebf647
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDAA8:2826BD:65D085:8530C2:6AFE6CD2
html-safe-nonce2770fa25ff3e4c7915a886fdb6cf99e5a3b6b3873e4993c59b9abfe8183a341a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUE4OjI4MjZCRDo2NUQwODU6ODUzMEMyOjZBRkU2Q0QyIiwidmlzaXRvcl9pZCI6IjE0NDMzMTI3NzA3OTQ1NDg0MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2b5e588799098e44f89d8a32e1c132b6f1352b1d37933fb122b8ee48b9e9cfc1
hovercard-subject-tagissue:364674036
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/165/issue_layout
twitter:imagehttps://opengraph.githubassets.com/060a3ffb5ebc828f2ba1924aa010f34e31bb932bd8f26ed21de85d0232c941e7/microsoft/python-language-server/issues/165
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/060a3ffb5ebc828f2ba1924aa010f34e31bb932bd8f26ed21de85d0232c941e7/microsoft/python-language-server/issues/165
og:image:altThe VS Code extension provides an on-type formatter that triggers on : which allows for block formatting. For example, you can hit colon after the else in the following code: if x: pass else Which ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejakebailey
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id145901977
octolytics-dimension-repository_nwomicrosoft/python-language-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id145901977
octolytics-dimension-repository_network_root_nwomicrosoft/python-language-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/python-language-server/issues/165#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F165
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F165
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fpython-language-server
Reloadhttps://github.com/microsoft/python-language-server/issues/165
Reloadhttps://github.com/microsoft/python-language-server/issues/165
Reloadhttps://github.com/microsoft/python-language-server/issues/165
microsofthttps://github.com/microsoft
python-language-serverhttps://github.com/microsoft/python-language-server
Codehttps://github.com/microsoft/python-language-server
Issues309 (309)https://github.com/microsoft/python-language-server/issues
Pull requests6 (6)https://github.com/microsoft/python-language-server/pulls
Projectshttps://github.com/microsoft/python-language-server/projects
Wikihttps://github.com/microsoft/python-language-server/wiki
Security and qualityhttps://github.com/microsoft/python-language-server/security
Insightshttps://github.com/microsoft/python-language-server/insights
https://github.com/microsoft/python-language-server
Implement on-type block formattinghttps://github.com/microsoft/python-language-server/issues/165#top
https://github.com/jakebailey
enhancementNew feature or requesthttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22enhancement%22
feature: formattinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20formatting%22
Oct 2018.2https://github.com/microsoft/python-language-server/milestone/3
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Sep 27, 2018https://github.com/microsoft/python-language-server/issues/165#issue-364674036
microsoft/vscode-python#2714https://github.com/microsoft/vscode-python/issues/2714
Jake Bailey (jakebailey)https://github.com/jakebailey
enhancementNew feature or requesthttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22enhancement%22
feature: formattinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20formatting%22
on Sep 27, 2018https://github.com/microsoft/python-language-server/issues/165#event-1872267319
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
Oct 2018.2https://github.com/microsoft/python-language-server/milestone/3
on Oct 5, 2018https://github.com/microsoft/python-language-server/issues/165#event-1887606245
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Oct 5, 2018https://github.com/microsoft/python-language-server/issues/165#event-1887636823
Turn off on type formatting until #165 is done.https://github.com/microsoft/python-language-server/commit/b00b69715338a94b2147055cd0a2d0010534b3b5
#165https://github.com/microsoft/python-language-server/issues/165
b00b697https://github.com/microsoft/python-language-server/commit/b00b69715338a94b2147055cd0a2d0010534b3b5
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Oct 8, 2018https://github.com/microsoft/python-language-server/issues/165#issuecomment-427910967
microsoft/vscode-python#481https://github.com/microsoft/vscode-python/issues/481
microsoft/vscode-python#684https://github.com/microsoft/vscode-python/issues/684
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on Oct 9, 2018https://github.com/microsoft/python-language-server/issues/165#event-1893892396
Enable on-type formatting from language server (#2737)https://github.com/microsoft/vscode-python/commit/eecb4ddec15731524e06ee5713211c5902b87c52
#2737https://github.com/microsoft/vscode-python/pull/2737
eecb4ddhttps://github.com/microsoft/vscode-python/commit/eecb4ddec15731524e06ee5713211c5902b87c52
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
Jake Bailey (jakebailey)https://github.com/jakebailey
on Oct 9, 2018https://github.com/microsoft/python-language-server/issues/165#event-1893909676
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
completedhttps://github.com/microsoft/python-language-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 9, 2018https://github.com/microsoft/python-language-server/issues/165#event-1893910292
Jake Bailey (jakebailey)https://github.com/jakebailey
on Nov 1, 2019https://github.com/microsoft/python-language-server/issues/165#event-2764571056
Turn off on type formatting until microsoft#165 is done.https://github.com/jakebailey/python-language-server/commit/5db4a0cf743ebd4987349d22d5b69d3f460a6767
microsoft#165https://github.com/microsoft/python-language-server/issues/165
5db4a0chttps://github.com/jakebailey/python-language-server/commit/5db4a0cf743ebd4987349d22d5b69d3f460a6767
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/python-language-server/issues/165
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/python-language-server/issues/165
Jake Bailey (jakebailey)https://github.com/jakebailey
enhancementNew feature or requesthttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22enhancement%22
feature: formattinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20formatting%22
Oct 2018.2https://github.com/microsoft/python-language-server/milestone/3
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.