Repository navigation
Trigger Node type acquisition on matching shebang #46278
Copy link
Copy link
Open
Labels
Domain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
Activity
- addedNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.
on Oct 11, 2021 Same issue here...
Version: 1.61.2 Commit: 6cba118ac49a1b88332f312a8f67186f7f3c1643 Date: 2021-10-19T15:49:28.381Z (1 wk ago) Electron: 13.5.1 Chrome: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Darwin x64 20.6.0- addedDuplicateAn existing issue was already createdAn existing issue was already createdand removedNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.
on Oct 29, 2021 andrewbranch commented
on Oct 29, 2021 MemberMore actionsDuplicate of #46521. We don't assume you want to reference Node typings until you do it once in a project. You can either install
@types/nodeor write your first import of a Node builtin by hand.Can't we automatically start intellisense for node, if env is set to node? I mean when files contain
#!/usr/bin/env node
? It already should tell, content of file contain node code, and activate intellisense for it?
andrewbranch commented
on Oct 29, 2021 MemberMore actionsYeah, that's a good suggestion.
- addedDomain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScriptand removedDuplicateAn existing issue was already createdAn existing issue was already created
on Oct 29, 2021 - changed the title
[-][JS] Autoimport doesn't work.[/-][+]Trigger Node type acquisition on matching shebang[/+]on Oct 29, 2021
Metadata
Metadata
Assignees
Labels
Domain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript
Version: 1.61.0
Commit: ee8c7def80afc00dd6e593ef12f37756d8f504ea
Date: 2021-10-07T18:11:02.929Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.11.0-37-generic
Steps to Reproduce:
npm init -y"type": "module"index.jsfilefsdoesn't sugget to import fs, so it doesn't addimport fs from 'fs'line.