-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxied types are not loaded. #26921
Comments
The issue appears to be that that Adding a |
I don't like TypeScript, I don't think it solves any problems because JS is a duck typed language and using JSDoc with a proper IDE like VS Code which can understand ALSO the |
TypeScript powers both VS Code's javascript and typescript intellisense. It is what analyzes jsdocs I recommend that you try writing |
Thanks but I explained that I will never write a typings file, I am more than happy with JSDoc and not being part of the whole TS movement. Maybe it's hard to understand but there're true JS fans out there. And why do you think it's a much better experience when experience is literally the same when proper JSDoc is written? Like honestly could you give me an example of "better experience"? Before |
@RyanCavanaugh This is not what it supposed to be showing, the signature of the In the end when import idioCore from '@idio/core'
const Server = async () => {
const { url } = await idioCore()
console.log(url)
} It's dodgy because the type for And it also works in the project directory, with the |
CAN YOU FIX THIS PLEASE IT IS THE MOST ANNOYING BUG EVER STEPS TO REPRODUCE
This is VS Code This is VS Code Insiders In Code at least I get a Router (without Middleware, but with Application coming up weirdly), in Insiders I don't get neither router nor middleware because of #27302! It's a disaster! |
@weswigham OK thanks very much for testing, can you basically make sure that |
@weswigham @RyanCavanaugh I beg you can you make this work it's making all the efforts of writing documentation worthless look it happens everywhere after 1 level of require:
I believe Microsoft should show respect to people who write in JS and choose JSDoc as their types engine without TypeScript. This is a really important bug but nobody's noticed it because everyone around choose to write types definitions. Well I don't want to do that it's not fair to treat me like an outcast and force to convert to TS! |
I haven't seen other reports of whatever this is, so either we've fixed it or it's rare enough to not warrant further investment. |
From @zavr-1 on September 4, 2018 3:46
Issue Type: Bug
When a package loads some modules via another module, their will lack Intellisense and it is not possible to click through to their definition.
VS Code version: Code - Insiders 1.27.0-insider (346018a, 2018-08-24T05:12:36.061Z)
OS version: Darwin x64 15.6.0
System Info
checker_imaging: disabled_off
flash_3d: unavailable_software
flash_stage3d: unavailable_software
flash_stage3d_baseline: unavailable_software
gpu_compositing: unavailable_software
multiple_raster_threads: disabled_off
native_gpu_memory_buffers: unavailable_software
rasterization: unavailable_software
video_decode: unavailable_software
video_encode: unavailable_software
webgl: unavailable_off
webgl2: unavailable_off
Extensions (2)
from file A
where
zoroaster/assert
is a proxy file (only hasmodule.exports = require(./build/assert)
) tozoroaster/build/assert
which has:// import assertThrows from 'assert-throws'
line. Now,throws
works fine.Whenever the proxy in form of
zoroaster/assert
is removed in favour ofzoroaster/build/assert
, then things work. I suppose I have toln
theassert
rather than usemodule.exports = require('./build/assert')
but it's still a bug.Copied from original issue: microsoft/vscode#57833
The text was updated successfully, but these errors were encountered: