Commit 8e5ced07 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

add checkbox to enable semantic highlighting in config dialog page

parent b5f0fa62
......@@ -47,6 +47,7 @@ LSPClientConfigPage::LSPClientConfigPage(QWidget *parent, LSPClientPlugin *plugi
ui->chkDiagnosticsMark,
ui->chkOnTypeFormatting,
ui->chkIncrementalSync,
ui->chkSemanticHighlighting,
ui->chkAutoHover})
connect(cb, &QCheckBox::toggled, this, &LSPClientConfigPage::changed);
connect(ui->edtConfigPath, &KUrlRequester::textChanged, this, &LSPClientConfigPage::changed);
......@@ -98,6 +99,7 @@ void LSPClientConfigPage::apply()
m_plugin->m_autoHover = ui->chkAutoHover->isChecked();
m_plugin->m_onTypeFormatting = ui->chkOnTypeFormatting->isChecked();
m_plugin->m_incrementalSync = ui->chkIncrementalSync->isChecked();
m_plugin->m_semanticHighlighting = ui->chkSemanticHighlighting->isChecked();
m_plugin->m_configPath = ui->edtConfigPath->url();
......@@ -121,6 +123,7 @@ void LSPClientConfigPage::reset()
ui->chkAutoHover->setChecked(m_plugin->m_autoHover);
ui->chkOnTypeFormatting->setChecked(m_plugin->m_onTypeFormatting);
ui->chkIncrementalSync->setChecked(m_plugin->m_incrementalSync);
ui->chkSemanticHighlighting->setChecked(m_plugin->m_semanticHighlighting);
ui->edtConfigPath->setUrl(m_plugin->m_configPath);
}
......
......@@ -101,6 +101,13 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkSemanticHighlighting">
<property name="text">
<string>Enable semantic highlighting</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment