3379 lsp config documentation and gowork 2 #3397
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the problem this PR solves?
I was running into lsp errors while trying to work on e2e tests. The details of the errors are outlined in the PR itself. This made working on the testing package quite difficult as I was not getting any sort of completions or suggestions.
How does this PR solve the problem?
One of the errors was due to the nested modules. Configuring go workspaces resolves this issue. I configured
go.work
on my machine and tried to make it work with the build steps as can be seen in this PR; however, I couldn't resolve several issues. In this PR I addedgo.work
andgo.work.sum
files to the.gitignore
file and described how you can configure them. The second issue was due to the build constraints (eg.//go:build e2e
). The solution for this is explained in the updated README.How to test this PR locally
Please make sure that
go.work
configuration works for you. With the changes in this PR, confirm that you are still getting code suggestions/completions in all the modules in the repo.Design Checklist
Checklist
./changelog/fragments
using the changelog toolRelated issues