gluon-lang / lsp-types

Types for communicating with a language server
MIT License
328 stars 86 forks source link

Add support for clangd's switchSourceHeader command #254

Closed bciobanu closed 10 months ago

bciobanu commented 1 year ago

clangd supports several extensions outside the Language Server Protocol specification. One of them is the functionality to determine the corresponding source/header file from another file: https://clangd.llvm.org/extensions#switch-between-sourceheader.

In this PR I add support for that request. Tested: