Freelancer: YankeyKelvin
Chia sẻ:
Báo cáo bài thi

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

Bài tham dự #1

Bảng thông báo công khai

  • YankeyKelvin
    YankeyKelvin
    • cách đây 2 tháng

    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

    • cách đây 2 tháng
  • YankeyKelvin
    YankeyKelvin
    • cách đây 2 tháng

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

    • cách đây 2 tháng
  • YankeyKelvin
    YankeyKelvin
    • cách đây 2 tháng

    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

    • cách đây 2 tháng
  • damc4
    Chủ cuộc thi
    • cách đây 2 tháng

    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.

    • cách đây 2 tháng