How to use the vscode-uri.URI.from function in vscode-uri

To help you get started, we’ve selected a few vscode-uri examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vmware / vrealize-developer-tools / common / src / platform / WorkspaceFolder.ts View on Github external
static fromVscode(source: { uri: UriComponents; name: string }): WorkspaceFolder {
        return new WorkspaceFolder(URI.from(source.uri), source.name)
    }
}