Skip to content

Commit b9511fd

Browse files
committed
update for feedback
1 parent 2060877 commit b9511fd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/guides/vscode.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,11 @@ The VSCode extension is based on a [language server](https://en.wikipedia.org/wi
155155

156156
If you have environment variables that are needed by the context and the language server, you can use one of these approaches to pass variables to the language server:
157157

158-
- Open VSCode from a terminal that has the variables set (e.g. `.zshrc` or `.bashrc`). This will automatically be picked up by the language server only if you have `export ENV_VAR=value` in your shell configuration file when initializing the terminal.
159-
- Use environment variables pulled from somewhere else dynamically (e.g. a `.env` file) in your root project directory. This will automatically be picked up by the language server.
158+
- Open VSCode from a terminal that has the variables set already.
159+
- If you have `export ENV_VAR=value` in your shell configuration file (e.g. `.zshrc` or `.bashrc`) when initializing the terminal by default, the variables will be picked up by the language server if opened from that terminal.
160+
- Use environment variables pulled from somewhere else dynamically (e.g. a `.env` file) in your root project directory. This will automatically be picked up by the language server through the python environment that the extension uses.
160161
- Set the environment variables in the python environment that the extension uses. You can find detailed instructions [here](https://code.visualstudio.com/docs/python/environments#_environment-variables)
161162

162-
#### Troubleshooting Environment Variables
163-
164163
You can verify that the environment variables are being passed to the language server by printing them in your terminal.
165164

166165
1. `Cmd +Shift + P` (`Ctrl + Shift + P` in case of Windows) to start the VSCode command bar
@@ -180,7 +179,7 @@ If you change your environment variables in the terminal during development(e.g.
180179
181180
3. Print the environment variables based on the instructions above to verify the changes have taken effect.
182181

183-
### Python environment troubleshooting
182+
### Python environment issues
184183

185184
The most common problem is the extension not using the correct Python interpreter.
186185

0 commit comments

Comments
 (0)