Skip to content

Support ~/ paths for typescript.tsdk #64253

@smlombardi

Description

@smlombardi

Issue Type: Bug

I am getting an error in the workspace:

The path /Users/st016lo/github/angular-material-test/~/.nvm/versions/node/v10.1.0/lib/node_modules doesn't point to a valid tsserver install. Falling back to bundled TypeScript version.

The first part of the error path is the project in question: /Users/st016lo/github/angular-material-test/ Not sure why this is being appended to what I put in my user settings.

My global version of Typescript is installed at
/Users/st016lo/.nvm/versions/node/v10.1.0/lib/node_modules

Wherein /Users/st016lo is my home directory. I don't want to use the absolute path as I synchronize settings with another mac with a different home folder name and want this to work on both.

I have added this to my settings.json:

  "typescript.tsdk": "~/.nvm/versions/node/v10.1.0/lib/node_modules",

What am I missing here?

VS Code version: Code - Insiders 1.30.0-insider (9e62a05, 2018-12-03T06:12:08.874Z)
OS version: Darwin x64 18.2.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 2800)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 3, 3
Memory (System) 16.00GB (0.56GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (34)
Extension Author (truncated) Version
better-comments aar 2.0.3
vscode-svgo ajh 0.1.0
Bookmarks ale 10.0.0
project-manager ale 10.0.0
ACF-Snippet ant 1.9.0
bracket-pair-colorizer Coe 1.0.61
vscode-eslint dba 1.7.0
tslint eg2 1.0.40
vscode-npm-script eg2 0.3.5
vscode-great-icons emm 2.1.45
prettier-vscode esb 1.7.2
auto-rename-tag for 0.0.15
path-autocomplete ion 1.13.1
svg joc 0.1.4
ecdc mit 0.12.0
HTMLHint mka 0.5.0
theme-monokai-pro-vscode mon 1.1.9
vscode-scss mrm 0.6.2
vscode-stylefmt mrm 2.5.0
debugger-for-chrome msj 4.11.1
angular2-inline nat 0.0.17
incrementor nms 0.1.0
vscode-html-scss P-d 0.0.42
vscode-versionlens pfl 0.22.0
polacode pnp 0.2.2
quicktype qui 12.0.46
LiveServer rit 5.3.1
code-settings-sync Sha 3.2.2
stylelint shi 0.47.0
rewrap stk 1.9.1
ayu tea 0.17.0
sort-lines Tyr 1.7.0
vscode-terminal-here Tyr 0.1.1
change-case wma 1.0.0

(3 theme extensions excluded)

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesjavascriptJavaScript support issuestypescriptTypescript support issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions