From 544823b656025d7abe68e1abdea7ab312a004308 Mon Sep 17 00:00:00 2001 From: Matthew Wang <53355975+mslwang@users.noreply.github.com> Date: Fri, 15 Nov 2024 01:41:33 +0100 Subject: [PATCH] [LLSC-38] Add extensions recs and settings json to backend folder (#8) ## Notion ticket link [Add VSCode settings json to backend](https://www.notion.so/uwblueprintexecs/Add-settings-json-for-backend-13810f3fb1dc8060a82df344193e98ef?pvs=4) ## Implementation description Adding settings json for people who work predominantly in the backend folder, ie. their workspace is `/backend`. The language server isn't able to pick up the python executable in `.venv` on `/backend` within this json file without having it included in `/backend`. ## Steps to test 1. Go to VSCode and open the project from `/backend`. 2. Check if the interpreter is set to `.venv/bin/python` and you're able to see autocomplete and hover text and signature information. ## Checklist - [x] My PR name is descriptive and in imperative tense - [x] My commit messages are descriptive and in imperative tense. My commits are atomic and trivial commits are squashed or fixup'd into non-trivial commits - [x] I have run the appropriate linter(s) - [x] I have requested a review from the PL, as well as other devs who have background knowledge on this PR or who will be building on top of this PR --- backend/.vscode/extensions.json | 7 +++++++ backend/.vscode/settings.json | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 backend/.vscode/extensions.json create mode 100644 backend/.vscode/settings.json diff --git a/backend/.vscode/extensions.json b/backend/.vscode/extensions.json new file mode 100644 index 0000000..fddbd2f --- /dev/null +++ b/backend/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "charliermarsh.ruff", + "njpwerner.autodocstring", + "ckolkman.vscode-postgres" + ] +} diff --git a/backend/.vscode/settings.json b/backend/.vscode/settings.json new file mode 100644 index 0000000..c1a0cb2 --- /dev/null +++ b/backend/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python" +}