René's URL Explorer Experiment


Title: Port regex-based block formatting from vscode-python by jakebailey · Pull Request #217 · microsoft/python-language-server · GitHub

Open Graph Title: Port regex-based block formatting from vscode-python by jakebailey · Pull Request #217 · microsoft/python-language-server

X Title: Port regex-based block formatting from vscode-python by jakebailey · Pull Request #217 · microsoft/python-language-server

Description: Updates #165. This is a 1:1 port of the : triggered block formatter that's running in the extension, including its tests. See here for the current implementation: https://github.com/Microsoft/vscode-python/blob/master/src/client/typeFormatters/codeBlockFormatProvider.ts https://github.com/Microsoft/vscode-python/blob/master/src/client/typeFormatters/blockFormatProvider.ts https://github.com/Microsoft/vscode-python/blob/master/src/client/typeFormatters/contracts.ts This may not be the most efficient or most correct way to do this sort of formatting, but not having any block formatting in PLS means that we can't also ship the line formatting code. This will at least behave the same way and let us ship the new line formatter without regressing the editor in terms of features. This can be replaced later with something that uses the tokenizer/parser to act much more generally.

Open Graph Description: Updates #165. This is a 1:1 port of the : triggered block formatter that's running in the extension, including its tests. See here for the current implementation: https://github.com/Microsoft/...

X Description: Updates #165. This is a 1:1 port of the : triggered block formatter that's running in the extension, including its tests. See here for the current implementation: https://github.com/Micros...

Opengraph URL: https://github.com/microsoft/python-language-server/pull/217

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9008f62b-b0ab-7570-090c-3e466e38cab8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDF88:132CCD:81CD15:B190B5:6AFE711E
html-safe-nonce4e70a8fe6d1d1b438cac01f031d0008f1143c95cf7eb7dcabc47617324fc74be
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjg4OjEzMkNDRDo4MUNEMTU6QjE5MEI1OjZBRkU3MTFFIiwidmlzaXRvcl9pZCI6IjQwMzkwMzQ3ODc5NDY0NTk0MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9724b7a49d61a90304eb5645df0bf82d19acf3f5a359743c23b35b1d02731ed4
hovercard-subject-tagpull_request:221564465
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/microsoft/python-language-server/pull/217/files
twitter:imagehttps://avatars.githubusercontent.com/u/5341706?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5341706?s=400&v=4
og:image:altUpdates #165. This is a 1:1 port of the : triggered block formatter that's running in the extension, including its tests. See here for the current implementation: https://github.com/Microsoft/...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
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

Links:

