Skip to content

Fix spawning code-server within code-server #4590

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

Merged
merged 3 commits into from
Dec 8, 2021

Conversation

code-asher
Copy link
Member

@code-asher code-asher commented Dec 7, 2021

Also fixes #4322

We already spawn VS Code's CLI when necessary in the lines below.
Having the CLI spawn unconditionally when in a VS Code environment makes
it impossible to run code-server within code-server (for example to
develop it).
This sanitizes our environment variables so code-server does not always
think it is a child spawn.

Fixes coder#4519.
@code-asher code-asher requested a review from a team as a code owner December 7, 2021 22:38
@codecov
Copy link

codecov bot commented Dec 7, 2021

Codecov Report

Merging #4590 (806489d) into main (c3eb9b8) will increase coverage by 0.27%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4590      +/-   ##
==========================================
+ Coverage   65.52%   65.80%   +0.27%     
==========================================
  Files          30       30              
  Lines        1665     1658       -7     
  Branches      334      333       -1     
==========================================
  Hits         1091     1091              
+ Misses        485      479       -6     
+ Partials       89       88       -1     
Impacted Files Coverage Δ
src/node/entry.ts 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c3eb9b8...806489d. Read the comment docs.

Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

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

Woo!

@code-asher code-asher merged commit 9d9f3a4 into coder:main Dec 8, 2021
@code-asher code-asher deleted the fix-spawn branch December 8, 2021 00:21
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.

code-server spawned within code-server inherits plugin paths of parent code-server when it should not
2 participants