File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,13 @@ class Resource {
330
330
331
331
/**
332
332
* Retrieve the project assigned to the resource
333
+ * <br/>
334
+ * <b>Note for UI5 Tooling extensions (i.e. custom tasks, custom middleware):</b>
335
+ * In order to ensure compatibility across UI5 Tooling versions, consider using the
336
+ * <code>getProject(resource)</code> method provided by
337
+ * [TaskUtil]{@link module:@ui5/project/build/helpers/TaskUtil} and
338
+ * [MiddlewareUtil]{@link module:@ui5/server.middleware.MiddlewareUtil}, which will
339
+ * return a Specification Version-compatible Project interface.
333
340
*
334
341
* @public
335
342
* @returns {@ui5/project/specifications/Project } Project this resource is associated with
Original file line number Diff line number Diff line change @@ -187,6 +187,13 @@ class ResourceFacade {
187
187
188
188
/**
189
189
* Retrieve the project assigned to the resource
190
+ * <br/>
191
+ * <b>Note for UI5 Tooling extensions (i.e. custom tasks, custom middleware):</b>
192
+ * In order to ensure compatibility across UI5 Tooling versions, consider using the
193
+ * <code>getProject(resource)</code> method provided by
194
+ * [TaskUtil]{@link module:@ui5/project/build/helpers/TaskUtil} and
195
+ * [MiddlewareUtil]{@link module:@ui5/server.middleware.MiddlewareUtil}, which will
196
+ * return a Specification Version-compatible Project interface.
190
197
*
191
198
* @public
192
199
* @returns {@ui5/project/specifications/Project } Project this resource is associated with
You can’t perform that action at this time.
0 commit comments