diff options
| author | Albert Cervin <albert@acervin.com> | 2024-09-17 08:47:03 +0200 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2025-11-01 22:11:14 +0100 |
| commit | 4459b8b3aa9d73895391785a99dcc87134e80601 (patch) | |
| tree | a5204f447a0b2b05f63504c7fe958ef9bbf1918a /test/json/diag.json | |
| parent | 4689f3f38277bb64981fc960e8e384e2d065d659 (diff) | |
| download | dged-4459b8b3aa9d73895391785a99dcc87134e80601.tar.gz dged-4459b8b3aa9d73895391785a99dcc87134e80601.tar.xz dged-4459b8b3aa9d73895391785a99dcc87134e80601.zip | |
More lsp support
This makes the LSP support complete for now:
- Completion
- Diagnostics
- Goto implementation/declaration
- Rename
- Documentation
- Find references
Diffstat (limited to 'test/json/diag.json')
| -rw-r--r-- | test/json/diag.json | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/test/json/diag.json b/test/json/diag.json new file mode 100644 index 0000000..4384ea3 --- /dev/null +++ b/test/json/diag.json @@ -0,0 +1,54 @@ +{ + "jsonrpc": "2.0", + "method": "textDocument/publishDiagnostics", + "params": { + "diagnostics": [ + { + "code": "unused-includes", + "codeDescription": { + "href": "https://clangd.llvm.org/guides/include-cleaner" + }, + "message": "Included header errno.h is not used directly (fixes available)", + "range": { + "end": { + "character": 18, + "line": 4 + }, + "start": { + "character": 0, + "line": 4 + } + }, + "severity": 2, + "source": "clangd", + "tags": [ + 1 + ] + }, + { + "code": "unused-includes", + "codeDescription": { + "href": "https://clangd.llvm.org/guides/include-cleaner" + }, + "message": "Included header hash.h is not used directly (fixes available)", + "range": { + "end": { + "character": 17, + "line": 16 + }, + "start": { + "character": 0, + "line": 16 + } + }, + "severity": 2, + "source": "clangd", + "tags": [ + 1 + ] + } + ], + "uri": "file:///home/abbe/code/dged/src/dged/syntax.c", + "version": 0 + } +} |
