Skip to content

Commit

Permalink
fix(vscode): dont stop daemon in attempt to recover on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed Dec 19, 2024
1 parent 354a6ff commit bab476d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions apps/vscode/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ import { initVscodeProjectGraph } from '@nx-console/vscode/project-graph';
import { initTypeScriptServerPlugin } from '@nx-console/vscode/typescript-plugin';

import {
NxStopDaemonRequest,
NxWorkspaceRefreshNotification,
NxWorkspaceRequest,
} from '@nx-console/language-server/types';
Expand Down Expand Up @@ -337,15 +336,6 @@ async function registerWorkspaceFileWatcher(
if (projects && Object.keys(projects).length > 0) {
return;
} else {
try {
await Promise.race([
nxlsClient.sendRequest(NxStopDaemonRequest, undefined),
new Promise((resolve) => setTimeout(resolve, 2000)),
]);
} catch (e) {
// errors while stopping the daemon aren't critical
}

await nxlsClient.sendNotification(NxWorkspaceRefreshNotification);

await new Promise<void>((resolve) => {
Expand Down

0 comments on commit bab476d

Please sign in to comment.