Skip to content

Commit a4ef3f4

Browse files
committed
[IMP] Improve progress notifications
1 parent 4af44d6 commit a4ef3f4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/kotlin/com/odoo/odools/OdooLSLspServerSupportProvider.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ internal class OdooLSLspServerSupportProvider : LspServerSupportProvider {
4747
if (project.isDisposed) return
4848

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

5352
serverStarter.ensureServerStarted(OdooLsServerDescriptor(project))

src/main/kotlin/com/odoo/odools/OdooStatusBarWidget.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,13 @@ class OdooLspStatusWidget(
7575
currentStatus = "start"
7676
} else if (status == "stop") {
7777
currentStatus = "stop"
78+
} else if (status == "git_locked") {
79+
currentStatus = "git_locked"
7880
}
7981
if (currentStatus == "start") {
8082
full_name += " - Loading"
83+
} else if (currentStatus == "git_locked") {
84+
full_name += " - awaiting git"
8185
}
8286
widgetState = WidgetState("Odoo LS plugin", full_name, true)
8387
update()

0 commit comments

Comments
 (0)