-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pressing tab with a selection in JavaScript code window deletes selection #3026
Comments
Hi there, to verify the steps to reproduce, you have the following code:
The below part is highlighted:
You press tab and then the highlighted code turns to: The undo button does not return you back to your original code. Is this correct? |
precise, yes. |
Could you also include your User and Workspace JSON settings, please? :) |
Workspace settings is an empty hash. // Place your settings in this file to overwrite the default settings
{
"update.channel": "insiders",
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.renderWhitespace": true,
"files.trimTrailingWhitespace": true
} |
Same exact issue here, history state is lost (and so is the code 😱). Like PeterAronZentai said, the characters that show up are unpredictable. User settings: // Place your settings in this file to overwrite the default settings
{
"editor.renderWhitespace": true,
"files.trimTrailingWhitespace": true
} |
@ElChupacabra26 also on OS X? I wonder how it did not came up earlier - considering how frequent this use case might be. |
@PeterAronZentai Yep, I'm on Yosemite. I was glad to see I'm not the only one having this problem |
This looks like a duplicate of #2829, work arounds are described in this comment. Please confirm whether this issue is indeed a dupe |
It is indeed a dupe. I am closing this now. |
@egamma workaround works perfectly, thanks for the pointer. sorry for the wasted cycles. |
VSCode 10.8, OSX El Capitan, MBP
Given the following scenario:
Pressing tab now produces this:
The undo buffer is empty.
Potential regression in 0.10.8, this feature worked fine in 0.10.7
UPDATE: this behavior is not predictable. If there are tab characters in the selection, or tab has been used already in the page other places, then it looks like working, but then again, not always.
Please consider this rather serious, as it can actually cause loss of code - if you have unsaved changes, since you cant undo.
The text was updated successfully, but these errors were encountered: