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

feat(nxls): decouple daemon lifecycle from nxls lifecycle #2339

Merged
merged 8 commits into from
Dec 6, 2024

Conversation

MaxKless
Copy link
Collaborator

@MaxKless MaxKless commented Dec 3, 2024

  • log enabled
  • changes
  • start daemon separately & dont kill on shutdown

Copy link

nx-cloud bot commented Dec 3, 2024

@MaxKless MaxKless force-pushed the daemon-startup-decoupling branch from 3b86f71 to b97a01d Compare December 5, 2024 20:42
@@ -134,6 +137,14 @@ export class NxlsWrapper {

this.process?.removeListener('exit', this.earlyExitListener);

try {
execSync(`npx nx@${version ?? defaultVersion} daemon --stop`, {
Copy link
Member

Choose a reason for hiding this comment

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

Should there be a windowsHide here as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sure, not important tho as it's just the e2e

@@ -102,7 +102,7 @@ export class NxlsClient {
}

public async refreshWorkspace() {
window.withProgress(
await window.withProgress(
Copy link
Member

Choose a reason for hiding this comment

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

Does this fix the spamming refresh issue?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes!

@MaxKless MaxKless merged commit 8ed9385 into master Dec 6, 2024
4 checks passed
@MaxKless MaxKless deleted the daemon-startup-decoupling branch December 6, 2024 09:51
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.

2 participants