Power-Playground / app

Code. Share. Empower.
https://pplay.vercel.app
MIT License
55 stars 12 forks source link

Bug: White page when switch ts version to 4.4.4 #34

Open NWYLZW opened 1 year ago

NWYLZW commented 1 year ago

image

nonzzz commented 1 year ago

Unfortunately, 4.4.4 may not have func addCommand. :(

image In my local devtool. I print it.

nonzzz commented 1 year ago

We need a polyfill to support it.

nonzzz commented 1 year ago

After my testing, versions lower than 4.9.5 will have problems. But the interesting thing is that it has the addcommand API but it is not exposed.

NWYLZW commented 1 year ago

After my testing, versions lower than 4.9.5 will have problems. But the interesting thing is that it has the addcommand API but it is not exposed.

VSCode team is so bad. So we don't need polyfill, just find a way to expose it?

nonzzz commented 1 year ago

yes. Just try expose it :(

nonzzz commented 1 year ago

I find a way. Look at image Notice the registerCommand function.

And then image