You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Internally, XO uses cosmiconfig to load configuration files.
In the case a project is ESM and the xo.config.cjs or .xo-config.cjs is used, the configuration file will not be invalidated until the server process is restarted, this means that the server cannot invalidate a cjs config on its own, the client must restart the process in that case.
This problem cannot be solved on the server and will remain a bug for anyone using the server directly:
spence-s
changed the title
CJS configuration files in ESM projects cannot be cache busted on the server
[LSP Server] CJS configuration files in ESM projects cannot be cache busted on the server
Mar 1, 2024
spence-s
changed the title
[LSP Server] CJS configuration files in ESM projects cannot be cache busted on the server
[bug] [LSP Server] CJS configuration files in ESM projects cannot be cache busted on the server
Mar 2, 2024
Internally, XO uses cosmiconfig to load configuration files.
In the case a project is ESM and the xo.config.cjs or .xo-config.cjs is used, the configuration file will not be invalidated until the server process is restarted, this means that the server cannot invalidate a cjs config on its own, the client must restart the process in that case.
This problem cannot be solved on the server and will remain a bug for anyone using the server directly:
CJS configuration files in ESM projects do not freshly import
Invalidate cache when using import #49442](nodejs/node#49442)
VSCode extensions users will automatically restart the server process from the client as a work around.
The text was updated successfully, but these errors were encountered: