I've recently been immersed in a typescript project using Visual Studio Code. Our project relies on an older version of typescript (1.8.10), which has been working seamlessly so far thanks to having the appropriate ts compiler package installed locally. Whenever needed, I could easily switch back to version 1.8.10 by clicking on the status bar in vscode.
However, this morning, a slip-up led me to use a keyword from version 2.x, causing VSCode to automatically transition to version 2.8. After realizing my mistake, I promptly reverted the code change.
Here's where I'm stuck - despite wanting to go back to version 1.8, VS Code simply won't allow it. Clicking on the typescript version in the status bar only presents me with v2.8.3, and manually inputting 1.8.10 yields no results.
It seems there might be a configuration somewhere that's preventing me from switching back, but I'm unable to locate it. I double-checked our package.json file and verified that the 1.8.10 compiler is still specified in the devDependencies section.
While I understand that I can still compile using 1.8, the tools and syntax guides in vscode have now shifted to 2.8. Can anyone advise me on how to rectify this situation?