From 0be1cf8b738e9a1e06349cdf5a28bb4e973c7d09 Mon Sep 17 00:00:00 2001 From: Alan Ren Date: Mon, 19 Aug 2019 14:03:13 -0700 Subject: [PATCH] add valid uri prefix (#6810) --- src/sql/workbench/parts/profiler/browser/profilerInput.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sql/workbench/parts/profiler/browser/profilerInput.ts b/src/sql/workbench/parts/profiler/browser/profilerInput.ts index 38f7ba4648..9d85460540 100644 --- a/src/sql/workbench/parts/profiler/browser/profilerInput.ts +++ b/src/sql/workbench/parts/profiler/browser/profilerInput.ts @@ -22,6 +22,7 @@ import * as types from 'vs/base/common/types'; import { URI } from 'vs/base/common/uri'; import Severity from 'vs/base/common/severity'; import { FilterData } from 'sql/workbench/services/profiler/common/profilerFilter'; +import { uriPrefixes } from 'sql/platform/connection/common/utils'; export class ProfilerInput extends EditorInput implements IProfilerSession { @@ -60,7 +61,7 @@ export class ProfilerInput extends EditorInput implements IProfilerSession { autoscroll: true }); - this._profilerService.registerSession(generateUuid(), connection, this).then((id) => { + this._profilerService.registerSession(uriPrefixes.connection + generateUuid(), connection, this).then((id) => { this._id = id; this.state.change({ isConnected: true }); });