Freelancer: YankeyKelvin
Share:
Report Entry

Visual Studio Plugin Research

Good Day, the following submission contains details on how to get started building the plugin within a Markdown document. If you have any questions please don't hesitate to say

Public Clarification Board

  • YankeyKelvin
    YankeyKelvin
    • 3 months ago

    A potential work around could be to listen for changes to the window: https://docs.microsoft.com/en-us/dotnet/api/envdte.windowevents?view=visualstudiosdk-2022

    • 3 months ago
  • YankeyKelvin
    YankeyKelvin
    • 3 months ago

    There is a caveat listed there that the function might not fire if the solution is already opened in vs

    • 3 months ago
  • YankeyKelvin
    YankeyKelvin
    • 3 months ago

    Hi. This code example might provide help with that. So ideally, the code to connect to the websocket server would be in the handle open events function. https://github.com/microsoft/VSSDK-Extensibility-Samples/tree/master/SolutionLoadEvents

    • 3 months ago
  • damc4
    Contest Holder
    • 3 months ago

    Thank you. The entry is good, but I have an additional question:

    "For the first requirement, the Visual Studio Plugin environment does not seem to have any restrictions with regard to using the.NET Framework, thus it should be possible to create and manage a WebSocket connection using standard classes".

    Where would you suggest to hook it? In other words, where would the code that is responsible for establishing websocket connection be located? The websockets connection would need to start every time, when the user uses the IDE and the extension is enabled. How could that be achieved?

    I think the above is what I most likely would have a problem with when implementing an extension like that.

    • 3 months ago