IssueRaiser

Support variables when resolving values in settings

Hi, I was just reading the [latest updates](https://code.visualstudio.com/updates) and it says one can install `typescript@next` globally and then set `typescript.tsdk` so VS Code can use the appropriate version/installation. In a team environment, I'd like to put that setting in our project, something like: `.vscode/settings.json`: ``` json { "typescript.tsdk": "%APPDATA%/npm/node_modules/typescript/lib" } ``` The problem is restarting VS Code results in an error: ``` The path c:\Projects\Derp\%APPDATA%\npm\node_modules\typescript\lib doesn't point to a valid tsserver install. TypeScript language features will be disabled. ``` Now the setting needs to be per-person because I highly doubt my teammates have `tsc` installed in `C:\Users\Olson\AppData\Roaming\npm\node_modules\typescript\lib` :wink: Could we get environment variables evaluated on that and all other settings that involve paths? I haven't tested other paths, but I see these in the Default Settings: - `git.path` - `markdown.styles` - `json.schemas` - `typescript.tsdk` - `php.validate.executablePath`

Posted by OlsonDev on Feb 9, 2016, 1:18 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.5,000 issues0 comments

support (Other)

Support variables when resolving values in settings

OlsonDevFeb 9, 2016, 1:18 AM

Hi, I was just reading the [latest updates](https://code.visualstudio.com/updates) and it says one can install `typescript@next` globally and then set `typescript.tsdk` so VS Code can use the appropriate version/installation. In a team environment, I'd like to put that setting in our project, something like: `.vscode/settings.json`: ``` json { "typescript.tsdk": "%APPDATA%/npm/node_modules/typescript/lib" } ``` The problem is restarting VS Code results in an error: ``` The path c:\Projects\Derp\%APPDATA%\npm\node_modules\typescript\lib doesn't point to a valid tsserver install. TypeScript language features will be disabled. ``` Now the setting needs to be per-person because I highly doubt my teammates have `tsc` installed in `C:\Users\Olson\AppData\Roaming\npm\node_modules\typescript\lib` :wink: Could we get environment variables evaluated on that and all other settings that involve paths? I haven't tested other paths, but I see these in the Default Settings: - `git.path` - `markdown.styles` - `json.schemas` - `typescript.tsdk` - `php.validate.executablePath`

Comments (0)

No comments yet. Start the discussion.

Comment on this issue