Skip to content

Delay registering codelens provider until java extension is activated - #632

Merged
Jinbo Wang (testforstephen) merged 1 commit into
masterfrom
jinbo_codelens
Aug 16, 2019
Merged

Jinbo Wang (testforstephen) merged 1 commit into
masterfrom
jinbo_codelens

Conversation

@testforstephen

Copy link
Copy Markdown
Contributor

Signed-off-by: Jinbo Wang [email protected]

fix #631

@Eskibear Yan Zhang (Eskibear) left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as a workaround.

Though it still cannot cover the below case:
I open the workspace, current active file is pom.xml, before language server is fully started, I quickly open a .java file. CodeLens still miss.

UPDATE:
Well, "onLanguage:java" ensure that the debugger only activate when current file is .java

@testforstephen
Jinbo Wang (testforstephen) deleted the jinbo_codelens branch August 16, 2019 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sometimes, code lenses for Run/Debug links on main methods don't show up immediately

3 participants