mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 03:40:35 -05:00
make sure to use a URI when looking up nodes
This commit is contained in:
@@ -60,7 +60,12 @@ export class ExtensionHostProfiler {
|
||||
break;
|
||||
}
|
||||
} else if (segmentId === 'self' && node.callFrame.url) {
|
||||
let extension = searchTree.findSubstr(node.callFrame.url);
|
||||
let extension: IExtensionDescription | undefined;
|
||||
try {
|
||||
extension = searchTree.findSubstr(URI.parse(node.callFrame.url).toString());
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
if (extension) {
|
||||
segmentId = extension.identifier.value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user