Language Service issues with Lua extension update to VS 2022

David Guy 0 Reputation points
2024-08-14T14:44:40.99+00:00

Hello,

I am currently experiencing issues with a Language Service extension that I updated from Visual Studio 2019 to Visual Studio 2022. The extension, that we maintain internally, adds support for Lua programming language, and includes setting up font colors and integrating a Lua debugger in the IDE. Since the update, the font colors are not working properly, and I am noticing some unexpected behavior. When installing a new version of the extension, the font colors are not consistent for the first one or two times the IDE is launched. The font colors will eventually work after a few restarts of the IDE, but the problem resurfaces with each update.

One user is experiencing this issue with more consistency than anyone else, since the issue happens to them on every restart of their PC, and cleaning the component cache seems to solves it until their next PC restart: AppData\Local\Microsoft\VisualStudio\17.0_1339d46f\ComponentModelCache.

Additionally, after an extension update, the C++ codes are sometimes using some of the Lua colors, for example on the string and some keywords. However, our language service is only registered for three specific file extensions, and .cpp is not one of them. This will also fixes itself after the IDE is restarted a few time.

I would appreciate any help you can provide to understand those issues.
Thank you, David Guy

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
212 questions
0 comments No comments
{count} votes

Your answer

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