Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ internal class OdooLSLspServerSupportProvider : LspServerSupportProvider {
if (project.isDisposed) return

if (!findManifest(project)) return
if (project.service<OdooProjectSettingsService>().state.selectedProfile == "disabled") return
println("__manifest__.py file detected in project. Starting OdooLS")

serverStarter.ensureServerStarted(OdooLsServerDescriptor(project))
Expand Down
4 changes: 4 additions & 0 deletions src/main/kotlin/com/odoo/odools/OdooStatusBarWidget.kt
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,13 @@ class OdooLspStatusWidget(
currentStatus = "start"
} else if (status == "stop") {
currentStatus = "stop"
} else if (status == "git_locked") {
currentStatus = "git_locked"
}
if (currentStatus == "start") {
full_name += " - Loading"
} else if (currentStatus == "git_locked") {
full_name += " - awaiting git"
}
widgetState = WidgetState("Odoo LS plugin", full_name, true)
update()
Expand Down