Skip to content

Commit 8f985b6

Browse files
authored
Update 86-fix-mypy-extension.sh
1 parent 251d883 commit 8f985b6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.devcontainer/install/86-fix-mypy-extension.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,16 @@ echo -e "${BLUE}#############################################################${E
1010

1111
echo -e "\n${GREEN}> Fix Mypy extension.${ENDCOLOR}\n"
1212

13-
ORIGINAL_FILE="$HOME/.vscode-server/extensions/ms-python.mypy-type-checker-2023.4.0/bundled/tool/lsp_server.py"
13+
ORIGINAL_FILE_1="$HOME/.vscode-server/extensions/ms-python.mypy-type-checker-2023.4.0/bundled/tool/lsp_server.py"
14+
ORIGINAL_FILE_2="$HOME/.vscode-server/extensions/ms-python.mypy-type-checker-2023.6.0/bundled/tool/lsp_server.py"
15+
16+
if [ -f "$ORIGINAL_FILE_1" ]; then
17+
$ORIGINAL_FILE=$ORIGINAL_FILE_1
18+
fi
19+
20+
if [ -f "$ORIGINAL_FILE_2" ]; then
21+
$ORIGINAL_FILE=$ORIGINAL_FILE_2
22+
fi
1423

1524
if [ -f "$ORIGINAL_FILE" ]; then
1625

0 commit comments

Comments
 (0)