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

Test: legacy server in WSL #9690

Closed
1 task done
aeschli opened this issue Mar 22, 2024 · 1 comment
Closed
1 task done

Test: legacy server in WSL #9690

aeschli opened this issue Mar 22, 2024 · 1 comment
Assignees
Labels
testplan-item Test plan item/assignments for upcoming release wsl Issue in vscode-remote WSL
Milestone

Comments

@aeschli
Copy link
Contributor

aeschli commented Mar 22, 2024

Refs: microsoft/vscode#206790

Complexity: 4

Authors: @aeschli, @deepak1556

Create Issue


This milestone we have changed which server the extension downloads depending on the OS support, the following test plan is to ensure successful connection over the different scenarios

Prerequisite:

To install a new distro:

  • open the remote explorer, go to the WSL Targets tab
  • click on the + icon in the toolbar to install a new distro

If you already have these distros and want to create a second instance of a distro:

wsl --export Ubuntu-18.04 ubuntu18.tar
wsl --import Second-Ubuntu-18.04 .\SecondUbuntu18 ubuntu18.tar

Testing

For various distros try that these steps work

a. Starting a remote WSL window from the command line prompt:

  • Open a windows command prompt and type wsl -d Ubuntu-18.04
  • remove existing server installations: rm -r ~/.vscode-server-insiders/bin
  • start VS Code code-insiders .

This should install the server and start VS Code with a remote WSL window
If the OS is a legacy platform (Ubuntu 18.04), you will see two server downloads. First the normal server, then a compatibility check and then the legacy server.

  • close VS Code and try code-insiders . again

This should start VS Code with a remote WSL window, no download necessary

b. Starting a remote WSL window from the inside VS Code

  • Open a windows command prompt and type wsl -d Ubuntu-18.04

  • remove existing server installations: rm -r ~/.vscode-server-insiders/bin

  • open VS Code and invoke the Connect to WSL using Distro... command

  • This should should a progress dialog. It will install the server and start VS Code with a remote WSL window

  • If the OS is a legacy platform (Ubuntu 18.04), you will see two server downloads. First the normal server, then a compatibility check and then the legacy server.

  • close VS Code and try code-insiders . again

@aeschli aeschli added the testplan-item Test plan item/assignments for upcoming release label Mar 22, 2024
@aeschli aeschli added this to the March 2024 milestone Mar 22, 2024
@VSCodeTriageBot VSCodeTriageBot added the wsl Issue in vscode-remote WSL label Mar 22, 2024
@aeschli aeschli removed their assignment Mar 25, 2024
@joyceerhl
Copy link

Tested 18.04, 22,04, openSUSE-Leap-15.5, and Kali Linux.

@microsoft microsoft locked and limited conversation to collaborators May 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
testplan-item Test plan item/assignments for upcoming release wsl Issue in vscode-remote WSL
Projects
None yet
Development

No branches or pull requests

3 participants