mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
Fixes issue reporter bug with extension selection (#193719)
checks if we pre-existing extension information
This commit is contained in:
@@ -1056,7 +1056,10 @@ export class IssueReporter extends Disposable {
|
||||
if (extensionsSelector) {
|
||||
const { selectedExtension } = this.issueReporterModel.getData();
|
||||
reset(extensionsSelector, this.makeOption('', localize('selectExtension', "Select extension"), true), ...extensionOptions.map(extension => makeOption(extension, selectedExtension)));
|
||||
extensionsSelector.selectedIndex = 0;
|
||||
|
||||
if (!selectedExtension) {
|
||||
extensionsSelector.selectedIndex = 0;
|
||||
}
|
||||
|
||||
this.addEventListener('extension-selector', 'change', (e: Event) => {
|
||||
const selectedExtensionId = (<HTMLInputElement>e.target).value;
|
||||
|
||||
Reference in New Issue
Block a user