Subscribe on changes!

@ts-ignore doesn't work on the first line

avatar
Jun 23rd 2023

Vue version

3.3.4

Link to minimal reproduction

https://play.vuejs.org/#eNqNj7FuwzAMRH+F1eIWiC2k6WQ4Qbr1D7pocWImcWFRAkW7g+F/L+0URZAuGe/I4+ON5j3GYujRlKZKR26jQELpI3Q1nbfOSHJm56j1MbDACIwnmODEwUOmscyRtbCXlLdnCoyOOhSoS+r9ARm24Mz6deOMo2OgJODTWU098px9YNcF+AzcNU/Zi6PKXvlKUyHoY1cLqgKoLuvdOC7haaqsqsVtKfYCQ+5Dg53+qvPl2cr+pc3KXF/PfR2LrxRIi45z2v0OtF8JizN7WmnWzlxEYiqtPTakMb3fDlwQiqXo7V7XLPckrce8CX6/KTbFm23aJLd2gcnnBw7fCVmPOLO6wVg1B+SckRpk5Eexd7Fb9N3oH36mT44mM/0AU2Os9Q==

Steps to reproduce

  • Put the // @ts-ignore on the top of the script.
  • TypeScript still checks the row between it.

What is expected?

It should work even put it on the top of the script. I ended up swapping the code line so it wasn't at the top and it worked.

What is actually happening?

This made me have to unnecessarily change the code order.

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900H
    Memory: 5.51 GB / 15.67 GB
  Binaries:
    Node: 18.15.0 - ~\App\Node\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 9.2.0 - ~\App\Node\npm.CMD
  Browsers:
    Chrome: bookmarks.html
initial_preferences
    Edge: Spartan (44.22621.1848.0), Chromium (114.0.1823.51)
    Internet Explorer: 11.0.22621.1

Any additional comments?

No response

avatar
Jun 26th 2023

I think this should be a problem with language-tools

avatar
Jun 26th 2023

Caused by Volar?

avatar
Jun 26th 2023

Maybe yes, you know that there have been many updates to vue's repl recently, which uses monaco-valor. I tried in monaco everything works fine and in monaco-valor have the same problem

avatar
Jun 26th 2023

It also cannot pass vue-tsc type check. Does vue-tsc also belong to language-tools?