Issue 240462
Summary [lldb-dap] Move VS Code-specific behaviour into settings or the VS Code extension
Labels lldb-dap
Assignees da-viper
Reporter da-viper
    lldb-dap is used by many DAP clients, but some of its behaviour is tailored to VS Code and applies to every client.
If still needed, this behaviour should either be a setting the client can set or make the change in the VS Code extension. so that other clients get protocol behaviour by default and VS Code keeps its current experience. 

## Tasks

- [ ] Do not add the [` [opt]`](https://github.com/llvm/llvm-project/blob/3a60e729ed71f5e79b8fb2477bcf73a64f5a3045/lldb/tools/lldb-dap/Handler/StackTraceRequestHandler.cpp#L48-L50) suffix to optimised frames by default. 
- [ ] Have a way to distinguish between `arguments`, `ReturnValue` and `local` scopes. there were merged together because VS Code [only expands the first non-expensive scope](https://github.com/microsoft/vscode/issues/93230).  
- [ ] A variable's value may contain its [value, summary and type](https://github.com/llvm/llvm-project/blob/d8ad9d02820c00467aa0a5831b190d9e3a2670df/lldb/tools/lldb-dap/JSONUtils.cpp#L295-L313). with no way to tell way the actual value is. Is this an issue in swift because an optional type e.g. `String?` could have a `nil` value but will end up showing as `nil nil` instead of just it's actual value. 
<img width="1167" height="307" alt="Image" src="" />

Or the type may be repeated for clients that shows variable types by default.

| VS Code  | Intellij |
| ------------- | ------------- |
| <img width="704" height="442" alt="Image" src="" /> | <img width="704" height="441" alt="Image" src="" />
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to