itwinjs-core icon indicating copy to clipboard operation
itwinjs-core copied to clipboard

ES/TSLint integration - error after restarting server in vscode

Open ben-polinsky opened this issue 1 year ago • 1 comments

Reproduction:

  • Open the itwinjs-core library in vscode.
  • Open a typescript file under core/common.
  • Restart the eslint server (Open command palette and type/select "restart eslint server")
  • Wait for server to restart. Note error on first character of file: image

The issue is not restricted to core/common files, but was easily reproduced easily for files in that package.

Fiddling with the inherited eslint.config.base.js seems to help, but no concrete fix yet.

ben-polinsky avatar Apr 02 '24 17:04 ben-polinsky

An open and close of the file in question seems to fix the issue... I'll keep this open while I investigate more. I've seen the error at other times, but paid it no mind. As @anmolshres98 has observed, eslint cli works fine.

ben-polinsky avatar Apr 02 '24 18:04 ben-polinsky