Auto-imports from builder-util-runtime · Issue #38176 · microsoft/TypeScript (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@s4m0r4m4

Description

@s4m0r4m4

Hello, thank you for your help! Here's my setup:
Version: 1.43.2 (user setup)
Commit: 0ba0ca52957102ca3527cf479571617f0de6ed50
Date: 2020-03-24T07:38:38.248Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.14393

Steps to Reproduce:

  1. Make a slim new angular project: ng new <name> --skip-git --minimal . This will setup the angular folder structure and run npm install on its own
  2. Install electron-builder: npm install electron-builder. This will also install an npm package called builder-util-runtime, which exports a class called GenericServerOptions
  3. In app.component.ts (or any .ts file for that matter), try to create a variable and type it as GenericServerOptions: let a: GenericServerOptions;
  4. VS code does not produce auto-import suggestions while I'm typing "GenericServerOptions" (which I would like it to), nor any other exports from that library.
  5. After I finish typing, VS code (rightly) red underlines "GenericServerOptions" with an error message "Cannot find name ....". When I do "Ctrl+." on that erorr, there are no code actions available.
  6. Auto-imports and code fixes work for libraries like rxjs, but not for other libraries like electron-builder.

Does this issue occur when all extensions are disabled?: Yes sir