Resolves a relative path to an existing file or folder in the workspace. Besides the format of WorkspaceService.getRootPrefixedPath, it accepts the formats of paths saved by earlier versions, e.g. in chat sessions, or before the workspace roots changed: in the format of WorkspaceService.resolveSupraRelativePath, if only one of the roots contains the file, or relative to any root.
undefined if the path is absolute, leaves its root or does not resolve to an existing file or folder.
Resolves the relative paths of files in the workspace that AI features, e.g. chat variables, refer to.