You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Surrounding with brackets doesn’t work in some cases #225916
bugIssue identified by VS Code Team member as probable bugeditor-autoclosingEditor automatic closing of parens / brackets / etc.editor-autoindentEditor auto indentation issuesinsiders-releasedPatch has been released in VS Code InsidersjavascriptJavaScript support issuesverifiedVerification succeeded
Surrounding selected text with brackets doesn’t work for some TypeScript/JavaScript arrow functions. VS Code Insiders 1.91 (June 2024) is the first release build where this stopped working.
Steps to Reproduce:
Important: Set editor to "Spaces: 2" tab mode (doesn't repro with Tabs)
Create a JavaScript or TypeScript file with the following content:
constfn=()=>doSomething()
Select doSomething().
Type {, [, or (. VS Code should surround the selection with brackets, but the selected text is deleted and the opening bracket is inserted at the beginning of the line.
This does not repro for me - it works as expected.
Version: 1.136.0-insider (user setup)
Commit: d5ceefb
Date: 2026-08-28T16:34:03Z
Electron: 42.10.0
ElectronBuildId: 15109253
Chromium: 148.0.7778.280
Node.js: 24.18.1
V8: 14.8.178.38-electron.0
@github/copilot: 1.0.81-0
@github/copilot-sdk: 1.0.11
OS: Windows_NT x64 10.0.26200
bugIssue identified by VS Code Team member as probable bugeditor-autoclosingEditor automatic closing of parens / brackets / etc.editor-autoindentEditor auto indentation issuesinsiders-releasedPatch has been released in VS Code InsidersjavascriptJavaScript support issuesverifiedVerification succeeded
Activity
klaussner commentedon Jan 5, 2025
I used
git bisectto find the commit that caused the problem: 8ca1b8cdmitrivMS commentedon Aug 29, 2026
This does not repro for me - it works as expected.
Version: 1.136.0-insider (user setup)
Commit: d5ceefb
Date: 2026-08-28T16:34:03Z
Electron: 42.10.0
ElectronBuildId: 15109253
Chromium: 148.0.7778.280
Node.js: 24.18.1
V8: 14.8.178.38-electron.0
@github/copilot: 1.0.81-0
@github/copilot-sdk: 1.0.11
OS: Windows_NT x64 10.0.26200
Fix surrounding a selection with brackets after arrow functions (#225916
Fix surrounding a selection with brackets after arrow functions (micr…