mirror of
https://github.com/alexgo-io/gaze-indexer.git
synced 2026-01-12 08:34:28 +08:00
* feat: implement pagination on get balance, get holders * feat: paginate get transactions * fix: remove debug * feat: implement pagination in get utxos * feat: sort response in get holders * feat: cap batch query * feat: add default limits to all endpoints * chore: rename endpoint funcs * fix: parse rune name spacers * chore: use compare.Cmp * feat: handle not found errors on all usecase
83 lines
2.2 KiB
JSON
83 lines
2.2 KiB
JSON
{
|
|
"editor.formatOnSave": true,
|
|
"files.exclude": {
|
|
"**/.git": true,
|
|
"**/.svn": true,
|
|
"**/.hg": true,
|
|
"**/CVS": true,
|
|
"**/.DS_Store": true
|
|
},
|
|
"search.exclude": {
|
|
"**/node_modules": true,
|
|
"**/build": true,
|
|
"**/dist": true
|
|
},
|
|
"[json]": {
|
|
"editor.formatOnSave": true,
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
// Golang
|
|
"[go]": {
|
|
"editor.formatOnSave": true,
|
|
"editor.codeActionsOnSave": {
|
|
"source.organizeImports": "explicit"
|
|
},
|
|
"editor.codeLens": true
|
|
},
|
|
"go.useLanguageServer": true,
|
|
"go.lintTool": "golangci-lint",
|
|
"go.lintFlags": ["--fix"],
|
|
"go.lintOnSave": "package",
|
|
"go.toolsManagement.autoUpdate": true,
|
|
"gopls": {
|
|
"formatting.gofumpt": true, // https://github.com/mvdan/gofumpt
|
|
"ui.codelenses": {
|
|
"gc_details": true
|
|
},
|
|
"build.directoryFilters": ["-**/node_modules"],
|
|
"ui.semanticTokens": true,
|
|
"ui.completion.usePlaceholders": false,
|
|
"ui.diagnostic.analyses": {
|
|
// https://github.com/golang/tools/blob/master/gopls/doc/analyzers.md
|
|
"fieldalignment": false,
|
|
"nilness": true,
|
|
"shadow": false,
|
|
"unusedparams": true,
|
|
"unusedvariable": true,
|
|
"unusedwrite": true, // ineffective assignment
|
|
"useany": true
|
|
},
|
|
"ui.diagnostic.staticcheck": false, // use golangci-lint instead
|
|
"ui.diagnostic.annotations": {
|
|
// CMD+P and run command `Go: Toggle gc details`
|
|
"bounds": true,
|
|
"escape": true,
|
|
"inline": true,
|
|
"nil": true
|
|
},
|
|
"ui.documentation.hoverKind": "FullDocumentation"
|
|
},
|
|
"go.editorContextMenuCommands": {
|
|
// Right click on code to use this command
|
|
"toggleTestFile": false,
|
|
"addTags": false,
|
|
"removeTags": false,
|
|
"fillStruct": true,
|
|
"testAtCursor": false,
|
|
"testFile": false,
|
|
"testPackage": false,
|
|
"generateTestForFunction": true,
|
|
"generateTestForFile": false,
|
|
"generateTestForPackage": false,
|
|
"addImport": false,
|
|
"testCoverage": false,
|
|
"playground": false,
|
|
"debugTestAtCursor": false,
|
|
"benchmarkAtCursor": false
|
|
},
|
|
"dotenv.enableAutocloaking": false,
|
|
"protoc": {
|
|
"options": ["--proto_path=pb"]
|
|
}
|
|
}
|