Apologies if I've missed documentation for this, I did look but didn't find anything, and there are vanishingly few examples of language servers combined with ts-patch.
I noticed that ts-patch tries to load commonjs plugins that follow the format export default function, and the typescript language server plugins try to load commonjs plugins that follow the format export = function.
As such, I tried this as the entry point file:
Apologies if I've missed documentation for this, I did look but didn't find anything, and there are vanishingly few examples of language servers combined with ts-patch.
This is what I want to be able to do:
I noticed that ts-patch tries to load commonjs plugins that follow the format
export default function
, and the typescript language server plugins try to load commonjs plugins that follow the formatexport = function
. As such, I tried this as the entry point file:But it doesn't work because ts-patch's
plugin.ts
wraps all commonjs export functions in{ default: }
viaHowever, it works fine if I manually patch that line on my end to instead be
Could this be changed, or if you don't want this maybe could there be a path option for a custom entry point in
PluginPackageConfig
?