Skip to content

New .ts files created in linked folders which are .gitignored - do not have intellisense #42839

@sweiss3

Description

@sweiss3

Issue Type: Bug
TS Template added by @mjbvz

TypeScript Version: 4.2.0-insiders.20210210

Search Terms

  • symlink
  • windows

  1. Create a TypeScript project
  2. Add a folder into a .gitignore
  3. Start VSCode
  4. Add a new .ts file into the previously mentioned folder

The new file won't have intellisense and it will not recognize any import statements to paths as configured in tsconfig.json.

Restarting VSCode and navigating back to the same file will get it to work properly.

VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:34:46.910Z)
OS version: Windows_NT x64 10.0.19042

System Info
Item Value
CPUs Intel(R) Core(TM) i9-10885H CPU @ 2.40GHz (16 x 2400)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 63.73GB (44.83GB free)
Process Argv C:\Rome-Defenders-Extension\ExtTemplate\..\workspace.code-workspace --crash-reporter-id 36147b9c-7d35-4c17-8dd9-d36495a17db2
Screen Reader no
VM 0%
Extensions (9)
Extension Author (truncated) Version
bracket-pair-colorizer Coe 1.0.61
vscode-eslint dba 2.1.14
make-hidden dev 3.0.3
gitlens eam 11.1.3
tslint eg2 1.0.44
powershell ms- 2020.6.0
autolaunch phi 2.0.3
code-spell-checker str 1.10.2
vscode-icons vsc 11.1.0

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30211402
vstry244cf:30250196
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30251590

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions