Annoying "action" in Code Editor

Hi, in the code editor, a dropdown menu now always appears when you type a space or end the command with ;.
I find the latter extremely annoying because when you want to press Enter to go to the next line after ;, it immediately takes action (entry above), even though you actually want to go to the next line.

Platform information:
Hardware: PI5 4GB
Operating system: Debian GNU/Linux 12 (Bookworm)
Jopenjdk version “21.0.9” 2025-10-21 LTS
OpenJDK runtime environment Temurin-21.0.9+10 (Build 21.0.9+10-LTS)
OpenJDK 64-bit Server VM Temurin-21.0.9+10 (Build 21.0.9+10-LTS, Mixed Mode, Sharing)
openHAB version: openHAB 5.1.3

Translated with DeepL.com (free version)

1 Like

English please, this is an international community !

1 Like

I’ve found this suggestion after ; annoying as well, to be honest…

2 Likes

Yes I have the same issue. I am on OH 5.1.3 and I have to press esc key or click on screen just to hit enter to go to next line.
It even has this behaviour when entering comments
Screenshot from 2026-03-07 08-31-44

Other than that it works well especially with the error checking.

Ok, i made the changes in hint-javascript.ts by me and the new hint-javascript.test.ts as described Reduce unwanted JavaScript editor autocompletion in comments and outside code expressions. by jimtng · Pull Request #3975 · openhab/openhab-webui · GitHub , compile to org.openhab.ui-5.2.0-SNAPSHOT and tested it with my openhab 5.1.3..
All works fine!
hint-javascript.ts:

line 6: 
export function shouldSkipImplicitAutocomplete(context: CompletionContext) {
  if (context.explicit) return false

  const line = context.state.doc.lineAt(context.pos).text
  if (!line.trim()) return true

  const node = syntaxTree(context.state).resolveInner(context.pos, -1)
  if (['String', 'TemplateString', 'BlockComment', 'LineComment'].includes(node.name)) return true

  const lastChar = line.trim().slice(-1)
  if ([';', ',', '[', '('].includes(lastChar)) return true

  return false
}
line 225:
function hintOpenhabJs(context: CompletionContext) {
  if (shouldSkipImplicitAutocomplete(context)) return null // <---- new
  const from = hintUtils.completionStart(context)
  const path = completionPathWithCallExpression(context, from....

2 Likes