Skip to content

Commit f633147

Browse files
author
Zeng Li
committed
feat: description to type of diagnostic
1 parent 477c121 commit f633147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vscode-extension/src/diagnostic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function formatPsaSuggestsToDiag(plansStr: string, log: Logger, diagnostics: vsc
152152
const message = plan.Description;
153153
const diagnostic = new vscode.Diagnostic(range, message);
154154
diagnostic.severity = vscode.DiagnosticSeverity.Warning;
155-
if (plan.Description === "The alias can be changed to be formal name.") {
155+
if (plan.Description.includes("alias")) {
156156
diagnostic.code = "Alias";
157157
}
158158
else {

0 commit comments

Comments
 (0)