You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I experienced that typescript's ts-config is somehow very difficult to debug - and I spend some nights to get understand how the resolution thing works. This is however typescript related, but what can do vscode better?
Current very serious problems:
I don't know which tsconfig file was used for the workspace - especially if you have nested packages - even if it is always the root one - It must be explicitly showed somewhere
I learn a lot about type acquisition - but I never know what it acquire. It were very helpful if vscode could provide the list of acquired files. I don't know until now how it exactly, and to be honest I have no clue how I can figure this out. Somewhere I read about the "global.d.ts" to include - It never worked - only the node_modules/@types folder was affected.
When I experiment with the tsconfig I never know what's the typescript server is doing after a change. Sometimes it reloads sometimes not or after an unknown time. Because this is the case, it breaks me my last leg to at least get a clue how my config changes affects
Show failed lookup path for not found modules - How I said at the beginning it is very difficult to debug the module/type resolution part, the only information I get is "module not found" - it were so much better if at least the failedLookup list were showed in the problem entry - it would at least give me a clue if I'm on the right road
Please, please improve at least some those things, It's just so much time I waste until now to just get my project work. (I use a complex webpack configuration with ts-code, however I don't mention here any webpack related things, they are general issues)
Appendix
The only help from vscode I currently seen was:
Sometimes. Very rarely. I never know when (after a restart and waiting a minute or so). I got this little error marker there if I add a not existing file property array (not tested with other config props). It hint's that the "notexists" file not exists. This is correct, but how I said, I never know when it's appear and when it's appear It's very small to recognise it.
The text was updated successfully, but these errors were encountered:
aight8
changed the title
Feature Request: Show failed lookup path for not found modules
Feature Request: Show failed lookup path for not found modules & more
Mar 22, 2017
Thanks for the detailed report. It would be more helpful if you break this into separate issues in the future though.
Here are some thoughts on the problems listed:
Try running the Go to Project Configuration command in a ts or js file. This will jump to the file's tsconfig.json or jsconfig.json. I tried exposing this info in the status bar at one point but we found it added too much visual clutter. We're still trying to sort out a general "Language Status" UI where this type of information would better fit.
Ideally, when working with js, you should never have to worry specifically about which typings have been acquired for a project, only if all the available typings have been acquired. We do show a message in the status bar if typings acquisition fails, but this is currently a binary success/failure message. We are tracking improved ATA messaging with: Add Error Message To EndInstallTypesEvent on Failure TypeScript#14447
I can take a look what may be going wrong here. Please open a new bug for tracking this. Include repo steps and a sample tsconfig.json.
Do you mean improvising error messages for code such as import * as _ from 'no_such_module'? It would help if you split this out to its own issue as well and provide a small example project, along with a description of how the error message could be improved
We're tracking improving the error locations in tsconfig.json files microsoft/TypeScript#10384 It sounds like the tsconfig.json update problem you describe is also related to your third point about the config file not being refreshed
Closing we need more info to investigate the remaining issues here. Please consider splitting this issue into separate bugs so we can better track followup on the individual pieces
This is a feature request
I experienced that typescript's ts-config is somehow very difficult to debug - and I spend some nights to get understand how the resolution thing works. This is however typescript related, but what can do vscode better?
Current very serious problems:
Please, please improve at least some those things, It's just so much time I waste until now to just get my project work. (I use a complex webpack configuration with ts-code, however I don't mention here any webpack related things, they are general issues)
Appendix

The only help from vscode I currently seen was:
Sometimes. Very rarely. I never know when (after a restart and waiting a minute or so). I got this little error marker there if I add a not existing file property array (not tested with other config props). It hint's that the "notexists" file not exists. This is correct, but how I said, I never know when it's appear and when it's appear It's very small to recognise it.
The text was updated successfully, but these errors were encountered: