Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto highlight the hole code when click on ITEMS #210

Open
Thorhammerk opened this issue Jul 18, 2020 · 9 comments
Open

auto highlight the hole code when click on ITEMS #210

Thorhammerk opened this issue Jul 18, 2020 · 9 comments

Comments

@Thorhammerk
Copy link

Thorhammerk commented Jul 18, 2020

Hi,
when i click on an ITEMS in VSC, the complete code in the file is highlighted in blue. i haven't found a setting to disable this behaviour. is it possible to disable it?

Bildschirmfoto 2020-07-13 um 14 12 07

  • extension v0.7.0
  • MacOS and Windows10

best regards

@Confectrician
Copy link
Collaborator

Can you propvide some more deteils?
VSCode and Extension Verison, OPerating System and where you are clicking on the item.
I can't reproduce that currently.

@Thorhammerk
Copy link
Author

Hi,

sure, when i click on the ITEM directly, one click (not double click). sometimes this only occurs after you have worked with VSC for a few minutes. Have you tested it in a rule file?

@AegisVP
Copy link

AegisVP commented Feb 21, 2021

I have the same issue.
At some point I was able to stop this behavior in OpenHAB2 by removing "openhab.karafCommand" setting. Now, with OpenHAB3 this has no effect.
It happens when I click on an Item in a rules file, select an Item (completely or partially). Selecting any other part of the code has no such behavior. Selecting Item methods (.state, .sendCommand, .previousState) has no such behavior. Hovering over an Item shows the value correctly and doesn't highlight the text either. Selecting variables has no such behavior.

Windows 10 20H2
VSCode 1.53.2 (system setup)
OpenHAB extension 0.8.0

@Confectrician
Copy link
Collaborator

Thanks for the description i am facing this behavior too.
Let's see if i can try to add some more debugging to this, so we can get more informatoin of whats happenign under the hood.

@Confectrician
Copy link
Collaborator

I am a bit lost to be honest.
I am trying to reproduce this behavior while debugging, but it simply doesn't occur when i am doing it in a debug session.

@AegisVP
Copy link

AegisVP commented Mar 15, 2021

Is there something I can do to help you?

I was having this issue only if I had LSP enabled. It got so annoying that I turned it off for now.

@Confectrician
Copy link
Collaborator

You already helped me with that. 🙂
I have turned off lsp in my vscode test environment too.

So maybe LSP is causing the problems.
I will try to get a running LSP in my debug environment and see if that's the error cause.
If so, i have to say that we are not able to solve this on short term unfortunately.

@Confectrician
Copy link
Collaborator

It is indeed related to the LSP server.
Probably a wontfix for now, since LSP is more or less not maintained currently.

@Confectrician Confectrician added this to Postponed in Backlog Mar 16, 2021
@Confectrician Confectrician moved this from Postponed to Language Server in Backlog Apr 11, 2021
@kingkoopa13
Copy link

I'm having this issue too. It seem to start happening after updating the extension in the last week. For now, could someone point out how I might turn off LSP as a workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Backlog
  
Language Server
Development

No branches or pull requests

4 participants