Using JSDoc and type script declaration files for Javascript project without jsconfig.json

Zachary Keim 21 Reputation points
2023-06-14T12:44:05.2633333+00:00

Hello,

I am using version 17.2.6 of visual studio. Some of my co-workers that work on the same project as me updated to 17.3. Once they updated none of the intellisense worked anymore and VS acts as though it can't find any of the functions or global variables in separate files. Reading the update for 17.3 it seems JSConfig.json became mandatory. I have tried about a dozen separate times since then to create a JSConfig file that works for my project and every time I can't get it work correctly (as it does w/o one in 17.2.6). Is there a setting in the newer versions of VS to not have the JSConfig file be mandatory?

I have understood that the change was made for a speed improvement, which we had no problem with the previous speed. Until I get this figured out we can't update VS anymore, which will probably eventually be a big problem.

Anyone? Thoughts?

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Tianyu Sun-MSFT 34,691 Reputation points Microsoft External Staff
    2023-06-15T02:49:58.3733333+00:00

    Hello @Zachary Keim ,

    Welcome to Microsoft Q&A forum.

    Yes, by default, a tsconfig.json or jsconfig.json file is needed in VS 2022 17.3 for JavaScript or TypeScript IntelliSense. See this similar thread.

    Please try to uncheck Tools => Options => Text Editor => JavaScript/TypeScript => Project => General => Ignore Source Files from Visual Studio Projects (requires solution reload) => restart VS and reopen your solution.

    User's image

    Have a great day.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.