提交 69a9abe5 编写于 作者: J Johannes Rieken

fix #64339

上级 e17f3032
......@@ -507,11 +507,13 @@ export class ReportExtensionIssueAction extends Action {
baseUrl = product.reportIssueUrl;
}
let title: string;
let message: string;
let reason: string;
if (extension.unresponsiveProfile) {
// unresponsive extension host caused
reason = 'Performance';
title = 'Extension causes high cpu load';
let path = join(os.homedir(), `${extension.description.id}-unresponsive.cpuprofile.txt`);
task = async () => {
const profiler = await import('v8-inspect-profiler');
......@@ -522,9 +524,10 @@ export class ReportExtensionIssueAction extends Action {
} else {
// generic
clipboard.writeText('```json \n' + JSON.stringify(extension.status, null, '\t') + '\n```');
reason = 'Bug';
title = 'Extension issue';
message = ':warning: We have written the needed data into your clipboard. Please paste! :warning:';
clipboard.writeText('```json \n' + JSON.stringify(extension.status, null, '\t') + '\n```');
}
const osVersion = `${os.type()} ${os.arch()} ${os.release()}`;
......@@ -538,7 +541,7 @@ export class ReportExtensionIssueAction extends Action {
);
return {
url: `${baseUrl}${queryStringPrefix}body=${body}`,
url: `${baseUrl}${queryStringPrefix}body=${body}&title=${encodeURIComponent(title)}`,
task
};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册