Skip to content

Commit 654e78b

Browse files
committed
Add suggest button to config editor
1 parent 1cd5517 commit 654e78b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

www/config.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<main>
2424
<div>
2525
<button id="save">Save & Restart</button>
26+
<button id="suggest" title="ctrl + space">Suggest</button>
2627
</div>
2728
</main>
2829
<div id="config"></div>
@@ -1198,6 +1199,10 @@
11981199
}
11991200
});
12001201

1202+
document.getElementById('suggest').addEventListener('click', () => {
1203+
editor.trigger('source', 'editor.action.triggerSuggest', {});
1204+
});
1205+
12011206
(async () => {
12021207
try {
12031208
const r = await fetch('https://go2rtc.org/schema.json', {cache: 'no-cache'});

0 commit comments

Comments
 (0)