Skip to content

Commit

Permalink
build: change in the devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdihadeli committed Jul 22, 2024
1 parent c9246a9 commit 2ac3533
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 52 deletions.
65 changes: 31 additions & 34 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"features": {
// https://github.com/devcontainers/features/tree/main/src/go
"ghcr.io/devcontainers/features/go:1": {
"version": "1.22"
"version": "1.22"
},
// https://github.com/devcontainers/features/tree/main/src/github-cli
"ghcr.io/devcontainers/features/github-cli:1": {
Expand Down Expand Up @@ -58,7 +58,7 @@
"resmon.show.cpufreq": false,
"omnisharp.projectLoadTimeout": 60,
"workbench.colorTheme": "Visual Studio Light",
"workbench.iconTheme": "material-icon-theme",
"workbench.iconTheme": "vscode-icons",
"editor.minimap.enabled": false,
"editor.fontFamily": "'MesloLGM Nerd Font', 'Droid Sans Mono', 'monospace', 'Droid Sans Fallback', 'Consolas'",
"editor.fontSize": 14,
Expand All @@ -67,52 +67,49 @@
"terminal.integrated.defaultProfile.linux": "zsh",
"powershell.cwd": "~",
"terminal.external.windowsExec": "%LOCALAPPDATA%\\Microsoft\\WindowsApps\\pwsh.exe",
"go.buildTags": "",
"go.toolsEnvVars": {
"CGO_ENABLED": "0"
},
"go.useLanguageServer": true,
"go.testEnvVars": {
"CGO_ENABLED": "1"
},
"go.testFlags": [
"-v",
"-race"
],
"go.testTimeout": "10s",
"go.coverOnSingleTest": true,
"go.coverOnSingleTestFile": true,
"go.coverOnTestPackage": true,
"go.lintOnSave": "package",
"[go]": {
"editor.codeActionsOnSave": {
"source.organizeImports": "always"
}
},
"gopls": {
"usePlaceholders": false,
"staticcheck": true
},
"go.buildTags": "",
"go.toolsEnvVars": {
"CGO_ENABLED": "0"
},
"go.testEnvVars": {
"CGO_ENABLED": "1"
},
"go.testTimeout": "10s",
"go.coverOnSingleTest": true,
"go.coverOnSingleTestFile": true,
"go.coverOnTestPackage": true,
"[go]": {
"editor.codeActionsOnSave": {
"source.organizeImports": "always"
}
},
"gopls": {
"usePlaceholders": false,
"staticcheck": true
},
"go.lintTool": "golangci-lint",
"go.lintFlags": ["--fast"],
"go.lintOnSave": "package",
"go.testFlags": ["-failfast", "-v"],
"go.toolsManagement.autoUpdate": true,
"go.useLanguageServer": true,
"go.formatTool": "gofumpt"
"go.formatTool": "gofumpt",
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"extensions": [
"golang.Go",
"esbenp.prettier-vscode",
"golang.Go",
"esbenp.prettier-vscode",
"streetsidesoftware.code-spell-checker",
"vscode-icons-team.vscode-icons",
"redhat.vscode-yaml", // Kubernetes,
"vscode-icons-team.vscode-icons",
"redhat.vscode-yaml", // Kubernetes,
"mutantdino.resourcemonitor",
"humao.rest-client",
"dzhavat.bracket-pair-toggler",
"ms-azuretools.vscode-docker",
"vivaxy.vscode-conventional-commits",
"IBM.output-colorizer", // Colorize your output/test logs
"IBM.output-colorizer", // Colorize your output/test logs
"emmanuelbeziat.vscode-great-icons",
"ms-vscode.vs-keybindings",
"GitHub.vscode-github-actions",
Expand Down
Empty file modified .devcontainer/scripts/post-create.sh
100644 → 100755
Empty file.
Empty file modified .devcontainer/scripts/update.sh
100644 → 100755
Empty file.
49 changes: 31 additions & 18 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,36 @@
"editor.suggest.snippetsPreventQuickSuggestions": false,
"explorer.autoReveal": true,
"resmon.show.cpufreq": false,
"dotnet.server.startTimeout": 60000,
"omnisharp.projectLoadTimeout": 60,
"workbench.colorTheme": "Visual Studio Light",
"workbench.iconTheme": "vscode-icons",
"editor.minimap.enabled": false,
"editor.fontFamily": "'MesloLGM Nerd Font', 'Droid Sans Mono', 'monospace', 'Droid Sans Fallback', 'Consolas'",
"editor.fontSize": 14,
"explorer.confirmDelete": false,
"terminal.integrated.defaultProfile.windows": "PowerShell",
"terminal.integrated.defaultProfile.linux": "zsh",
"powershell.cwd": "~",
"terminal.external.windowsExec": "%LOCALAPPDATA%\\Microsoft\\WindowsApps\\pwsh.exe",
"go.buildTags": "",
"go.toolsEnvVars": {
"CGO_ENABLED": "0"
},
"go.testEnvVars": {
"CGO_ENABLED": "1"
},
"go.testTimeout": "10s",
"go.coverOnSingleTest": true,
"go.coverOnSingleTestFile": true,
"go.coverOnTestPackage": true,
"[go]": {
"editor.codeActionsOnSave": {
"source.organizeImports": "always"
}
},
"gopls": {
"ui.semanticTokens": true
"usePlaceholders": false,
"staticcheck": true
},
"go.lintTool": "golangci-lint",
"go.lintFlags": ["--fast"],
Expand All @@ -17,20 +43,7 @@
"go.toolsManagement.autoUpdate": true,
"go.useLanguageServer": true,
"go.formatTool": "gofumpt",
"workbench.colorTheme": "Visual Studio Light",
"workbench.iconTheme": "material-icon-theme",
"editor.minimap.enabled": false,
"terminal.integrated.fontFamily": "MesloLGM Nerd Font",
"terminal.integrated.defaultProfile.windows": "PowerShell",
"terminal.integrated.defaultProfile.linux": "zsh",
"powershell.cwd": "~",
"terminal.external.windowsExec": "%LOCALAPPDATA%\\Microsoft\\WindowsApps\\pwsh.exe",
"explorer.confirmDelete": false,
"remote.autoForwardPortsSource": "hybrid",
"go.inlayHints.assignVariableTypes": true,
"go.inlayHints.compositeLiteralFields": true,
"go.inlayHints.compositeLiteralTypes": true,
"go.inlayHints.constantValues": true,
"go.inlayHints.functionTypeParameters": true,
"go.inlayHints.rangeVariableTypes": true
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}

0 comments on commit 2ac3533

Please sign in to comment.