You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P.S. We should also set Diagnostic.source. It should be just go for build tasks, and probably the name of the linter, for linters. I will open a separate issue for this. EDIT: Created #2101
Steps to Reproduce
go.buildOnSaveis enabled, with the following task definition:{ "label": "build", "type": "shell", "command": "go build -v", "problemMatcher": "$go", "group": { "kind": "build", "isDefault": true } }Analysis
VS Code de-duplicates diagnostics based on their
owner. For tasks this is set in theproblemMatcher(Thegoproblem matcher is defined here: vscode/src/vs/workbench/parts/tasks/common/problemMatcher.ts:1798-1807). While for extensions this is the name of theDiagnosticCollection(See vscode/src/vs/workbench/api/node/extHostDiagnostics.ts:258). In order for diagnostics generated bygo.buildOnSaveto be de-duplicated with diagnostics generated by tasks we need to use a singleDiagnosticCollection, and name itgo.P.S. We should also set
Diagnostic.source. It should be justgofor build tasks, and probably the name of the linter, for linters. I will open a separate issue for this. EDIT: Created #2101