Skip to contenthttps://github.com/microsoft/python-language-server/pull/217/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fpull%2F217%2Ffiles
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%2Fpull%2F217%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=microsoft%2Fpython-language-server
Reloadhttps://github.com/microsoft/python-language-server/pull/217/files
Reloadhttps://github.com/microsoft/python-language-server/pull/217/files
Reloadhttps://github.com/microsoft/python-language-server/pull/217/files
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
Jake Bailey (jakebailey)https://github.com/jakebailey
microsoft:masterhttps://github.com/microsoft/python-language-server/tree/master
jakebailey:block-formatting-porthttps://github.com/jakebailey/python-language-server/tree/block-formatting-port
Conversation 7 https://github.com/microsoft/python-language-server/pull/217
Commits 5 https://github.com/microsoft/python-language-server/pull/217/commits
Checks 0 https://github.com/microsoft/python-language-server/pull/217/checks
Files changed https://github.com/microsoft/python-language-server/pull/217/files
Please reload this pagehttps://github.com/microsoft/python-language-server/pull/217/files
Port regex-based block formatting from vscode-python https://github.com/microsoft/python-language-server/pull/217/files#top
Show all changes 5 commits https://github.com/microsoft/python-language-server/pull/217/files
12d5749 port block formatting on colon from vscode-python jakebailey Oct 8, 2018 https://github.com/microsoft/python-language-server/pull/217/commits/12d5749e0ab5e47227cf5d32d9c3eb19f12babbb
3741fd8 port tests jakebailey Oct 9, 2018 https://github.com/microsoft/python-language-server/pull/217/commits/3741fd82cbab513699de80387ddc73d5779548a7
8248f72 basic check in LanguageServerTests jakebailey Oct 9, 2018 https://github.com/microsoft/python-language-server/pull/217/commits/8248f723e2af9c71b9571b128d89c519372d1af6
04e2c3f split apart LanguageServer tests for OnTypeFormatting jakebailey Oct 9, 2018 https://github.com/microsoft/python-language-server/pull/217/commits/04e2c3f166cafeadaed46e1ab2221debaea5aa0f
503cb95 string.Empty instead of empty literal jakebailey Oct 9, 2018 https://github.com/microsoft/python-language-server/pull/217/commits/503cb9535164a725851cc51630710e88f0478b27
Clear filters https://github.com/microsoft/python-language-server/pull/217/files
Please reload this pagehttps://github.com/microsoft/python-language-server/pull/217/files
Please reload this pagehttps://github.com/microsoft/python-language-server/pull/217/files
BlockFormatterTests.cs https://github.com/microsoft/python-language-server/pull/217/files#diff-116667380f7929fd9301c251ddf0a506baae2b54878ede9a30671ccf976142c2
LanguageServerTests.cs https://github.com/microsoft/python-language-server/pull/217/files#diff-28ade1f8acb753fc60e7a11c41e7c9e7bc736d9985e0666ffa72925cb5552bdd
BlockFormatter.cs https://github.com/microsoft/python-language-server/pull/217/files#diff-fa3f93ac9b041b3f7f7ec1441e5468404b27320eca74d1d031c44f7f9324c74a
Server.OnTypeFormatting.cs https://github.com/microsoft/python-language-server/pull/217/files#diff-7334a49c7855f952068ff209a7b59600dc667830cb2c474a61fee6310ed3be8f
Server.cs https://github.com/microsoft/python-language-server/pull/217/files#diff-61776581664148d97359dd5bfaf6a4c58902b516e1ae0efb3921a5804bc853b5
elseBlocks2.py https://github.com/microsoft/python-language-server/pull/217/files#diff-5a582da4a0436a64a15be4359271a012901e6e7e581f00eea9ad58e21a508afd
elseBlocks4.py https://github.com/microsoft/python-language-server/pull/217/files#diff-fffeff7450672308fa4bf5855f79726c87f0ba579090b62a1d2786764b8d9eaa
elseBlocksFirstLine2.py https://github.com/microsoft/python-language-server/pull/217/files#diff-94ae79d773e88a1c863417f83dfeaa006d32a6ff709fffbdf2d0374230b705cc
elseBlocksFirstLine4.py https://github.com/microsoft/python-language-server/pull/217/files#diff-0c9b7dfcad9596fb55218aa6a559a2f5ce5ebdfcfe16317b5f5ee97e4403be6d
elseBlocksFirstLineTab.py https://github.com/microsoft/python-language-server/pull/217/files#diff-054568a68d2e5d1ea40a8df07aa20dd9ed02019e6ff5f9c9aa83cae5372ac9e6
elseBlocksTab.py https://github.com/microsoft/python-language-server/pull/217/files#diff-e573d4bbf91ede6ff7e081463306c6b195763d0b62182c44a8dc1ae2f3872e9e
tryBlocks2.py https://github.com/microsoft/python-language-server/pull/217/files#diff-3304f8fdb5ec7760f3166f0507ec1f9f825b4da892cded98a988fbed1062d68b
tryBlocks4.py https://github.com/microsoft/python-language-server/pull/217/files#diff-cf4bdda05d0fbaaadd70192852a2296d26fcf699ef229ef2d1d48111dc7dfc10
tryBlocksTab.py https://github.com/microsoft/python-language-server/pull/217/files#diff-295f10ea3f1e3dc585326d924982dcdfb6c6105ca7ebc6f0af17554bd761fb9b
src/Analysis/Engine/Test/BlockFormatterTests.cshttps://github.com/microsoft/python-language-server/pull/217/files#diff-116667380f7929fd9301c251ddf0a506baae2b54878ede9a30671ccf976142c2
View file https://github.com/jakebailey/python-language-server/blob/503cb9535164a725851cc51630710e88f0478b27/src/Analysis/Engine/Test/BlockFormatterTests.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/python-language-server/pull/217/{{ revealButtonHref }}
src/Analysis/Engine/Test/LanguageServerTests.cshttps://github.com/microsoft/python-language-server/pull/217/files#diff-28ade1f8acb753fc60e7a11c41e7c9e7bc736d9985e0666ffa72925cb5552bdd
View file https://github.com/jakebailey/python-language-server/blob/503cb9535164a725851cc51630710e88f0478b27/src/Analysis/Engine/Test/LanguageServerTests.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/python-language-server/pull/217/{{ revealButtonHref }}
https://github.com/microsoft/python-language-server/pull/217/files#diff-28ade1f8acb753fc60e7a11c41e7c9e7bc736d9985e0666ffa72925cb5552bdd
https://github.com/microsoft/python-language-server/pull/217/files#diff-28ade1f8acb753fc60e7a11c41e7c9e7bc736d9985e0666ffa72925cb5552bdd
Please reload this pagehttps://github.com/microsoft/python-language-server/pull/217/files
https://github.com/microsoft/python-language-server/pull/217/files#diff-28ade1f8acb753fc60e7a11c41e7c9e7bc736d9985e0666ffa72925cb5552bdd
Please reload this pagehttps://github.com/microsoft/python-language-server/pull/217/files
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.