mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-09 20:36:32 +00:00
Fixed bug when no 3rd party URLs are defined.
Instead of adding an empty string URL, we add nothing. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
369a8f4307
commit
f106c97f1e
@ -24,7 +24,7 @@ export interface Settings extends Index {
|
|||||||
editorFontSize: number; // `editor.fontSize`
|
editorFontSize: number; // `editor.fontSize`
|
||||||
themeId: string; // `workbench.colorTheme`
|
themeId: string; // `workbench.colorTheme`
|
||||||
autoSave: 'on' | 'off'; // `editor.autoSave`
|
autoSave: 'on' | 'off'; // `editor.autoSave`
|
||||||
quickSuggestions: Record<'other'|'comments'|'strings', boolean>; // `editor.quickSuggestions`
|
quickSuggestions: Record<'other' | 'comments' | 'strings', boolean>; // `editor.quickSuggestions`
|
||||||
|
|
||||||
autoScaleInterface: boolean; // `arduino.window.autoScale`
|
autoScaleInterface: boolean; // `arduino.window.autoScale`
|
||||||
interfaceScale: number; // `arduino.window.zoomLevel` https://github.com/eclipse-theia/theia/issues/8751
|
interfaceScale: number; // `arduino.window.zoomLevel` https://github.com/eclipse-theia/theia/issues/8751
|
||||||
@ -823,7 +823,7 @@ export class AdditionalUrlsDialog extends AbstractDialog<string[]> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get value(): string[] {
|
get value(): string[] {
|
||||||
return this.textArea.value.split('\n').map(url => url.trim());
|
return this.textArea.value.split('\n').map(url => url.trim()).filter(url => !!url);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected onAfterAttach(message: Message): void {
|
protected onAfterAttach(message: Message): void {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user