We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf3e0f0b commit76fce67Copy full SHA for 76fce67
Extension/ui/settings.ts
@@ -81,8 +81,12 @@ class SettingsApp {
81
// Set view state of advanced settings and add event
82
constoldState:any=this.vsCodeApi.getState();
83
constadvancedShown:boolean=oldState&&oldState.advancedShown;
84
-// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
85
-document.getElementById(elementId.advancedSection)!.style.display=advancedShown ?"block" :"none";
+
+constadvancedSection:HTMLElement|null=document.getElementById(elementId.advancedSection);
86
+if(advancedSection){
87
+advancedSection.style.display=advancedShown ?"block" :"none";
88
+}
89
90
document.getElementById(elementId.showAdvanced)?.classList.toggle(advancedShown ?"collapse" :"expand",true);
91
document.getElementById(elementId.showAdvanced)?.addEventListener("click",this.onShowAdvanced.bind(this));
92
this.vsCodeApi.postMessage({