Skip to content

Commit

Permalink
Rename missing-reference error code
Browse files Browse the repository at this point in the history
  • Loading branch information
cooolbros committed Feb 14, 2024
1 parent caa38d5 commit d9709bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export class HUDAnimationsLanguageServer extends LanguageServer<HUDAnimationsDoc
diagnostics.push({
range: statement.eventRange,
severity: DiagnosticSeverity.Warning,
code: "missing-reference",
code: "invalid-reference",
message: `Cannot find event '${statement.event}'.`,
})
}
Expand Down
4 changes: 2 additions & 2 deletions packages/lib/server/VDF/VDFLanguageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export abstract class VDFLanguageServer extends LanguageServer<VDFDocumentSymbol
diagnostics.push({
range: documentSymbol.detailRange!,
severity: DiagnosticSeverity.Warning,
code: "missing-reference",
code: "invalid-reference",
message: `Cannot find ${this.VDFLanguageServerConfiguration.definitionReferences[type].name} '${documentSymbol.detail}'.`,
data: {
documentSymbol: documentSymbol,
Expand Down Expand Up @@ -678,7 +678,7 @@ export abstract class VDFLanguageServer extends LanguageServer<VDFDocumentSymbol
})
break
}
case "missing-reference": {
case "invalid-reference": {
if (type == undefined) {
break
}
Expand Down

0 comments on commit d9709bd

Please sign in to comment.