Title: Support provider-backed workspace URIs via pspath by dkattan · Pull Request #2136 · PowerShell/PowerShellEditorServices · GitHub
Open Graph Title: Support provider-backed workspace URIs via pspath by dkattan · Pull Request #2136 · PowerShell/PowerShellEditorServices
X Title: Support provider-backed workspace URIs via pspath by dkattan · Pull Request #2136 · PowerShell/PowerShellEditorServices
Description: Summary add pspath:// document support so provider-backed scripts can participate in workspace operations without pretending to be file:// paths route provider-backed workspace enumeration and content reads through PowerShell cmdlets when a host is available keep normal file-backed documents and workspace traversal on direct filesystem I/O to avoid cross-thread/apartment issues in ordinary editor requests preserve untitled/notebook handling and watched-file reload behavior for non-file URIs keep the workspace service surface synchronous and cover the provider-backed launch path in tests Why The goal of this branch is to let PSES honor custom PSProviders for workspace content while still behaving normally for ordinary files. The final shape is intentionally hybrid: provider-backed URIs use PowerShell so custom providers are respected, and file-backed URIs stay on the existing filesystem path to avoid regressions in debugger, symbol, and code lens flows. This also supports web-based VS Code scenarios where the editor does not share the same filesystem as the language server. In that setup, an extension can contribute a VS Code FileProvider for pspath: while PSES loads a matching PSProvider in its runspace; both sides can point at the same backing persistence mechanism, such as an API, so the client and the language server address the same logical content. Files changed WorkspaceService adds pspath conversion helpers plus provider-backed enumeration/read support ScriptFile explicitly recognizes supported URI schemes and treats only true in-memory schemes as untitled DidChangeWatchedFilesHandler reloads content through the workspace service and handles non-file URIs more safely tests cover provider-backed launch and updated URI classification Validation targeted provider-path unit coverage passes locally current PR CI is green on Ubuntu, macOS, and Windows, along with the policy checks
Open Graph Description: Summary add pspath:// document support so provider-backed scripts can participate in workspace operations without pretending to be file:// paths route provider-backed workspace enumeration and con...
X Description: Summary add pspath:// document support so provider-backed scripts can participate in workspace operations without pretending to be file:// paths route provider-backed workspace enumeration and con...
Opengraph URL: https://github.com/PowerShell/PowerShellEditorServices/pull/2136
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:287b6db2-8f1b-4c66-55d5-be21724cb5f9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9018:3D6979:52FC77:7974BA:6A57865A |
| html-safe-nonce | a1c4040c7f5ff884e08a2112d33cb76703edb39b4e834d859b6992de136037fe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDE4OjNENjk3OTo1MkZDNzc6Nzk3NEJBOjZBNTc4NjVBIiwidmlzaXRvcl9pZCI6IjEyODc3OTU0NDUyNjQyNTQ1NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 75c5c4ef3e3f33335a7d4195d3012fd9fd46653df7f209deb5cae34629f55994 |
| hovercard-subject-tag | pull_request:1724560976 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/PowerShell/PowerShellEditorServices/pull/2136/files |
| twitter:image | https://avatars.githubusercontent.com/u/1424395?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1424395?s=400&v=4 |
| og:image:alt | Summary add pspath:// document support so provider-backed scripts can participate in workspace operations without pretending to be file:// paths route provider-backed workspace enumeration and con... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6353e56e94423c9cd5abde7708a859afa36a0c1203c73749055bf6ee6704cd0 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/PowerShell/PowerShellEditorServices git https://github.com/PowerShell/PowerShellEditorServices.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 36031537 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShellEditorServices |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36031537 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShellEditorServices |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f59ab1c46b638204e2aea09126d089be5dc773b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width