diff --git a/.gitignore b/.gitignore index 0f3364578..0498a2cc3 100644 --- a/.gitignore +++ b/.gitignore @@ -46,3 +46,4 @@ public/login-linux-amd64 .cache/gomod/** public/login-login-linux-amd64 public/logic_linux-amd64_1 +.cache/** \ No newline at end of file diff --git a/.ide/Dockerfile b/.ide/Dockerfile index 79fedc6a8..e18f7fe06 100644 --- a/.ide/Dockerfile +++ b/.ide/Dockerfile @@ -62,6 +62,7 @@ RUN set -eux; \ waderyan.gitblame \ donjayamanne.githistory \ mhutchie.git-graph \ + tencent-cloud.coding-copilot\ ; do \ if ! /usr/bin/code-server --install-extension "${ext}" --user-data-dir "${USER_DATA_DIR}" --extensions-dir "${EXTENSIONS_DIR}"; then \ FAILED_EXTENSIONS="${FAILED_EXTENSIONS} ${ext}"; \ diff --git a/.vscode/settings.json b/.vscode/settings.json index f41648054..e509b8e12 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -19,7 +19,19 @@ "trimPath": true, "currentPreset": "production" }, - "go.toolsEnvVars": {}, + "go.toolsEnvVars": { + "GOROOT": "/usr/local/go", + "GOPATH": "/root/go", + "PATH": "/usr/local/go/bin:/root/go/bin:${env:PATH}", + "GOCACHE": "/workspace/.cache/go-build", + "GOMODCACHE": "/workspace/.cache/gomod", + "XDG_CACHE_HOME": "/workspace/.cache" + }, + "go.alternateTools": { + "go": "/usr/local/go/bin/go", + "gopls": "/root/go/bin/gopls" + }, + "go.useLanguageServer": true, "goBuild.zcli.enabled": false, "cSpell.words": ["struc"] }