mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 08:38:56 +01:00
@@ -5,12 +5,8 @@
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
|
||||
export interface WebviewResourceProvider {
|
||||
toWebviewResource(resource: vscode.Uri): vscode.Uri;
|
||||
|
||||
export function toResoruceUri(webviewResourceRoot: string, uri: vscode.Uri): vscode.Uri {
|
||||
const rootUri = vscode.Uri.parse(webviewResourceRoot);
|
||||
return rootUri.with({
|
||||
path: rootUri.path + uri.path,
|
||||
query: uri.query,
|
||||
fragment: uri.fragment,
|
||||
});
|
||||
}
|
||||
readonly cspRule: string;
|
||||
}
|
||||
Reference in New Issue
Block a user