monaco editor - TypeScript vs JavaScript Language Service -
the monaco editor has both javascript , typescript language service, based on research , playing have done both use same worker , virtually same thing.
what differences these 2 "language" services provide. appears typescript code works fine in javascript service , of course javascript works fine in typescript language mode.
through lot of tests; appear same service, have 2 separate configurations. can confirm exact same service 2 separate configurations; or there deeper in language service i'm missing.
the purpose question have lot of typing's want load editor; user using js or ts, , if same engine; i'll put editor ts mode js or ts files eliminate massive memory adding duplicate typing's both engines entail
yes, same - see https://github.com/microsoft/monaco-typescript/blob/master/src/monaco.contribution.ts
personally add them both. since monaco targeted desktops - i'd memory less problem having js being ts - @ least have make sure the ts js on acceptable es "level".
Comments
Post a Comment