Switch between source and header in C++ #8125
-
Is there a way to have Helix send Reference: https://clangd.llvm.org/extensions#switch-between-sourceheader |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
We don't support language-server-specific extensions to the protocol. This should be covered by a plugin once the plugin system exists |
Beta Was this translation helpful? Give feedback.
-
To close the loop, this is now possible via the Steel PR: #8675 (comment). |
Beta Was this translation helpful? Give feedback.
-
I really needed this feature, so I found a workaround. With #4709 (which has already been merged into
The #!/bin/bash
read f
f="$(basename "$f")"
if [[ $f == *.h ]]; then
echo "${f%.h}.cc"
elif [[ $f == *.cc ]]; then
echo "${f%.cc}.h"
else
echo "$f"
fi It doesn't handle non-.h/.cc files well, but it seems to work reliably when used correctly. |
Beta Was this translation helpful? Give feedback.
We don't support language-server-specific extensions to the protocol. This should be covered by a plugin once the plugin system exists