mxsdev / ts-type-explorer

VSCode Extension & utilities for exploring TypeScript type information
https://marketplace.visualstudio.com/items?itemName=mxsdev.typescript-explorer&ssr=false
159 stars 4 forks source link

Don't activate before view is opened #32

Open zardoy opened 1 year ago

zardoy commented 1 year ago

Hi! I noticed that extension makes ts requests before view is opened, which I don't really like.

I noticed that extension has these activation events:

onLanguage:typescript
onLanguage:javascript
onLanguage:typescriptreact
onLanguage:javascriptreact

But why they needed?

I think you can either remove these activation events or make view initialize lazily by using treeDataProvider.onLoad callback eg.