DonJayamanne / typescript-notebook

Run JavaScript and TypeScript in node.js within VS Code notebooks with excellent support for debugging, tensorflowjs visulizations, plotly, danfojs, etc
https://marketplace.visualstudio.com/items?itemName=donjayamanne.typescript-notebook
MIT License
904 stars 39 forks source link

Problem with types in TypeScript #57

Open lentryd opened 2 years ago

lentryd commented 2 years ago

At the time of editing, the types are displayed incorrectly, although everything is correct when compiling. Tell me, what could be the problem and what is needed to solve it?

image

NodeJs version: v16.13.0 VSCode version: 1.66.0 Extension version: v2.0.6

ermsdev commented 2 years ago

I'm also seeing this. It seems like the editor can't follow references between cells. The same thing happens for JavaScript cells, but not for Python cells. In Python cells you can "go to definition" even if the definition is in another cell.

ermsdev commented 2 years ago

I think it's probably a vscode thing. There's a jupyter.variableQueries property you can set in your vscode settings.json, but i haven't quite figured it out just yet.

https://github.com/microsoft/vscode-jupyter/issues/5264

samuelstroschein commented 1 year ago

Workaround described in https://github.com/DonJayamanne/typescript-notebook/issues/74#issuecomment-1229406059