Skip to content

Commit 94841f3

Browse files
chedimDima Chechetkin
authored andcommitted
removes unnecessary echoms
1 parent e0bae86 commit 94841f3

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

autoload/lsp/ui/vim/signs.vim

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ let s:sign_ids = {}
3131
endfunction
3232

3333
function! s:sign_place(sign_id, sign_group, sign_name, path, lines)
34-
echom 'SIGN_PLACE'
34+
"echom 'SIGN_PLACE'
3535
" calculating sign id
3636
let l:sign_id = a:sign_id
3737
if l:sign_id == 0
38-
echom 'Calculating sign id...'
38+
"echom 'Calculating sign id...'
3939
let l:index = 1
4040
if !has_key(s:sign_ids, a:path)
4141
let s:sign_ids[a:path] = { }
@@ -49,7 +49,7 @@ let s:sign_ids = {}
4949
let l:index = l:index + 1
5050
endif
5151
endwhile
52-
echom 'calculated id: ' . l:sign_id
52+
"echom 'calculated id: ' . l:sign_id
5353
endif
5454
try
5555

@@ -58,33 +58,33 @@ let s:sign_ids = {}
5858
\ . ' name=' . a:sign_name
5959
\ . ' file=' . a:path
6060
catch
61-
echom v:exception
61+
"echom v:exception
6262
endtry
6363

64-
echom l:command
64+
"echom l:command
6565
execute l:command
66-
echom 'Sign placed'
66+
"echom 'Sign placed'
6767
return l:sign_id
6868
endfunction
6969

7070
function! s:sign_unplace(sign_group, location)
7171
try
72-
echom 'Unplacing signs in group: ' . a:sign_group
72+
"echom 'Unplacing signs in group: ' . a:sign_group
7373
let l:file = a:location.buffer
74-
echom 'file: ' . l:file
74+
"echom 'file: ' . l:file
7575
if has_key(s:sign_ids, l:file)
7676
for item in items(s:sign_ids[l:file])
7777
if a:sign_group == item[1]
78-
echom 'Unplacing sign #' . item[0] . ' From file ' . l:file
78+
"echom 'Unplacing sign #' . item[0] . ' From file ' . l:file
7979
execute 'sign unplace ' . item[0] . ' file=' . l:file
8080
unlet s:sign_ids[l:file][item[0]]
8181
endif
8282
endfor
8383
else
84-
echom 'No signs found for the file'
84+
"echom 'No signs found for the file'
8585
endif
8686
catch
87-
echom v:exception
87+
"echom v:exception
8888
endtry
8989
endfunction
9090

@@ -166,11 +166,11 @@ function! s:undefine_signs() abort
166166
endfunction
167167

168168
function! lsp#ui#vim#signs#set(server_name, data) abort
169-
echom 'signset'
169+
"echom 'signset'
170170
if !s:supports_signs | return | endif
171-
echom 'signs supported'
171+
"echom 'signs supported'
172172
if !s:enabled | return | endif
173-
echom 'signs enabled'
173+
"echom 'signs enabled'
174174

175175
if lsp#client#is_error(a:data['response'])
176176
return
@@ -182,7 +182,7 @@ function! lsp#ui#vim#signs#set(server_name, data) abort
182182
let l:path = lsp#utils#uri_to_path(l:uri)
183183

184184
" will always replace existing set
185-
echom 'SIGNSET: render cycle'
185+
"echom 'SIGNSET: render cycle'
186186
call s:clear_signs(a:server_name, l:path)
187187
call s:place_signs(a:server_name, l:path, l:diagnostics)
188188
endfunction
@@ -198,22 +198,22 @@ function! s:get_sign_group(server_name) abort
198198
endfunction
199199

200200
function! s:place_signs(server_name, path, diagnostics) abort
201-
echom 'place_signs call'
201+
"echom 'place_signs call'
202202
if !s:supports_signs | return | endif
203-
echom 'signs supported'
203+
"echom 'signs supported'
204204

205205
let l:sign_group = s:get_sign_group(a:server_name)
206-
echom 'sign group: ' . l:sign_group
206+
"echom 'sign group: ' . l:sign_group
207207

208208
if !empty(a:diagnostics) && bufnr(a:path) >= 0
209-
echom 'Displaying signs...'
209+
"echom 'Displaying signs...'
210210
for l:item in a:diagnostics
211211
let l:line = l:item['range']['start']['line'] + 1
212212

213213
if has_key(l:item, 'severity') && !empty(l:item['severity'])
214214
let l:sign_name = get(s:severity_sign_names_mapping, l:item['severity'], 'LspError')
215215
" pass 0 and let vim generate sign id
216-
echom 'Placing sign at line ' . l:line
216+
"echom 'Placing sign at line ' . l:line
217217
let l:sign_id = s:sign_place(0, l:sign_group, l:sign_name, a:path, { 'lnum': l:line })
218218

219219
call lsp#log('add signs', l:sign_id)

0 commit comments

Comments
 (0)