orta / TypeScript-TSServer-Plugin-Template

51 stars 15 forks source link

Simplified proxy creation using prototypal inheritance #5

Open kronodeus opened 8 months ago

kronodeus commented 8 months ago

Figured it wouldn't hurt to cut down on boilerplate. Should be functionally equivalent.

j4k0xb commented 2 months ago

this crashes for me:

[error] Error: TypeScript Server Error (5.4.5) this.languageService.getCurrentProgram is not a function TypeError: this.languageService.getCurrentProgram is not a function at ConfiguredProject2.updateGraphWorker (node_modules/typescript/lib/tsserver.js:179505:45)

but const proxy = { ...info.languageService }; works