-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Why are string values when copied from the debug pane surounded with quotation marks? #81051
Comments
We are not adding " at the begging and end of the real value. We are simply copying what the debug adapter is giving us. Point being, I disagree and I think the value should be full as presetned by the debug adapter. The copy value should not massage it. |
@DanTup What do you think? |
It is the Dart extension adding these quotes, however the behaviour is exactly the same in TypeScript. The issue is that VS Code doesn't allow "Copy Value" to have a different representation from what's shown in the watch/variables window. It is good that debug adapters wrap quotes around them, so you can see when they are strings: However if the user chooses "Copy Value" from the context menu, the quotes (and any escaping, like I think this is what #71666 was trying to solve, but it was rejected as something to fix in extensions when they can contribute their own commands to the menu. Personally I think it is a gap in Code - I think having quotes wrapped around in the watch window but copying the value without them is something that all languages would probably like and not something that should be implementing ad-hoc (and potentially differently) by them all. @isidorn how about allowing the DA to return two strings, or some additional metadata that would allow VS Code to better present the data without affecting copying the value (for example allowing us to declare it's a string and should be wrapped in quotes)? |
fyi @weinand for DA request for two strings. |
This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
@isidorn why do close this? I still think an absolute reasonable request. |
Hi. We close this since we have no plans to address it in the forseable future. |
The problem is that plugins like Dart Code cannot address this without infrastructure from code like @DantuB explained. |
Hi,
currently when I select copy value from the context menu of the debug pane on a String variable it adds a
"
at the beginning and end of the real value.For me this is wrong behavior because the value of the variable is just the string and nothing else.
Especially if you copy an url and paste it into the browser/postman you always have to remove the quotes.
Can this be changed?
Cheers
Thomas
Dart-Code/Dart-Code#1990
The text was updated successfully, but these errors were encountered: