Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lsp: support build tags #2429

Merged
merged 5 commits into from
Jul 29, 2019
Merged

lsp: support build tags #2429

merged 5 commits into from
Jul 29, 2019

Commits on Jul 29, 2019

  1. godef: make directory name match the package name

    Make the directory name match the package name in godef tests.
    bhcleek committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    6705b52 View commit details
    Browse the repository at this point in the history
  2. lsp: fix response handling

    * pass the request id to newResponse
    * return the result message from newResponse
    bhcleek committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    d01dc96 View commit details
    Browse the repository at this point in the history
  3. lsp: refactor managing workspace directories

    * rename go#lsp#message#workspaceFolders to make it clear that it
      returns a request result message
    * rename go#lsp#AddWorkspace to make it clear that it adds a directory
      and isn't necessarily related to any other context that may compose of
      workspace (of which there is none yet).
    * rename go#lsp#message#AddWorkspaces to make it reflect the fact that
      it changes workspace folders and add a new parameter to specify the
      directories to be removed.
    bhcleek committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    33eaa16 View commit details
    Browse the repository at this point in the history
  4. lsp: add support for configuration client capability

    * Tell gopls that vim-go supports the workspace.configuration client
      capability.
    * Respond to workspace/configuration requests with buildFlags and
      hoverKind. buildFlags is set to the build flags currently configured
      in vim-go build flags (e.g. g:go_build_flags). hoverKind is set to
      NoDocumentation so that hover responses won't return documentation.
    bhcleek committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    ae77be7 View commit details
    Browse the repository at this point in the history
  5. lsp: reset workspaces when build flags are changed

    Reset workspaces when build flags are changed via `:GoBuildFlags`. This
    won't yet do anything. Once
    https://go-review.googlesource.com/c/tools/+/187819 is merged, though,
    build flags that gopls uses will be able to be changed using
    `:GoBuildFlags` without requiring the Vim session to be restarted.
    bhcleek committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    28a3099 View commit details
    Browse the repository at this point in the history