-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Debugger: debug.inlineValues support for case insensitive variable names #101797
Comments
Yes, this is a valid feature request. |
A debug adapter could for example specify this using a |
IMO the debug adapter is not in a good position to know about case sensitivity because it has no syntax knowledge of the source language because it doesn't take transpilation into account (e.g. CoffeeScript, TypeScript -> JavaScript). Whether a language is case sensitive or not should be knowledge that is kept close to VS Code's notion of a "word definition". @jrieken does such a concept exist? I'm currently looking into this problem in a broader way: similar to what we did for debug hovers with the |
@weinand that sounds like a great approach. However why do we need a separate thing for the Inline values, can we just reuse what you already did for the debug hovers with the |
@isidorn yes, that's exactly what my protoyping tries to find out: do we need a new abstraction or could we just use a variant for the |
@weinand yeah that feels like a way to go here. Just a new method |
Since it is a bigger effort to provide extension API for the debugger's "inline values" feature, I've created a new feature request #105690. |
@chrisdp I've released a first cut of the "inline values provider" implementation which should make it possible to address this issue. What you need to do: |
@weinand Thanks! Thats great I'll take a look over the next few days. |
@chrisdp I will provide more infos and a sample when preparing the release notes next week. |
That is perfect. I'll wait for that to drop then. Thanks! |
@chrisdp a sample that shows a case sensitive variable name lookup appears in the release notes of the upcoming 1.54 release. In order to make it case-insensitive you just need to pass the value |
@weinand Thanks. I saw that and let the other maintainer of the extension we are working on know. Hopefully we will be able to take a look soon ™️ and give some feedback 👍 |
I'm closing this because we have addressed the problem by introduction of the Inline Values Provider API. |
Hey, I am working on a debugger for a case insensitive language. When looking into the source I didn't see any way to define the expressions as case insensitive.
vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.ts
Line 79 in 1934836
With
debug.inlineValues
set totrue
I can’t get camel case vars to work. In the below example you can see we have the value forpostdata
but it won’t matchpostData
in the code even though they are the same reference.As an extension maintainer and/or author we would like to be able to define ether the language as a whole as case insensitive or the scope/variables themselves.
The text was updated successfully, but these errors were encountered: