Skip to content

Commit 69de5bc

Browse files
fix(schemaComposition): remove editor styles when sync is disabled (#5699)
* fix: remove highlight styles when sync is disabled * chore: run prettier * chore: add back to check compositionBlock
1 parent 4356142 commit 69de5bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/languageSupport/languages/flux/lsp/connection.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class LspConnectionManager {
248248
},
249249
]
250250

251-
const removeAllStyles = !compositionBlock && schema.composition.diverged
251+
const removeAllStyles = !compositionBlock || schema.composition.diverged
252252

253253
this._compositionStyle = this._editor.deltaDecorations(
254254
this._compositionStyle,
@@ -263,6 +263,8 @@ class LspConnectionManager {
263263

264264
if (removeAllStyles) {
265265
clickableInvisibleDiv.style.display = 'none'
266+
} else {
267+
clickableInvisibleDiv.style.display = 'block'
266268
}
267269
}
268270

0 commit comments

Comments
 (0)