Skip to content

Commit

Permalink
fix: add windowsHide: true in more places
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed Sep 20, 2024
1 parent df7922e commit 8f3a719
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions libs/language-server/workspace/src/lib/nx-stop-daemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ export async function nxStopDaemon(workspacePath: string, logger: Logger) {
);
execSync(`${packageManagerCommands.exec} nx daemon --stop`, {
cwd: workspacePath,
windowsHide: true,
});
}
9 changes: 8 additions & 1 deletion libs/vscode/add-dependency/src/lib/vscode-add-dependency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,14 @@ async function getWorkspaceAddFlag(
private?: boolean;
}>(join(workspacePath, 'package.json'));
if (pkgManager === 'yarn') {
const isYarnV1 = major(execSync('yarn --version').toString().trim()) === 1;
const isYarnV1 =
major(
execSync('yarn --version', {
windowsHide: true,
})
.toString()
.trim()
) === 1;
const isWorkspace =
!!pkgJson.private &&
!!pkgJson.workspaces &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export function getGithubSlugOrNull(): string | null {
try {
const gitRemote = execSync('git remote -v', {
stdio: 'pipe',
windowsHide: true,
}).toString();
// If there are no remotes, we default to github
if (!gitRemote || gitRemote.length === 0) {
Expand Down

0 comments on commit 8f3a719

Please sign in to comment.