Title: Formatter stopped working when `md` is used · Issue #2261 · PowerShell/PowerShellEditorServices · GitHub
Open Graph Title: Formatter stopped working when `md` is used · Issue #2261 · PowerShell/PowerShellEditorServices
X Title: Formatter stopped working when `md` is used · Issue #2261 · PowerShell/PowerShellEditorServices
Description: Prerequisites I have written a descriptive issue title. I have searched all open and closed issues to ensure it has not already been reported. I have read the troubleshooting guide. I am sure this issue is with PowerShell Editor Services...
Open Graph Description: Prerequisites I have written a descriptive issue title. I have searched all open and closed issues to ensure it has not already been reported. I have read the troubleshooting guide. I am sure this ...
X Description: Prerequisites I have written a descriptive issue title. I have searched all open and closed issues to ensure it has not already been reported. I have read the troubleshooting guide. I am sure this ...
Opengraph URL: https://github.com/PowerShell/PowerShellEditorServices/issues/2261
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Formatter stopped working when `md` is used","articleBody":"### Prerequisites\n\n- [x] I have written a descriptive issue title.\n- [x] I have searched all [_open and closed_ issues](https://github.com/PowerShell/PowerShellEditorServices/issues?q=is%3Aissue) to ensure it has not already been reported.\n- [x] I have read the [troubleshooting](https://github.com/PowerShell/vscode-powershell/blob/main/docs/troubleshooting.md) guide.\n- [x] I am sure this issue is with _PowerShell Editor Services itself_ and does not reproduce in a standalone [PowerShell](https://github.com/PowerShell/PowerShell/issues/new/choose) instance, and is not an issue with my editor.\n- [x] I have verified that I am using the latest version of PowerShell Editor Services.\n- [x] If this is a security issue, I have read the [security issue reporting guidance](https://github.com/PowerShell/vscode-powershell/blob/main/SECURITY.md).\n\n### Summary\n\nformatter stopped working when code contains `md`(the alias of `mkdir` function)\n\n### PowerShell Version\n\n```console\n\u003e $PSVersionTable\n\nName Value\n---- -----\nPSVersion 7.5.4\nPSEdition Core\nGitCommitId 7.5.4\nOS NixOS 25.11 (Xantusia)\nPlatform Unix\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\nPSRemotingProtocolVersion 2.3\nSerializationVersion 1.1.0.1\nWSManStackVersion 3.0\n```\n\n### Editor Version\n\n```console\n$ nvim --version\n\nNVIM v0.11.5\nBuild type: Release\nLuaJIT 2.1.1741730670\nRun \"nvim -V1 -v\" for more info\n```\n\n### PowerShell Editor Services Version\n\n```console\n4.4.0\n```\n\n### Steps to Reproduce\n\n1. enable `autoCorrectAliases` lsp setting\n2. format following code\n ```ps1\n md foo\n\n if ($foo) {\n echo foo\n }\n ```\n3. nothing happened\n4. format code without `md`\n ```ps1\n ni foo\n\n if ($foo) {\n echo foo\n }\n ```\n succeeded\n ```ps1\n New-Item foo\n\n if ($foo) {\n Write-Output foo\n }\n ```\n\n### Visuals\n\n_No response_\n\n### Logs\n\n_No response_","author":{"url":"https://github.com/sharpchen","@type":"Person","name":"sharpchen"},"datePublished":"2025-11-15T14:00:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2261/PowerShellEditorServices/issues/2261"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ddc6b5a7-55a2-1e9f-65c1-ce45da995d2d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9BAE:3C9F9D:AC5F06:FA33A6:6A574775 |
| html-safe-nonce | 1d130735a6a554aab76e2b4408018c36161439848daf34d8ded44cfad80a12b0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkFFOjNDOUY5RDpBQzVGMDY6RkEzM0E2OjZBNTc0Nzc1IiwidmlzaXRvcl9pZCI6IjU4NjYyODYxMjQxOTQzODQ1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e20a4106f00c59e79aa9ed0c76dff070a48079ea3d3fcd4f059799198095589c |
| hovercard-subject-tag | issue:3628745273 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/PowerShell/PowerShellEditorServices/2261/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4e5eb3efec9a367c00e62e06f87c6448453aa0c5c8fa7feeec9d9043e15ff1fa/PowerShell/PowerShellEditorServices/issues/2261 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4e5eb3efec9a367c00e62e06f87c6448453aa0c5c8fa7feeec9d9043e15ff1fa/PowerShell/PowerShellEditorServices/issues/2261 |
| og:image:alt | Prerequisites I have written a descriptive issue title. I have searched all open and closed issues to ensure it has not already been reported. I have read the troubleshooting guide. I am sure this ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sharpchen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 602250ea3b6dd8302a7220ef98adb828dbc807e4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width