around this issue I'm not sure about using the extension API, but you can do it via your user preferences file (which extensions must be able to modify because the "Vim" extension does it as mentioned in my comment above): File -> Preferences -> User Settings
// Place your settings in this file to overwrite the default settings
// Controls the cursor style, accepted values are 'block', 'line' and 'underline'
To fix this issue I finally got it... You just have to use the TextSelectioninterface where you have the method MoveToPoint.
// open the file in a VS code window and activate the pane
Window window = requestedItem.Open(Constants.vsViewKindCode);
// get the function element and show it
CodeElement function = CodeElementSearcher.GetFunction(requestedItem, myFunctionName);
// get the text of the document
TextSelection textSelection = window.Document.Selection as TextSelection;
// now set the cursor to the beginning of the function
How to debug code compiled with Roslyn in a Visual Studio extension inside current Visual Studio host?
I hope this helps you . According to the visual studio docs and especially to this picture it should be possible to migrate that language server to visual studio, too. However it is not possible to use the exact same extension for VS Code as well as for Visual Studio. At least you will have to change the Provider-specific intizialization code (see the picture) to make the server work for Visual Studio, too.
How to get the character to the left of cursor in Visual Studio Extension?
To fix the issue you can do I'm trying to get the character on the left of cursor. I've got the handler that intercepts the LineChanged event. , To get the character to the left of the EnvDTE.TextPoint: