René's URL Explorer Experiment


Title: Add `FileContext.GetText(IFileRange)` overload by andyleejordan · Pull Request #2306 · PowerShell/PowerShellEditorServices · GitHub

Open Graph Title: Add `FileContext.GetText(IFileRange)` overload by andyleejordan · Pull Request #2306 · PowerShell/PowerShellEditorServices

X Title: Add `FileContext.GetText(IFileRange)` overload by andyleejordan · Pull Request #2306 · PowerShell/PowerShellEditorServices

Description: A common platform for PowerShell development support in any editor or application! - Add `FileContext.GetText(IFileRange)` overload by andyleejordan · Pull Request #2306 · PowerShell/PowerShellEditorServices

Open Graph Description: Fixes #1496. EditorContext.SelectedRange is typed as IFileRange, but FileContext.GetText/GetTextLines only accepted the concrete FileRange class. So the natural $Context.CurrentFile.GetText($Contex...

X Description: Fixes #1496. EditorContext.SelectedRange is typed as IFileRange, but FileContext.GetText/GetTextLines only accepted the concrete FileRange class. So the natural $Context.CurrentFile.GetText($Contex...

Opengraph URL: https://github.com/PowerShell/PowerShellEditorServices/pull/2306

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:2abd4407-c874-7fcb-7908-34e112216589
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB2DE:26EB7:24F0967:354E469:6A57B0D5
html-safe-noncedff338cd8698370fe3ab6f76c3bdfe631c6cf568aaf09e672f63c5a73b0078b7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkRFOjI2RUI3OjI0RjA5Njc6MzU0RTQ2OTo2QTU3QjBENSIsInZpc2l0b3JfaWQiOiIyNzE1ODYzNjQwMTYzNDYzMzgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2ecd869a892f6e6d4e5854601a1f7130b3f7912f388cda04d89ba52d0be13eed
hovercard-subject-tagpull_request:3871921358
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/PowerShell/PowerShellEditorServices/2306/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c902740b49cbf0ba9d518a6545cc2f3b07d26b2e827f25238504dc80bc16712b/PowerShell/PowerShellEditorServices/pull/2306
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c902740b49cbf0ba9d518a6545cc2f3b07d26b2e827f25238504dc80bc16712b/PowerShell/PowerShellEditorServices/pull/2306
og:image:altFixes #1496. EditorContext.SelectedRange is typed as IFileRange, but FileContext.GetText/GetTextLines only accepted the concrete FileRange class. So the natural $Context.CurrentFile.GetText($Contex...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameandyleejordan
hostnamegithub.com
expected-hostnamegithub.com
None899c314dfde9abcf8fc1fe8c04f09866b347ea06f43166d653afc482795c9fca
turbo-cache-controlno-cache
go-importgithub.com/PowerShell/PowerShellEditorServices git https://github.com/PowerShell/PowerShellEditorServices.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id36031537
octolytics-dimension-repository_nwoPowerShell/PowerShellEditorServices
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36031537
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShellEditorServices
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
release67aa73f3bba9e68b2de0ebe01c65fcd120461cba
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShellEditorServices/pull/2306#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShellEditorServices%2Fpull%2F2306
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShellEditorServices%2Fpull%2F2306
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=PowerShell%2FPowerShellEditorServices
Reloadhttps://github.com/PowerShell/PowerShellEditorServices/pull/2306
Reloadhttps://github.com/PowerShell/PowerShellEditorServices/pull/2306
Reloadhttps://github.com/PowerShell/PowerShellEditorServices/pull/2306
Please reload this pagehttps://github.com/PowerShell/PowerShellEditorServices/pull/2306
PowerShell https://github.com/PowerShell
PowerShellEditorServiceshttps://github.com/PowerShell/PowerShellEditorServices
Notifications https://github.com/login?return_to=%2FPowerShell%2FPowerShellEditorServices
Fork 260 https://github.com/login?return_to=%2FPowerShell%2FPowerShellEditorServices
Star 759 https://github.com/login?return_to=%2FPowerShell%2FPowerShellEditorServices
Code https://github.com/PowerShell/PowerShellEditorServices
Issues 127 https://github.com/PowerShell/PowerShellEditorServices/issues
Pull requests 14 https://github.com/PowerShell/PowerShellEditorServices/pulls
Actions https://github.com/PowerShell/PowerShellEditorServices/actions
Security and quality 0 https://github.com/PowerShell/PowerShellEditorServices/security
Insights https://github.com/PowerShell/PowerShellEditorServices/pulse
Code https://github.com/PowerShell/PowerShellEditorServices
Issues https://github.com/PowerShell/PowerShellEditorServices/issues
Pull requests https://github.com/PowerShell/PowerShellEditorServices/pulls
Actions https://github.com/PowerShell/PowerShellEditorServices/actions
Security and quality https://github.com/PowerShell/PowerShellEditorServices/security
Insights https://github.com/PowerShell/PowerShellEditorServices/pulse
andyleejordanhttps://github.com/andyleejordan
mainhttps://github.com/PowerShell/PowerShellEditorServices/tree/main
andyleejordan/add-filecontext-gettext-ifilerangehttps://github.com/PowerShell/PowerShellEditorServices/tree/andyleejordan/add-filecontext-gettext-ifilerange
Conversationhttps://github.com/PowerShell/PowerShellEditorServices/pull/2306
Commits1 (1)https://github.com/PowerShell/PowerShellEditorServices/pull/2306/commits
Checkshttps://github.com/PowerShell/PowerShellEditorServices/pull/2306/checks
Files changedhttps://github.com/PowerShell/PowerShellEditorServices/pull/2306/files
Add FileContext.GetText(IFileRange) overloadhttps://github.com/PowerShell/PowerShellEditorServices/pull/2306#top
andyleejordanhttps://github.com/andyleejordan
mainhttps://github.com/PowerShell/PowerShellEditorServices/tree/main
andyleejordan/add-filecontext-gettext-ifilerangehttps://github.com/PowerShell/PowerShellEditorServices/tree/andyleejordan/add-filecontext-gettext-ifilerange
https://github.com/andyleejordan
andyleejordanhttps://github.com/andyleejordan
Jun 16, 2026https://github.com/PowerShell/PowerShellEditorServices/pull/2306#issue-4669891572
#1496https://github.com/PowerShell/PowerShellEditorServices/issues/1496
Please reload this pagehttps://github.com/PowerShell/PowerShellEditorServices/pull/2306
https://github.com/andyleejordan
https://github.com/apps/github-copilot-cli
Accept IFileRange in FileContext.GetText overloadshttps://github.com/PowerShell/PowerShellEditorServices/pull/2306/commits/5ba14e053d29de359e96c15430a0d26a5af72efa
5ba14e0https://github.com/PowerShell/PowerShellEditorServices/pull/2306/commits/5ba14e053d29de359e96c15430a0d26a5af72efa
#1496https://github.com/PowerShell/PowerShellEditorServices/issues/1496
https://github.com/andyleejordan
andyleejordanhttps://github.com/andyleejordan
June 16, 2026 00:16https://github.com/PowerShell/PowerShellEditorServices/pull/2306#event-26784429422
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
June 16, 2026 00:16https://github.com/PowerShell/PowerShellEditorServices/pull/2306#event-26784429664
https://github.com/andyleejordan
andyleejordanhttps://github.com/andyleejordan
June 16, 2026 00:17https://github.com/PowerShell/PowerShellEditorServices/pull/2306#event-26784436882
started reviewinghttps://github.com/PowerShell/PowerShellEditorServices/sessions/0eab903b-a851-446f-b131-1adb487fc19b
andyleejordanhttps://github.com/andyleejordan
June 16, 2026 00:17https://github.com/PowerShell/PowerShellEditorServices/pull/2306#event-26784444589
View session https://github.com/PowerShell/PowerShellEditorServices/sessions/0eab903b-a851-446f-b131-1adb487fc19b
https://github.com/andyleejordan
andyleejordanhttps://github.com/andyleejordan
JustinGrotehttps://github.com/JustinGrote
SeeminglySciencehttps://github.com/SeeminglyScience
June 16, 2026 00:18https://github.com/PowerShell/PowerShellEditorServices/pull/2306#event-26784469717
https://github.com/andyleejordan
andyleejordanhttps://github.com/andyleejordan
Jun 16, 2026https://github.com/PowerShell/PowerShellEditorServices/pull/2306#issuecomment-4713644621
#1496 (comment)https://github.com/PowerShell/PowerShellEditorServices/issues/1496#issuecomment-861002229
Please reload this pagehttps://github.com/PowerShell/PowerShellEditorServices/pull/2306
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Jun 16, 2026 https://github.com/PowerShell/PowerShellEditorServices/pull/2306#pullrequestreview-4502261922
View reviewed changes https://github.com/PowerShell/PowerShellEditorServices/pull/2306/files/5ba14e053d29de359e96c15430a0d26a5af72efa
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/PowerShell/PowerShellEditorServices/pull/2306#pullrequestreview-4502261922
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#1496https://github.com/PowerShell/PowerShellEditorServices/issues/1496
Add Copilot custom instructionshttps://github.com/PowerShell/PowerShellEditorServices/new/main?filename=.github/instructions/*.instructions.md
Learn how to get startedhttps://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot
Please reload this pagehttps://github.com/PowerShell/PowerShellEditorServices/pull/2306
https://github.com/apps/copilot-swe-agent
Copilothttps://github.com/apps/copilot-swe-agent
Jun 16, 2026 https://github.com/PowerShell/PowerShellEditorServices/pull/2306#ref-pullrequest-4669945781
Fix flaky CanRegisterAndInvokeCommandWithScriptBlock on PS 5.1 / net462 #2307 https://github.com/PowerShell/PowerShellEditorServices/pull/2307
https://github.com/andyleejordan
andyleejordanhttps://github.com/andyleejordan
Area-API https://github.com/PowerShell/PowerShellEditorServices/issues?q=state%3Aopen%20label%3AArea-API
Issue-Enhancement https://github.com/PowerShell/PowerShellEditorServices/issues?q=state%3Aopen%20label%3AIssue-Enhancement
Jun 16, 2026https://github.com/PowerShell/PowerShellEditorServices/pull/2306#event-26786090465
https://github.com/andyleejordan
andyleejordanhttps://github.com/andyleejordan
Jun 16, 2026https://github.com/PowerShell/PowerShellEditorServices/pull/2306#issuecomment-4714053841
@SeeminglySciencehttps://github.com/SeeminglyScience
@JustinGrotehttps://github.com/JustinGrote
Please reload this pagehttps://github.com/PowerShell/PowerShellEditorServices/pull/2306
https://github.com/JustinGrote
JustinGrotehttps://github.com/JustinGrote
Jun 18, 2026 https://github.com/PowerShell/PowerShellEditorServices/pull/2306#pullrequestreview-4521155847
View reviewed changes https://github.com/PowerShell/PowerShellEditorServices/pull/2306/files/5ba14e053d29de359e96c15430a0d26a5af72efa
JustinGrotehttps://github.com/JustinGrote
https://github.com/PowerShell/PowerShellEditorServices/pull/2306#pullrequestreview-4521155847
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/PowerShell/PowerShellEditorServices/pull/2306
https://github.com/andyleejordan
andyleejordanhttps://github.com/andyleejordan
37dc288https://github.com/PowerShell/PowerShellEditorServices/commit/37dc288e2e91ea06cdc912687d5534dc682ea9dd
Jun 18, 2026https://github.com/PowerShell/PowerShellEditorServices/pull/2306#event-26890812252
Please reload this pagehttps://github.com/PowerShell/PowerShellEditorServices/pull/2306
https://github.com/andyleejordan
andyleejordanhttps://github.com/andyleejordan
June 18, 2026 03:06https://github.com/PowerShell/PowerShellEditorServices/pull/2306#event-26890812794
https://github.com/andyleejordan
andyleejordanhttps://github.com/andyleejordan
Jun 18, 2026 https://github.com/PowerShell/PowerShellEditorServices/pull/2306#ref-pullrequest-4695783776
Restore concrete FileRange overloads on FileContext for binary compat #2319 https://github.com/PowerShell/PowerShellEditorServices/pull/2319
andyleejordanhttps://github.com/andyleejordan
Jun 22, 2026 https://github.com/PowerShell/PowerShellEditorServices/pull/2306#ref-commit-441db22
https://github.com/andyleejordan
https://github.com/apps/github-copilot-cli
Restore concrete FileRange overloads on FileContexthttps://github.com/PowerShell/PowerShellEditorServices/commit/441db229d7b405c2e01f5b8860c0c7815ec36ae3
441db22https://github.com/PowerShell/PowerShellEditorServices/commit/441db229d7b405c2e01f5b8860c0c7815ec36ae3
#2306https://github.com/PowerShell/PowerShellEditorServices/pull/2306
andyleejordanhttps://github.com/andyleejordan
Jun 22, 2026 https://github.com/PowerShell/PowerShellEditorServices/pull/2306#ref-commit-7e0aa34
https://github.com/andyleejordan
https://github.com/apps/github-copilot-cli
Document public API binary-compatibility rules for Copilothttps://github.com/PowerShell/PowerShellEditorServices/commit/7e0aa34a5e915b06a580f3b570103eaa150d2c7f
7e0aa34https://github.com/PowerShell/PowerShellEditorServices/commit/7e0aa34a5e915b06a580f3b570103eaa150d2c7f
#2306https://github.com/PowerShell/PowerShellEditorServices/pull/2306
andyleejordanhttps://github.com/andyleejordan
Jun 22, 2026 https://github.com/PowerShell/PowerShellEditorServices/pull/2306#ref-commit-0515a5f
https://github.com/andyleejordan
https://github.com/apps/github-copilot-cli
Restore concrete FileRange overloads on FileContext for binary co…https://github.com/PowerShell/PowerShellEditorServices/commit/0515a5fbdb8534ceca3dde081a9883a097e9deee
0515a5fhttps://github.com/PowerShell/PowerShellEditorServices/commit/0515a5fbdb8534ceca3dde081a9883a097e9deee
#2319https://github.com/PowerShell/PowerShellEditorServices/pull/2319
#2306https://github.com/PowerShell/PowerShellEditorServices/pull/2306
#2306https://github.com/PowerShell/PowerShellEditorServices/pull/2306
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShellEditorServices/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShellEditorServices%2Fpull%2F2306
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
https://github.com/PowerShell/PowerShellEditorServices/pull/2306/files/5ba14e053d29de359e96c15430a0d26a5af72efa
https://github.com/JustinGrote
JustinGrote https://github.com/JustinGrote
https://github.com/PowerShell/PowerShellEditorServices/pull/2306/files/5ba14e053d29de359e96c15430a0d26a5af72efa
https://github.com/SeeminglyScience
SeeminglyScience https://github.com/SeeminglyScience
Area-API https://github.com/PowerShell/PowerShellEditorServices/issues?q=state%3Aopen%20label%3AArea-API
Issue-Enhancement https://github.com/PowerShell/PowerShellEditorServices/issues?q=state%3Aopen%20label%3AIssue-Enhancement
$Context.CurrentFile.GetText not compatible with $Context.SelectedRange https://github.com/PowerShell/PowerShellEditorServices/issues/1496
Please reload this pagehttps://github.com/PowerShell/PowerShellEditorServices/pull/2306
https://github.com/andyleejordan
https://github.com/JustinGrote
https://github.com/apps/copilot-pull-request-reviewer
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.