Change:
Set-MappedKeyHandler -Chord Shift+Enter -Sequence 'F12,c' Set-MappedKeyHandler -Chord Shift+End -Sequence 'F12,d' <del> # Conditionally enable suggestions if ($env:VSCODE_SUGGEST -eq '1') { </del> <ins> # Enable suggestions if the environment variable is set and Windows PowerShell is not being used # as APIs are not available to support this feature if ($env:VSCODE_SUGGEST -eq '1' -and $PSVersionTable.PSVersion -ge "6.0") { </ins> Remove-Item Env:VSCODE_SUGGEST # VS Code send completions request (may override Ctrl+Spacebar)

Discussion:
Type: <bBug</bWhenever I type in PowerShell inside of VSCode, I get an error every character I type, screenshot below. This only happens inside VSCode, it does not happen if I open PowerShell from Windows Start (the error message indicates it's a script in the VSCode folder) ! VS Code version: Code 1.90.0 (, 2024-06-04T19:33:54.889Z) OS version: WindowsNT x64 10.0. Modes: <details<summarySystem Info</summary </details<details<summaryExtensions (105)</summaryExtensionVersion ------ vscode-icalendar1.0.1 vscode-m3u1.0.0 vscode-caniuse0.5.0 case-change1.0.2 rtf2.8.0 vscode-sqlite0.14.1 swagger-viewer3.1.2 armview0.4.6 markdown-checkbox0.4.0 markdown-emoji0.3.0 markdown-footnotes0.1.1 markdown-mermaid1.23.0 vscode-tldr1.0.0 mermaid-markdown-syntax-highlighting1.6.3 npm-intellisense1.4.5 gitignore0.9.0 disableligatures0.0.10 vscode-markdownlint0.55.0 vscode-eslint2.4.4 rushcore1.0.2 rushnav1.0.2 githistory0.6.20 xml2.5.1 escaping-characters1.0.0 vscode-babel-coloring0.0.4 EditorConfig0.16.4 vscode-macros1.4.1 git-project-manager1.8.2 scriptcsRunner0.1.0 vscode-firefox-debug2.9.10 url-encode1.1.0 shell-format7.2.5 macros1.2.1 matlab3.0.2 vscode-pull-request-github0.88.1 gc-excelviewer4.2.59 vscode-markdown-footnote1.0.0 vscode-favorites1.11.0 rest-client0.25.1 path-autocomplete1.25.0 mediawiki2.1.0 markdown-katex0.1.4 nuget-reverse-package-search0.1.68 vscode-nuget-package-manager1.1.6 vscode-peacock4.2.

2 gpg1.1.1 docomment1.0.0 vscode-liquid-snippets2.0.3 gnuplot1.0.5 zotero0.1.11 markdown-shortcuts0.12.0 openapi-lint1.2.0 azure-pipelines1.228.0 azure-dev0.8.3 vscode-azureappservice0.25.2 vscode-azurecontainerapps0.7.0 vscode-azurefunctions1.14.3 vscode-azureresourcegroups0.9.0 vscode-azurestaticwebapps0.12.2 vscode-azurestorage0.15.3 vscode-azurevirtualmachines0.6.5 vscode-bicep0.27.1 vscode-cosmosdb0.22.0 csharp2.28.11 vscode-dotnet-runtime2.0.5 data-workspace-vscode0.5.0 mssql1.22.1 sql-bindings-vscode0.4.0 sql-database-projects-vscode1.4.1 debugpy2024.6.0 isort2023.10.1 python2024.6.0 vscode-pylance2024.5.1 jupyter2024.4.0 jupyter-keymap1.1.2 jupyter-renderers1.0.17 vscode-ai-remote0.48.0 vscode-jupyter-cell-tags0.1.9 vscode-jupyter-slideshow0.1.6 remote-wsl0.88.2 azure-account0.12.0 azurecli0.6.0 hexeditor1.10.0 live-server0.4.13 powershell2024.2.2 remote-explorer0.4.3 remote-server1.5.1 vscode-node-azure-pack1.2.0 azurerm-vscode-tools0.15.11 debugger-for-edge1.0.15 language-liquid0.1.1 bib0.3.0 vscode-commons0.0.6 vscode-yaml1.14.0 kuskus-kusto-language-server3.1.3 kuskus-kusto-syntax-highlighting2.0.2 vscode-zipexplorer0.3.1 addDocComments0.0.8 msbuild-project-tools0.6.3 intellicode-api-usage-examples0.2.8 vscodeintellicode1.3.

1 nanoid-generator0.1.2 vscode-icons12.7.0 JavaScriptSnippets1.8.0 t4-support0.7.0 </details<details<summaryA/B Experiments</summary</details<!-- generated by issue reporter --
That code should only be hit if you have the experimental setting on. Disabling it should fix it, what version of PowerShell is that?
that explains why it's only happening on my personal machine & not my work PC (which I hadn't realized until now), because that setting is on in my personal profile but not in my work profile... both machines are on PS 7.4.2
Good to hear! That means we just need to ensure this code doesn't get called for Windows PowerShell.