diff --git a/.changeset/nice-news-talk.md b/.changeset/nice-news-talk.md new file mode 100644 index 000000000..19191c188 --- /dev/null +++ b/.changeset/nice-news-talk.md @@ -0,0 +1,7 @@ +--- +"@ui5-language-assistant/fe": patch +"vscode-ui5-language-assistant": patch +"@ui5-language-assistant/vscode-ui5-language-assistant-bas-ext": patch +--- + +Warning text correction diff --git a/packages/fe/src/i18n/i18n.json b/packages/fe/src/i18n/i18n.json index af82d08e2..279ff0b62 100644 --- a/packages/fe/src/i18n/i18n.json +++ b/packages/fe/src/i18n/i18n.json @@ -24,7 +24,7 @@ "UNKNOWN_PATH": "Unknown path: \"{{value}}\"", "INVALID_PROPERTY_PATH_MULTIPLE_1_TO_MANY": "Invalid property path value. Multiple 1:many association segments not allowed", - "ENTITY_SET_OR_CONTEXT_PATH_IS_MISSING_IN_MANIFEST": "Path cannot be identified: use absolute path or define contextPath", + "ENTITY_SET_OR_CONTEXT_PATH_IS_MISSING_IN_MANIFEST": "The path cannot be identified. Use an absolute path or define the contextPath", "EMPTY_CONTEXT_PATH_IN_MANIFEST": "ContextPath in manifest is empty. Attribute value completion and diagnostics are disabled", "RELATIVE_CONTEXT_PATH_IN_MANIFEST": "ContextPath in manifest \"{{value}}\" must be absolute. Attribute value completion and diagnostics are disabled", "UNKNOWN_CONTEXT_PATH_IN_MANIFEST": "Unknown contextPath in manifest \"{{value}}\". Attribute value completion and diagnostics are disabled", diff --git a/packages/fe/test/unit/services/diagnostics/validators/missing-entity-set.test.ts b/packages/fe/test/unit/services/diagnostics/validators/missing-entity-set.test.ts index b1a804c9c..e6cbd48b1 100644 --- a/packages/fe/test/unit/services/diagnostics/validators/missing-entity-set.test.ts +++ b/packages/fe/test/unit/services/diagnostics/validators/missing-entity-set.test.ts @@ -76,7 +76,7 @@ describe("missing entitySet validation", () => { } ); expect(result.map((item) => issueToSnapshot(item))).toStrictEqual([ - "kind: MissingEntitySet; text: Path cannot be identified: use absolute path or define contextPath; severity:warn; offset:344-354", + "kind: MissingEntitySet; text: The path cannot be identified. Use an absolute path or define the contextPath; severity:warn; offset:344-354", ]); }); @@ -87,7 +87,7 @@ describe("missing entitySet validation", () => { (c) => ({ ...c, manifestDetails: undefined } as any) ); expect(result.map((item) => issueToSnapshot(item))).toStrictEqual([ - "kind: MissingEntitySet; text: Path cannot be identified: use absolute path or define contextPath; severity:warn; offset:344-349", + "kind: MissingEntitySet; text: The path cannot be identified. Use an absolute path or define the contextPath; severity:warn; offset:344-349", ]); }); @@ -103,7 +103,7 @@ describe("missing entitySet validation", () => { } ); expect(result.map((item) => issueToSnapshot(item))).toStrictEqual([ - "kind: MissingEntitySet; text: Path cannot be identified: use absolute path or define contextPath; severity:warn; offset:344-349", + "kind: MissingEntitySet; text: The path cannot be identified. Use an absolute path or define the contextPath; severity:warn; offset:344-349", ]); }); });