Theia API Documentation v1.75.0
    Preparing search index...
    toPluginUrl: (pck: PluginIdentifierSource, relativePath: string) => string = toPluginUrlFromUtils

    Type Declaration

      • (pck: PluginIdentifierSource, relativePath: string): string
      • Builds a static-friendly plugin asset URL: hostedPlugin/<id>/<segments...>. Path separators stay literal /; each segment is encodeURIComponent'd so plain static file servers (browser-only) resolve assets without needing Express :path(*) decoding. . is dropped and .. is resolved within the plugin root (leading .. is ignored).

        Parameters

        Returns string