Skip to content

Commit

Permalink
Removed xml prefix on xml diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
markwpearce committed Aug 20, 2024
1 parent 3c99174 commit 21eb250
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/DiagnosticMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,25 +452,25 @@ export let DiagnosticMessages = {
message: `Cannot find function with name '${name}' in component scope`,
legacyCode: 1067,
severity: DiagnosticSeverity.Error,
code: 'xml-function-not-found'
code: 'function-not-found'
}),
xmlInvalidFieldType: (name: string) => ({
message: `Invalid field type ${name}`,
legacyCode: 1068,
severity: DiagnosticSeverity.Error,
code: 'xml-invalid-field-type'
code: 'invalid-field-type'
}),
xmlUnexpectedChildren: (tagName: string) => ({
message: `Tag '${tagName}' should not have children`,
legacyCode: 1069,
severity: DiagnosticSeverity.Error,
code: 'xml-unexpected-children'
code: 'unexpected-children'
}),
xmlTagMissingAttribute: (tagName: string, attrName: string) => ({
message: `Tag '${tagName}' must have a '${attrName}' attribute`,
legacyCode: 1070,
severity: DiagnosticSeverity.Error,
code: 'xml-missing-attribute'
code: 'expected-attribute'
}),
expectedLabelIdentifierAfterGotoKeyword: () => ({
message: `Expected label identifier after 'goto' keyword`,
Expand Down Expand Up @@ -695,7 +695,7 @@ export let DiagnosticMessages = {
message: `This import is unnecessary because compiler option 'autoImportComponentScript' is enabled`,
legacyCode: 1107,
severity: DiagnosticSeverity.Warning,
code: 'xml-unnecessary-import'
code: 'unnecessary-import'
}),
expectedOpenParenToFollowCallfuncIdentifier: () => ({
message: `Expected '(' to follow callfunc identifier`,
Expand Down Expand Up @@ -881,7 +881,7 @@ export let DiagnosticMessages = {
message: `Optional chaining may not be used in the left - hand side of an assignment`,
legacyCode: 1139,
severity: DiagnosticSeverity.Error,
code: 'otional-chaining-on-left-of-assignment'
code: 'optional-chaining-on-left-of-assignment'
}),
/**
*
Expand Down

0 comments on commit 21eb250

Please sign in to comment.