Skip to content

Commit

Permalink
Merge pull request #94 from vim-denops/doc-debug
Browse files Browse the repository at this point in the history
📝 Add WARNING for using input() in debug mode
  • Loading branch information
lambdalisue authored Aug 11, 2021
2 parents a523f8a + 5bd1ac0 commit c270c2d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autoload/denops/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ let s:sep = has('win32') ? '\' : '/'
let s:root = expand('<sfile>:h:h:h')

function! denops#util#meta() abort
let mode = g:denops#_test ? 'test' : g:denops#debug ? 'debug' : 'release'
if exists('s:meta')
return s:meta
return extend({'mode': mode}, s:meta, 'keep')
endif
let l:host = has('nvim') ? 'nvim' : 'vim'
let l:version = s:get_host_version()
let l:platform = has('win32') ? 'windows' : has('mac') ? 'mac' : 'linux'
let s:meta = {
\ 'mode': g:denops#_test ? 'test' : g:denops#debug ? 'debug' : 'release',
\ 'mode': mode,
\ 'host': l:host,
\ 'version': l:version,
\ 'platform': l:platform,
Expand Down
5 changes: 5 additions & 0 deletions doc/denops.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ VARIABLE *denops-variable*
Note that the debug mode would affect the performance so disable it
unless you are debugging deno plugins.

WARNING In debug mode, any interactive functions (such as |input()|)
does not work properly in Vim prior to 8.2.3081 due to internal
workaround implementations. See an issue #93 for details.
https://github.com/vim-denops/denops.vim/issues/93

Default: 0

*g:denops#server#channel#deno*
Expand Down

0 comments on commit c270c2d

Please sign in to comment.