Tags: govim/govim
Tags
deps: update x/tools and gopls to 376db572 (#1053) Includes a small fix up for a diagnostic error message to match the new expected value from gopls. * internal/lsp: use pre-existing quick fixes for analysis diagnostics 376db572 * internal/lsp: run type error analyzers as part of diagnostics 144d5ced * internal/lsp/source: eliminate GetTypeCheckDiagnostics 24439e3c * internal/lsp: show human-readable const time.Duration as a comment dafbee50 * internal/lsp/cache: don't rely on related diagnostics if unsupported 9c452d85 * internal/lsp: key GC details off package ID 2ac05c83 * gopls/internal/hooks: compile URL regexp once 303d8bbb * internal/lsp/cache: show type errors on parse errors in other files 94327d32 * gopls/internal/regtest: add a failing test for issue 44736 16b2c870 * internal/lsp/cache: split up sourceDiagnostics 78002535 * internal/lsp/cache: refactor Go file parsing 47985cf3 * internal/lsp/cache: invalidate metadata on magic comment changes 6422c5c8 * gopls/internal/regtest: add test for bad embed rules f9c628b1 * internal/lsp/cache: parse filenames from go list errors correctly 89a9cb6e * internal/lsp/cache: refactor diagnostic suppression eb48d3f6 * internal/lsp/cache: fix related error processing 7a079fcd
deps: update x/tools and gopls to 842a9283 (#1031) Includes govim changes required to satisfy the new methods the protocol.Server interface, plus changes in response to protocol type changes for line and column numbers. * gopls/internal/regtest: only run in 'singleton' mode on certain GOOS 842a9283 * gopls/internal/regtest/codelens: increase the timeout on TestGCDetails bd8508e4 * internal/lsp/cache: fix AllowModfileModifications on 1.16 6d19fbfa * internal/jsonrpc2: remove unused invalidID constant 6baea3f8 * all: upgrade all dependencies, if possible ed973575 * internal/lsp: remove redundant fields/code after source.Error deletion e7dfe027 * internal/lsp: remove the source.Error type 51ce8377 * internal/lsp/protocol/typescript: update LSP generating code 5659e493 * internal/lsp: enable semantic tokens as part of all experiments ddc05f8a * internal/lsp: update to latest version of LSP protocol c3402e3c * internal/lsp: stop using structured errors 2ab23861 * internal/lsp: enable -mod=readonly in workspace module mode 9b8df07b * internal/lsp: re-enable upgrades for individual dependencies f1f686b0 * go/packages: improve go invocation errors d8a2a079 * internal/lsp/cache: remove mod upgrade code 19db92ec * internal/lsp/protocol: use a pointer for code action's disabled field 0cef57b5
cmd/govim: first cut of command-line mode to query "parent" (#848) This enables govim to be used with fzf and other such Vim plugins that require a client program in order to run a command. In the case of fzf, the client instance of govim is used in order to re-query the parent instance, which in turn calls on to gopls' workspace symbol search. This allows the search results within fzf to be refined on each key stroke. This approach, however, is not specific to fzf. Hence some configuration of Vim/fzf is required. For a sample .vimrc configuration see: https://github.com/govim/govim/wiki/vimrc-tips#-tip-use-fzf-with-workspace-symbol-search Fixes #795
ci: update latest Vim to v8.2.0735, and Go to 1.14.2 and 1.13.10 (#874) Also drop any Neovim support for now (we can always re-add this later). And change the Dockerfiles to drop the base image and instead build Vim/Gvim first. This means that the most expensive step can be cached (downloading Go is much less effort).
cmd/govim: fix complete_watched in preparation for gopls change (#833) In preparation for a future gopls change which changes the order of returned completion candidates, we unambiguously select one of the Const* values by attempting our completion with a prefix.
cmd/govim: better handling of buffer life-cycle events WIP commit message
cmd/govim: add tests for gopls features where files are initially emp… …ty (#727) We have a number of tests that check gopls behaviour where files do not exist on disk, i.e. they are just buffers in memory. But we are missing tests to verify that if .go files on disk are empty and then "filled in" by changes in the editor, that things work as expected. Add some tests of that sort.
deps: upgrade x/tools and gopls to 6fdc5776 (#762) Also includes fix for #761 * internal/lsp: add quickfixes for missing dependencies in go.mod 6fdc5776 * internal/lsp: refactor LSP server instantiation c29062fe * internal/lsp: move all of the test helpers functions into one file 37215997 * internal/lsp: export DiffSymbols to avoid duplication f8c9a4c3 * internal/lsp: don't return references for builtins 222e5d4b * internal/lsp: remove unnecessary source.SignatureInformation type 6224300b * go/packages/packagestest: do not overwrite existing go.mod file 64a0f23f * internal/lsp/tests: standardize testdata folder format 2529d285 * internal/lsp: filter keyword completions in tests dd0d5d48 * internal/lsp/source: improve completion after accidental keywords f66ef900 * internal/lsp/source: improve completion involving multiple return values 50d61866 * gopls/doc: update VS Code settings to correspond with current defaults 531cc885 * internal/lsp: stop returning metadata from (*snapshot).load 403f1254 * internal/imports: prevent self-imports in the stdlib 9f574694 * internal/jsonrpc2: fix invalid invocations of Fatalf in goroutines aa017ee8 Fixes #761
cmd/govim: split config.FormatOnSaveGoImports into component parts (#721 ) This is a breaking change. gopls separates the concept of fixing imports (CodeAction) and formatting (Formatting). We should follow suit on the govim side. Therefore, FormatOnSaveGoImports changes meaning from being fixing imports and formatting, to solely fixing imports. Correspondingly, CommandGoImports also changes its semantics. We introduce FormatOnSaveGoImportsGoFmt as the combined action and this then becomes the default for Config.FormatOnSave.
PreviousNext