mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
@@ -156,10 +156,12 @@ export class DiagnosticsManager {
|
||||
}
|
||||
|
||||
private getSuggestionDiagnostics(file: vscode.Uri) {
|
||||
if (!this._enableSuggestions) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return this._diagnostics.get(DiagnosticKind.Suggestion)!.get(file);
|
||||
return this._diagnostics.get(DiagnosticKind.Suggestion)!.get(file).filter(x => {
|
||||
if (!this._enableSuggestions) {
|
||||
// Still show unused
|
||||
return x.customTags && x.customTags.indexOf(vscode.DiagnosticTag.Unnecessary) !== -1;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user