Move gopls settings to .vscode from .devcontainer (#8383)

These gopls settings should apply to any vscode instance, not just ones in devcontainers.
This commit is contained in:
Fraser Waters 2021-11-09 10:54:52 +00:00 committed by GitHub
parent afcbcd3a51
commit a526db129a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View file

@ -22,16 +22,6 @@
"postCreateCommand": "find -name \"*.??proj\" | xargs -L1 dotnet restore",
"settings": {
"gopls": {
// A couple of modules get copied as part of builds and this confuse gopls as it sees the module name twice, just ignore the copy in the build folders.
"build.directoryFilters": [
"-sdk/dotnet/Pulumi.Automation.Tests/bin",
"-sdk/nodejs/bin",
"-sdk/python/env"
],
// Experimental but seems to work and means we don't need a vscode instance per go.mod file.
"experimentalWorkspaceModule": true,
},
"extensions.ignoreRecommendations": true
}
}

12
.vscode/settings.json vendored
View file

@ -1,4 +1,14 @@
{
"go.buildTags": "all",
"go.testTimeout": "1h"
"go.testTimeout": "1h",
"gopls": {
// A couple of modules get copied as part of builds and this confuse gopls as it sees the module name twice, just ignore the copy in the build folders.
"build.directoryFilters": [
"-sdk/dotnet/Pulumi.Automation.Tests/bin",
"-sdk/nodejs/bin",
"-sdk/python/env"
],
// Experimental but seems to work and means we don't need a vscode instance per go.mod file.
"experimentalWorkspaceModule": true,
},
}