mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-30 00:30:29 -04:00
Merge from vscode 6e530127a1bb8ffbd1bfb77dc680c321dc0d71f5 (#6844)
This commit is contained in:
@@ -17,6 +17,7 @@ import { PerfviewInput } from 'vs/workbench/contrib/performance/electron-browser
|
||||
import { IExtensionService } from 'vs/workbench/services/extensions/common/extensions';
|
||||
import { IClipboardService } from 'vs/platform/clipboard/common/clipboardService';
|
||||
import { URI } from 'vs/base/common/uri';
|
||||
import { IOpenerService } from 'vs/platform/opener/common/opener';
|
||||
|
||||
export class StartupProfiler implements IWorkbenchContribution {
|
||||
|
||||
@@ -28,6 +29,7 @@ export class StartupProfiler implements IWorkbenchContribution {
|
||||
@IClipboardService private readonly _clipboardService: IClipboardService,
|
||||
@ILifecycleService lifecycleService: ILifecycleService,
|
||||
@IExtensionService extensionService: IExtensionService,
|
||||
@IOpenerService private readonly _openerService: IOpenerService
|
||||
) {
|
||||
// wait for everything to be ready
|
||||
Promise.all([
|
||||
@@ -116,6 +118,6 @@ export class StartupProfiler implements IWorkbenchContribution {
|
||||
const baseUrl = product.reportIssueUrl;
|
||||
const queryStringPrefix = baseUrl.indexOf('?') === -1 ? '?' : '&';
|
||||
|
||||
window.open(`${baseUrl}${queryStringPrefix}body=${encodeURIComponent(body)}`);
|
||||
this._openerService.open(URI.parse(`${baseUrl}${queryStringPrefix}body=${encodeURIComponent(body)}`));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user