{"id":19744,"date":"2022-12-05T11:01:50","date_gmt":"2022-12-05T19:01:50","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/powershell\/?p=19744"},"modified":"2022-12-05T11:01:50","modified_gmt":"2022-12-05T19:01:50","slug":"powershell-extension-for-visual-studio-code-october-2022-update","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/powershell-extension-for-visual-studio-code-october-2022-update\/","title":{"rendered":"PowerShell Extension for Visual Studio Code October 2022 Update"},"content":{"rendered":"<p>We are excited to announce that the October update to the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-vscode.PowerShell\">PowerShell Extension for Visual Studio Code<\/a>\nis now available on the extension marketplace.<\/p>\n<p>This October stable release incorporates a number of bugfixes throughout September and\nearly October, though is not based on the latest preview, v2022.10.1-preview, as the\nrefactors involved in enabling TypeScript&#8217;s strict type checking and ESLint&#8217;s strict\nlinting will need more testing. However, based on the success of the PowerShell Script\nAnalyzer&#8217;s <a href=\"https:\/\/github.com\/PowerShell\/PSScriptAnalyzer\/releases\/tag\/1.21.0\">v1.21.0<\/a> release we wanted to get this to you sooner!<\/p>\n<h2>Updates in the October Release<\/h2>\n<p>Note that these updates all shipped in our <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-vscode.PowerShell-Preview\">PowerShell Preview Extension<\/a>\nfor VS Code before shipping in our stable channel.<\/p>\n<p>Some highlights of the September and October preview releases:<\/p>\n<ul>\n<li>\ud83d\udc1b \ud83d\udd0d <a href=\"https:\/\/github.com\/PowerShell\/vscode-powershell\/pull\/4203\">vscode-powershell #4201<\/a> &#8211; Fix automatic focus to temporary debug terminal (if it exists).<\/li>\n<li>\ud83d\udc1b \u2702\ufe0f <a href=\"https:\/\/github.com\/PowerShell\/vscode-powershell\/pull\/4195\">vscode-powershell #4195<\/a> &#8211; Fix Function Help snippet. (Thanks @okhoel!)<\/li>\n<li>\u2728 \ud83d\udcfa <a href=\"https:\/\/github.com\/PowerShell\/vscode-powershell\/pull\/4193\">vscode-powershell #4193<\/a> &#8211; Handle busy notification for all PowerShell tasks.<\/li>\n<li>\u2728 \u200d\ud83d\udd75\ufe0f <a href=\"https:\/\/github.com\/PowerShell\/vscode-powershell\/pull\/4164\">vscode-powershell #4164<\/a> &#8211; Enable new PSScriptAnalyzer option <code>avoidSemicolonsAsLineTerminators<\/code>. (Thanks @bergmeister!)<\/li>\n<li>\ud83d\udc1b \ud83d\udd0d <a href=\"https:\/\/github.com\/PowerShell\/vscode-powershell\/pull\/4172\">vscode-powershell #4082<\/a> &#8211; Refactor the debug launch configuration resolvers.<\/li>\n<li>\ud83d\udcd4 \ud83d\ude4f <a href=\"https:\/\/github.com\/PowerShell\/vscode-powershell\/pull\/4170\">vscode-powershell #4170<\/a> &#8211; Add setting to only analyze open documents for references.<\/li>\n<li>\ud83d\udc1b \ud83d\udeeb <a href=\"https:\/\/github.com\/PowerShell\/vscode-powershell\/pull\/4161\">vscode-powershell #4160<\/a> &#8211; Lock <code>SessionManager.start()<\/code> so only one session is started.<\/li>\n<li>\u2728 \ud83d\udd27 <a href=\"https:\/\/github.com\/PowerShell\/vscode-powershell\/pull\/4139\">vscode-powershell #4139<\/a> &#8211; Add setting to control the references code lens.<\/li>\n<li>\u2728 \u200d\ud83d\udd75\ufe0f <a href=\"https:\/\/github.com\/PowerShell\/PowerShellEditorServices\/pull\/1916\">PowerShellEditorServices #1916<\/a> &#8211; Upgrade PSScriptAnalyzer to 1.21.0. (Thanks @bergmeister!)<\/li>\n<li>\ud83d\udc1b \ud83d\udeeb <a href=\"https:\/\/github.com\/PowerShell\/PowerShellEditorServices\/pull\/1918\">vscode-powershell #4048<\/a> &#8211; Created a nested PowerShell for the top-level loop.<\/li>\n<li>\ud83d\udcd4 \ud83d\ude4f <a href=\"https:\/\/github.com\/PowerShell\/PowerShellEditorServices\/pull\/1917\">PowerShellEditorServices #1917<\/a> &#8211; Overhaul workspace search for symbol references.<\/li>\n<li>\u2728 \ud83d\udea8 <a href=\"https:\/\/github.com\/PowerShell\/PowerShellEditorServices\/pull\/1914\">PowerShellEditorServices #1914<\/a> &#8211; Add regression tests for F5 and F8 saving to history.<\/li>\n<\/ul>\n<p>For the full list of changes please refer to our <a href=\"https:\/\/github.com\/PowerShell\/vscode-powershell\/blob\/main\/CHANGELOG.md\">changelog<\/a>.<\/p>\n<h2>Highlighted Bugfixes<\/h2>\n<p>Some major bugfixes we wish to call out include:<\/p>\n<ul>\n<li>supporting events registered to PowerShell&#8217;s <code>OnIdle<\/code> handler so that Azure cmdlets such\nas <code>Az.Tools.Predictor<\/code> now work<\/li>\n<li>a lock around the client&#8217;s <code>start()<\/code> so the extension terminal cannot accidentally be\nspawned multiple times<\/li>\n<li>making the default debug configurations not override your current working directory\n(by unsetting <code>cwd<\/code> on all of them).<\/li>\n<\/ul>\n<h2>Execution Busy Spinner<\/h2>\n<p>In addition to fixing bugs, we also reintroduced a fan-favorite feature: the PowerShell\nLanguage Status Icon will visually indicate if the execution pipeline is busy. For\nexample, a long-running task in the PowerShell Extension Terminal or a launched editor\ncommand will show a spinner!<\/p>\n<h2>References Performance Improvements<\/h2>\n<p>Finally, I wanted to call out work by Patrick to significantly improve the performance of\nreference finding (which powers the reference code lenses), so large workspaces can now be\nused more easily. If these performance improvements are still not enough for a particular\nworkspace, we also introduced two new settings to fine-tune the feature:<\/p>\n<ul>\n<li><code>powershell.analyzeOpenDocumentsOnly<\/code> when enabled will only search for references within open documents<\/li>\n<li><code>powershell.enableReferencesCodeLens<\/code> can be used to disable reference finding without having to turn off other code lenses<\/li>\n<\/ul>\n<h2>Getting Support and Giving Feedback<\/h2>\n<p>While we hope the new implementation provides a much better user experience, there are bound to be issues. Please let us know if you run into anything.<\/p>\n<p>If you encounter any issues with the PowerShell Extension in Visual Studio Code or have feature requests, the best place to get support is through our <a href=\"https:\/\/github.com\/PowerShell\/vscode-powershell\/issues\/new\/choose\">GitHub repository<\/a>.<\/p>\n<p>Andy Jordan,<\/p>\n<p>PowerShell Team<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are excited to announce that the October update to the PowerShell Extension for Visual Studio Code is now available on the extension marketplace. This October stable release incorporates a number of bugfixes throughout September and early October, though is not based on the latest preview, v2022.10.1-preview, as the refactors involved in enabling TypeScript&#8217;s strict [&hellip;]<\/p>\n","protected":false},"author":62819,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[248,3175],"class_list":["post-19744","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-powershell","tag-visual-studio-code"],"acf":[],"blog_post_summary":"<p>We are excited to announce that the October update to the PowerShell Extension for Visual Studio Code is now available on the extension marketplace. This October stable release incorporates a number of bugfixes throughout September and early October, though is not based on the latest preview, v2022.10.1-preview, as the refactors involved in enabling TypeScript&#8217;s strict [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/19744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/62819"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=19744"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/19744\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=19744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=19744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=19744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}