Skip to content

Commit 25d4b08

Browse files
committed
final touches
1 parent 0802a75 commit 25d4b08

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/guides/vscode.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,12 @@ Therefore, we do not recommend using DuckDB as a state store with the VSCode ext
151151

152152
### Environment variables
153153

154-
The VSCode extension is based on a [language server](https://en.wikipedia.org/wiki/Language_Server_Protocol), which runs in the background as a separate process. When the VSCode extension starts the background language server, the server inherits variables from the environment you started VSCode in. Your VSCode instance may have a terminal instance open inside it - the language server does *not* inherit environment variables from the terminal instance in VSCode. It does not inherit variables you use when you call SQLMesh from the CLI.
154+
The VSCode extension is based on a [language server](https://en.wikipedia.org/wiki/Language_Server_Protocol) that runs in the background as a separate process. When the VSCode extension starts the background language server, the server inherits environment variables from the environment where you started VSCode. The server does *not* inherit environment variables from your terminal instance in VSCode, so it may not have access to variables you use when calling SQLMesh from the CLI.
155155

156-
If you have other environment variables that are needed by the context and the language server, you can use one of these approaches to inject them into the language server:
156+
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
159-
- Use environment variables pulled from somewhere else (e.g. a `.env` file)
158+
- Open VSCode from a terminal that has the variables set
159+
- Use environment variables pulled from somewhere else dynamically (e.g. a `.env` file) in your config
160160
- 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)
161161

162162
### Python environment woes

0 commit comments

Comments
 (0)