Added C3 syntax highlighting and LSP support.

Refactored TextUndoStack, now uses std::variant and avoids heap allocating each command.
Fix possible crash in Process::readAll.
Fix SyntaxDefinition::setSymbols.
Some minor improvements for Odin and Ü syntax definitions.
Fix Git plugin silent configuration.
This commit is contained in:
Martín Lucas Golini
2025-04-04 01:48:39 -03:00
parent 8c131b2487
commit da85af1246
21 changed files with 333 additions and 188 deletions

View File

@@ -196,9 +196,9 @@ void GitPlugin::load( PluginManager* pluginManager ) {
}
if ( config.contains( "silent" ) )
mSilence = config.value( "silent", true );
mSilent = config.value( "silent", true );
else {
config["silent"] = mSilence;
config["silent"] = mSilent;
updateConfigFile = true;
}
}
@@ -230,7 +230,8 @@ void GitPlugin::load( PluginManager* pluginManager ) {
}
mGit = std::make_unique<Git>( pluginManager->getWorkspaceFolder() );
mGit->setLogLevel( mSilence ? LogLevel::Warning : LogLevel::Info );
mGit->setLogLevel( Log::instance()->getLogLevelThreshold() );
mGit->setSilent( mSilent );
mGitFound = !mGit->getGitPath().empty();
mProjectPath = mRepoSelected = mGit->getProjectPath();