#3442 Fix code fix clangd issue
This commit is contained in:
parent
7c04ee5c20
commit
d0b5909fd8
2 changed files with 3 additions and 3 deletions
|
@ -379,7 +379,7 @@ function! s:OnReady(
|
||||||
\ },
|
\ },
|
||||||
\ 'end': {
|
\ 'end': {
|
||||||
\ 'line': l:nearest_error.end_lnum - 1,
|
\ 'line': l:nearest_error.end_lnum - 1,
|
||||||
\ 'character': l:nearest_error.end_col - 1,
|
\ 'character': l:nearest_error.end_col,
|
||||||
\ },
|
\ },
|
||||||
\ },
|
\ },
|
||||||
\ },
|
\ },
|
||||||
|
|
|
@ -508,7 +508,7 @@ Execute(LSP code action requests should be sent):
|
||||||
\ [
|
\ [
|
||||||
\ [0, 'textDocument/codeAction', {
|
\ [0, 'textDocument/codeAction', {
|
||||||
\ 'context': {
|
\ 'context': {
|
||||||
\ 'diagnostics': [{'range': {'end': {'character': 5, 'line': 1}, 'start': {'character': 4, 'line': 1}}, 'code': 2304, 'message': 'oops'}]
|
\ 'diagnostics': [{'range': {'end': {'character': 6, 'line': 1}, 'start': {'character': 4, 'line': 1}}, 'code': 2304, 'message': 'oops'}]
|
||||||
\ },
|
\ },
|
||||||
\ 'range': {'end': {'character': 5, 'line': 1}, 'start': {'character': 4, 'line': 1}},
|
\ 'range': {'end': {'character': 5, 'line': 1}, 'start': {'character': 4, 'line': 1}},
|
||||||
\ 'textDocument': {'uri': ale#path#ToURI(expand('%:p'))}
|
\ 'textDocument': {'uri': ale#path#ToURI(expand('%:p'))}
|
||||||
|
@ -540,7 +540,7 @@ Execute(LSP code action requests should be sent only for error with code):
|
||||||
\ [
|
\ [
|
||||||
\ [0, 'textDocument/codeAction', {
|
\ [0, 'textDocument/codeAction', {
|
||||||
\ 'context': {
|
\ 'context': {
|
||||||
\ 'diagnostics': [{'range': {'end': {'character': 5, 'line': 1}, 'start': {'character': 4, 'line': 1}}, 'code': 2304, 'message': 'oops'}]
|
\ 'diagnostics': [{'range': {'end': {'character': 6, 'line': 1}, 'start': {'character': 4, 'line': 1}}, 'code': 2304, 'message': 'oops'}]
|
||||||
\ },
|
\ },
|
||||||
\ 'range': {'end': {'character': 5, 'line': 1}, 'start': {'character': 4, 'line': 1}},
|
\ 'range': {'end': {'character': 5, 'line': 1}, 'start': {'character': 4, 'line': 1}},
|
||||||
\ 'textDocument': {'uri': ale#path#ToURI(expand('%:p'))}
|
\ 'textDocument': {'uri': ale#path#ToURI(expand('%:p'))}
|
||||||
|
|
Reference in a new issue