mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 01:25:36 -05:00
Merge from vscode e6a45f4242ebddb7aa9a229f85555e8a3bd987e2 (#9253)
* Merge from vscode e6a45f4242ebddb7aa9a229f85555e8a3bd987e2 * skip failing tests * remove github-authentication extensions * ignore github compile steps * ignore github compile steps * check in compiled files
This commit is contained in:
@@ -97,6 +97,23 @@ export class IssueReporter extends Disposable {
|
||||
this.previewButton = new Button(issueReporterElement);
|
||||
}
|
||||
|
||||
const issueTitle = configuration.data.issueTitle;
|
||||
if (issueTitle) {
|
||||
const issueTitleElement = this.getElementById<HTMLInputElement>('issue-title');
|
||||
if (issueTitleElement) {
|
||||
issueTitleElement.value = issueTitle;
|
||||
}
|
||||
}
|
||||
|
||||
const issueBody = configuration.data.issueBody;
|
||||
if (issueBody) {
|
||||
const description = this.getElementById<HTMLTextAreaElement>('description');
|
||||
if (description) {
|
||||
description.value = issueBody;
|
||||
this.issueReporterModel.update({ issueDescription: issueBody });
|
||||
}
|
||||
}
|
||||
|
||||
ipcRenderer.on('vscode:issuePerformanceInfoResponse', (_: unknown, info: Partial<IssueReporterData>) => {
|
||||
this.logService.trace('issueReporter: Received performance data');
|
||||
this.issueReporterModel.update(info);
|
||||
@@ -1176,8 +1193,8 @@ export class IssueReporter extends Disposable {
|
||||
}
|
||||
}
|
||||
|
||||
private getElementById(elementId: string): HTMLElement | undefined {
|
||||
const element = document.getElementById(elementId);
|
||||
private getElementById<T extends HTMLElement = HTMLElement>(elementId: string): T | undefined {
|
||||
const element = document.getElementById(elementId) as T | undefined;
|
||||
if (element) {
|
||||
return element;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user