mirror of https://github.com/dense-analysis/ale
Add test for detail in lsp ReadDiagnostics
This commit is contained in:
parent
fcd5e18a99
commit
ef641dda80
|
@ -89,6 +89,26 @@ Execute(ale#lsp#response#ReadDiagnostics() should handle messages without codes)
|
|||
\ },
|
||||
\ ]}})
|
||||
|
||||
Execute(ale#lsp#response#ReadDiagnostics() should include sources in detail):
|
||||
AssertEqual [
|
||||
\ {
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'Something went wrong!',
|
||||
\ 'detail': '[tslint] Something went wrong!',
|
||||
\ 'lnum': 10,
|
||||
\ 'col': 15,
|
||||
\ 'end_lnum': 12,
|
||||
\ 'end_col': 23,
|
||||
\ }
|
||||
\ ],
|
||||
\ ale#lsp#response#ReadDiagnostics({'params': {'uri': 'filename.ts', 'diagnostics': [
|
||||
\ {
|
||||
\ 'range': Range(9, 14, 11, 22),
|
||||
\ 'message': 'Something went wrong!',
|
||||
\ 'source': 'tslint',
|
||||
\ }
|
||||
\ ]}})
|
||||
|
||||
Execute(ale#lsp#response#ReadDiagnostics() should handle multiple messages):
|
||||
AssertEqual [
|
||||
\ {
|
||||
|
|
Loading…
Reference in New Issue