diff --git a/.changeset/giant-jobs-yawn.md b/.changeset/giant-jobs-yawn.md new file mode 100644 index 000000000..6e0be915b --- /dev/null +++ b/.changeset/giant-jobs-yawn.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 +--- + +contextPath attribute value completion enabled for Chart macros element diff --git a/packages/fe/src/services/completion/providers/context-path.ts b/packages/fe/src/services/completion/providers/context-path.ts index 17228443a..52da27e17 100644 --- a/packages/fe/src/services/completion/providers/context-path.ts +++ b/packages/fe/src/services/completion/providers/context-path.ts @@ -47,14 +47,9 @@ export function contextPathSuggestions({ context.ui5Model ); - // provider is blocked and is used in tests only - // reserved for the future to be reused in binding expressions - if (!(context as unknown as { forTest: boolean }).forTest) { - return []; - } - if ( ui5Property?.library === SAP_FE_MACROS && + ui5Property.parent?.name === "Chart" && ui5Property.name === "contextPath" ) { const mainServicePath = context.manifestDetails.mainServicePath;