You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1004 B
VimL

Squashed 'vim/bundle/go/' changes from bf390af42..75210b2ba 75210b2ba New release: v1.17 723e92485 Merge pull request #1743 from Carpetsmoker/debug-err 1c308cb7b Show debug errors as errors and not progress 73c88fd53 Fix [[ and ]] jumping 3b5b1480f Add :GoDebugTest (#1728) b4eed1e17 redraw before showing progress message only (#1736) e0ba424d3 Merge pull request #1733 from bhcleek/fix-coverage-prompt b2591c356 redraw before echo baaa1788d Merge pull request #1731 from bhcleek/hide-codecov-comment 50fc7e048 Add codecov.io configuration 37e2587aa update CHANGELOG.md for #1725 bb80ad523 Merge pull request #1725 from bhcleek/fix-term-enabled-behavior bca02bcbd update CHANGELOG.md for #1713 8f72dc96a Merge pull request #1713 from bhcleek/cache-import-path 426621fd5 fix splitright behavior when using a terminal buffer afb8e97d2 remove startinsert and stopinsert pair 702b79560 remove stderr callback f80622f39 Merge pull request #1724 from fatih/list-clear 8d040e197 list: add go#list#Close() 16e932cce list: make Clean() more useful 946330869 Merge pull request #1722 from bhcleek/fix-unlikely-term-race b43a68c88 remove redundant changelog entry 800f2946b close the correct location list 2dcb2d228 update CHANGELOG.md for #1716 and #1721 f16f546cb Merge pull request #1721 from bhcleek/fix-terminal-races fe6008e45 Merge pull request #1716 from bhcleek/fix-go-build-error-parse 45cc21201 Update CHANGELOG.md b58082312 Merge pull request #1701 from fatih/remove-install a26578790 Fix various race conditions when using terminal windows f916e1ee5 parse go build errors correctly in vim8 and neovim dd9b635f7 add test for GoBuild 49f560f71 use go#list#ParseFormat() to parse go vet output 6d68c01b3 add test for GoVet f2b67eaa5 cache import path lookups results d2b0a234f update changelog for #1697 dcbfdf3ab Merge pull request #1697 from bhcleek/async-info 24991559a add comments to explain offset calculations 945b63607 Make sure :GoDebugBreakpoint works after :GoDebugStop (#1706) 1bdc75bfc More reliable way to keep track if the program is running (#1699) 8c6a186da update CHANGELOG.md for #1678 5bc8d9edb Merge pull request #1678 from entombedvirus/rohith/async-guru-neovim 2447029b7 cmd: go 1.10 maintains a build cache now ba2a1e81f neovim: invoke guru functions via async api eaef6f793 Do not steal focus when linting on save in vim8. 1292d1545 Update ChangeLog a9fed3289 add fmt.Errorf() snippet in UltiSnips (#1677) a7dd67d18 Keep current alternate-file name while reading templates (#1675) 01bea987a fix path separator of minisnip_dir (#1698) 8c83eb568 always use gocode's vim format fb2986d8a cancel pending async info job when starting another b237f52ef get type info from gocode asynchronously d9d2d27b2 scope completions variable to autoload/go/complete.vim 2274cb5c5 rename preargs to options 4f9c2e9be Changelog.md: make debugger support more prominent 6cc4fd896 Update ChangeLog 52c6da20e add GoDebug (#1390) 39beabec0 Merge pull request #1685 from fatih/fix-go-build-bang 54de23cc6 job: fix bang variable 6dbac34d3 Merge pull request #1683 from bhcleek/fix-async-job-closure 7ed9a827f avoid race conditions in test async jobs 8f2a66dae avoid race conditions in rename async jobs 83a25f196 avoid race conditions in lint async jobs 73a38ea38 avoid race conditions in async jobs 855c35e2d avoid race conditions in guru async jobs cc0467c3c Ensure that goPackageComment region ends after comment. (#1673) 4e871cbcd update CHANGELOG.md for #1671 6437d161d Merge pull request #1671 from bhcleek/redraw-before-gocode dc3b5011a redraw before calling gocode f72ea5c9e update CHANGELOG.md a037e3608 Merge pull request #1664 from bhcleek/empty-test-message 20d52eb64 match test errors with an empty message 7ec5b4692 Merge branch 'metalinter-autosave-list' 6de9daac4 Merge pull request #1653 from bhcleek/handle-autowriteall 18b989736 Merge pull request #1656 from bhcleek/fix-async-race 5743ce160 update documentation for :GoMetaLinterAutoSave and g:go_metalinter_autosave 5a205d3a5 Update Changelog.md 8d5e37e9d Merge pull request #1654 from bhcleek/fix-lint-press-enter aef5e202b Eliminate race conditions in go test job cc24b5508 Eliminate race conditions in gorename job aa37b4288 Eliminate race conditions in gometalinter job b63ba83b4 Eliminate race conditions in guru job 7c727d9b0 Only return callbacks from go#job#Spawn 8bd171624 fix races in go#job#Spawn callbacks 87878247a document go#job#Spawn 4b146cbdc update Test_GometaAutoSave to use location list f59234991 separate gometalinter error list use cases a3716ce61 do not prompt user to press enter after saving 561365d7f handle autowriteall the same as autowrite ffb2f4369 Merge pull request #1651 from bhcleek/reduce-path-function-scope c7316d5a5 reduce visibility of function 6c5622f44 reduce visibility of function 785f632ae update CHANGELOG.md for #1648 f455b9650 Merge pull request #1648 from bhcleek/metalinter-symmetric-enabled-disabled e3974b603 Fix handling and change name of g:go_metalinter_excludes 30d04ad0e Fix ftdetect (#1645) f12f4c81e Update Changelog.md 19eb0581f Update Changelog.md 8308c8d93 Merge pull request #1557 from Carpetsmoker/highlight_methods bf3160402 Update Changelog.md aa9ee00c8 Merge pull request #1640 from bhcleek/fix-metalinter 7702f5c92 use directory arguments given to :GoMetaLinter 4a0fd5d93 fix relative path regex for gometalinter 7cc58f2f9 add tests to verify metalinter autosave behavior 2ab8f815f Add --include for async runner too 55f1598be Active buffer relative to workdir for gometalint 80730c79c Update Changelog.md 1f675f6eb Merge pull request #1641 from bhcleek/fix-show-test-name-toggle 54c62714a Update Changelog 332965f59 Merge pull request #1639 from hokorobi/improve-snippets-abbr 31e6c2839 respect a changed g:go_test_show_name 1a7150fab snippets: improve abbr descriptions for neosnippet 3ceecc2bf support syntax highlighting for bracketed expression in fmt string (#1634) 204cf8e86 Remove unused screenshot.png (#1635) e88020390 update CHANGELOG.md 8eaa1a4a2 Merge pull request #1633 from bhcleek/test-timeout-errors 816cf4203 fix quickfix list when test duration exceeds timeout 992bed6ae Update changelog.md ab598cc22 doc.vim: small style change and remove unused function b68d13b11 Merge pull request #1629 from stamblerre/master bb9903199 update CHANGELOG.md for #1631 ffdf8001b Merge pull request #1631 from wmatusiak/master bdcfc1064 Fix: GoTestFunc dont respect go_test_timeout 8a45bec4d add additional godoc url configuration 264fe46ef Rename go_highlight_methods to go_highlight_function_calls git-subtree-dir: vim/bundle/go git-subtree-split: 75210b2baccf5dc8d19d60b6d0e3cd171e0b5829
7 years ago
func! Test_GoTermNewMode()
if !has('nvim')
return
endif
try
let l:filename = 'term/term.go'
let l:tmp = gotest#load_fixture(l:filename)
exe 'cd ' . l:tmp . '/src/term'
let expected = expand('%:p')
let cmd = "go run ". go#util#Shelljoin(go#tool#Files())
set nosplitright
call go#term#newmode(0, cmd, '')
let actual = expand('%:p')
call assert_equal(actual, l:expected)
finally
call delete(l:tmp, 'rf')
endtry
endfunc
func! Test_GoTermNewMode_SplitRight()
if !has('nvim')
return
endif
try
let l:filename = 'term/term.go'
let l:tmp = gotest#load_fixture(l:filename)
exe 'cd ' . l:tmp . '/src/term'
let expected = expand('%:p')
let cmd = "go run ". go#util#Shelljoin(go#tool#Files())
set splitright
call go#term#newmode(0, cmd, '')
let actual = expand('%:p')
call assert_equal(actual, l:expected)
finally
call delete(l:tmp, 'rf')
set nosplitright
endtry
endfunc
" vim: sw=2 ts=2 et