Relative Content

Tag Archive for c#visual-studiovsix

Setting Language Service in Custom Editor not working

Right now I have implemented my own custom editor and is configured so that when I open up any .cs file, VS will display the file using my editor. However, the text is bland and has no coloring to it. Therefore, I am trying to make the file appear as a .cs file in the traditional VS code editor. I believe the way to achieve this is by setting the language service for the text buffer. The result of the SetLanguageServiceID is 0 so it is called correctly but I am not sure why this is not working. Here is my implemented editor factory: