Title: UseCorrectCasing removes `
Open Graph Title: UseCorrectCasing removes `
X Title: UseCorrectCasing removes `
Description: Steps to reproduce This does not happen if you have a file only containing: Az.Monitor\Get-AzDataCollectionRuleAssociation Thus: VSCode settings.json contains: "powershell.codeFormatting.useCorrectCasing": true. Create temp.ps1 with foll...
Open Graph Description: Steps to reproduce This does not happen if you have a file only containing: Az.Monitor\Get-AzDataCollectionRuleAssociation Thus: VSCode settings.json contains: "powershell.codeFormatting.useCorrect...
X Description: Steps to reproduce This does not happen if you have a file only containing: Az.Monitor\Get-AzDataCollectionRuleAssociation Thus: VSCode settings.json contains: "powershell.codeFormatting.useCo...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/2023
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UseCorrectCasing removes `\u003cmodule>\\` from `\u003cmodule>\\\u003ccmdlet>` in vscode-powershell","articleBody":"## Steps to reproduce\r\n\r\nThis does not happen if you have a file only containing:\r\n\r\n```pwsh\r\nAz.Monitor\\Get-AzDataCollectionRuleAssociation\r\n```\r\n\r\nThus:\r\n\r\n1. VSCode `settings.json` contains: `\"powershell.codeFormatting.useCorrectCasing\": true`.\r\n1. Create `temp.ps1` with following content:\r\n\r\n ```PowerShell\r\n Write-Information -MessageData 'Adding associations.'\r\n $DCRs | ForEach-Object -ThrottleLimit $DCRs.'Count' -Parallel {\r\n $null = Add-Member -InputObject $_ -MemberType 'NoteProperty' -Force -Name 'associations' -Value (\r\n [array](\r\n Az.Monitor\\Get-AzDataCollectionRuleAssociation -SubscriptionId $_.'subscriptionId' `\r\n -ResourceGroupName $_.'resourceGroup' -DataCollectionRuleName $_.'name'\r\n )\r\n )\r\n } 6>$null\r\n ```\r\n\r\n1. Save. The content becomes:\r\n\r\n ```PowerShell\r\n Write-Information -MessageData 'Adding associations.'\r\n $DCRs | ForEach-Object -ThrottleLimit $DCRs.'Count' -Parallel {\r\n $null = Add-Member -InputObject $_ -MemberType 'NoteProperty' -Force -Name 'associations' -Value (\r\n [array](\r\n Get-AzDataCollectionRuleAssociation -SubscriptionId $_.'subscriptionId' `\r\n -ResourceGroupName $_.'resourceGroup' -DataCollectionRuleName $_.'name'\r\n )\r\n )\r\n } 6>$null\r\n ```\r\n\r\n## Expected behavior\r\n\r\nContent should not change.\r\n\r\n## Actual behavior\r\n\r\n`Az.Monitor\\` gets stripped.\r\n\r\n## Environment data\r\n\r\n* PowerShell v7.4.5\r\n* vscode-powershell v2024.2.2\r\n* PSScriptAnalyzer in vscode-powershell v2024.2.2: v1.22.0\r\n * Changelog: \u003chttps://github.com/PowerShell/vscode-powershell/releases>\r\n\r\n","author":{"url":"https://github.com/o-l-a-v","@type":"Person","name":"o-l-a-v"},"datePublished":"2024-08-22T13:57:20Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/2023"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0f3c2bbc-578a-cab8-e340-5658bcfe06af |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 80CC:A067:156990A:1E2B9A9:6AFCE7F8 |
| html-safe-nonce | 62d2191ac40401ea19f51bb64ddd7db3669c85859b98ce28573e00d92f02054a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MENDOkEwNjc6MTU2OTkwQToxRTJCOUE5OjZBRkNFN0Y4IiwidmlzaXRvcl9pZCI6IjY0MzQyMjM1OTY2MzcwNTQ5NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e70a36c4bf5b6292e84031ee379c3de42a9d70ddd57d345b8def83fe842bf95f |
| hovercard-subject-tag | issue:2480865572 |
| 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/PSScriptAnalyzer/2023/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97634160c203072205da1890fb9cf75baa046ea96a98abc8c6f9fcac569566c7/PowerShell/PSScriptAnalyzer/issues/2023 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97634160c203072205da1890fb9cf75baa046ea96a98abc8c6f9fcac569566c7/PowerShell/PSScriptAnalyzer/issues/2023 |
| og:image:alt | Steps to reproduce This does not happen if you have a file only containing: Az.Monitor\Get-AzDataCollectionRuleAssociation Thus: VSCode settings.json contains: "powershell.codeFormatting.useCorrect... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | o-l-a-v |
| hostname | github.com |
| expected-hostname | github.com |
| None | 99aede4c5f55ec5cf06666a8c9e03ebf9f85f7231223e7f1c38c16e5504835b3 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 33149177 |
| octolytics-dimension-repository_nwo | PowerShell/PSScriptAnalyzer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33149177 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PSScriptAnalyzer |
| 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 | ecfd63ca125ec74b42f74eeb158b3fa081c8c497 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width