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

Fix Spurious Compilation Errors #3845

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kaeluka
Copy link
Contributor

@kaeluka kaeluka commented Nov 27, 2024

issue: https://github.com/github/codeql-core/issues/4654

Dear Reviewer

  • This is a PoC that works for me.
  • I had to inject the language server reference pretty far into the skeleton query wizard logic. I'm not sure if this would be considered a design violation. I'd appreciate some feedback.
  • Maybe, the same effect could also be achieved by different means (like watching the ~/.codeql/packages subdirectories, ...). Chances are, there's room for improvement.

@kaeluka kaeluka requested review from a team as code owners November 27, 2024 13:38
@@ -792,12 +792,16 @@ async function activateWithInstalledDistribution(
const languageSelectionPanel = new LanguageSelectionPanel(languageContext);
ctx.subscriptions.push(languageSelectionPanel);

void extLogger.log("Initializing CodeQL language server.");
const languageClient = createLanguageClient(qlConfigurationListener);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this changes the initialization order of things because we now inject the language client into sub-components. It seems to work fine for me locally.

@kaeluka kaeluka force-pushed the kaeluka/4654-fix-spurious-errors branch 2 times, most recently from 656363b to a97fbd6 Compare November 27, 2024 14:32
@kaeluka kaeluka force-pushed the kaeluka/4654-fix-spurious-errors branch from a97fbd6 to 9c87113 Compare November 27, 2024 14:36
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.

1 participant