mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode 63d257f78a36951ab7e821170ba675b11dc06d48 (#5240)
This commit is contained in:
@@ -9,6 +9,7 @@ import { realpathSync } from 'vs/base/node/extpath';
|
||||
import { IExtensionHostProfile, IExtensionService, ProfileSegmentId, ProfileSession } from 'vs/workbench/services/extensions/common/extensions';
|
||||
import { IExtensionDescription } from 'vs/platform/extensions/common/extensions';
|
||||
import { withNullAsUndefined } from 'vs/base/common/types';
|
||||
import { Schemas } from 'vs/base/common/network';
|
||||
|
||||
export class ExtensionHostProfiler {
|
||||
|
||||
@@ -30,7 +31,9 @@ export class ExtensionHostProfiler {
|
||||
private distill(profile: Profile, extensions: IExtensionDescription[]): IExtensionHostProfile {
|
||||
let searchTree = TernarySearchTree.forPaths<IExtensionDescription>();
|
||||
for (let extension of extensions) {
|
||||
searchTree.set(realpathSync(extension.extensionLocation.fsPath), extension);
|
||||
if (extension.extensionLocation.scheme === Schemas.file) {
|
||||
searchTree.set(realpathSync(extension.extensionLocation.fsPath), extension);
|
||||
}
|
||||
}
|
||||
|
||||
let nodes = profile.nodes;
|
||||
|
||||
Reference in New Issue
Block a user