Skip to content

Commit 590ccaf

Browse files
authored
Merge pull request microsoft#80529 from navrkald/prompt_code_inside_wsl
Skip WLS check if env var DONT_PROMPT_WSL_INSTALL is set.
2 parents afffb1e + d2dd59c commit 590ccaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/linux/bin/code.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Licensed under the MIT License. See License.txt in the project root for license information.
55

66
# test that VSCode wasn't installed inside WSL
7-
if grep -qi Microsoft /proc/version; then
7+
if grep -qi Microsoft /proc/version && [ -z "$DONT_PROMPT_WSL_INSTALL" ]; then
88
echo "To use VS Code with the Windows Subsystem for Linux, please install VS Code in Windows and uninstall the Linux version in WSL. You can then use the '@@PRODNAME@@' command in a WSL terminal just as you would in a normal command prompt." 1>&2
99
read -e -p "Do you want to continue anyways ? [y/N] " YN
1010

0 commit comments

Comments
 (0)