Skip to content

Commit

Permalink
[#62] ignore one of reload responses
Browse files Browse the repository at this point in the history
  • Loading branch information
Quramy committed May 3, 2016
1 parent 9d93496 commit 6e9bb5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion autoload/tsuquyomi/tsClient.vim
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ function! tsuquyomi#tsClient#sendRequest(line, delay, retry_count, response_leng
let l:tmp2 = substitute(l:tmp1, '\r', '', 'g')
let l:res_list = split(l:tmp2, '\n\+')
for res_item in l:res_list
call add(response_list, res_item)
" ignore 2nd response of reload command #62
if res_item !~'{"reloadFinished":true}}$'
call add(response_list, res_item)
endif
endfor
else
echom '[Tsuquyomi] TSServer request was timeout:'.a:line
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "tsuquyomi",
"version": "0.5.2",
"version": "0.5.3",
"description": "Vim plugin for typescript",
"directories": {
"test": "vest"
},
"repository": "https://github.com/Quramy/tsuquyomi.git",
"devDependencies": {
"typescript": "1.8.9"
"typescript": "1.8.10"
},
"scripts": {
"test": "sh runtest.sh"
Expand Down

0 comments on commit 6e9bb5e

Please sign in to comment.