Skip to content

Conversation

albert0ly
Copy link

Overview:

This PR introduces support for developing and debugging the solution using Visual Studio Code, while maintaining full compatibility with Visual Studio 2022. As the developer landscape shifts toward lighter editors, VS Code has become increasingly popular—particularly for its rich ecosystem of AI-powered extensions that are not available in Visual Studio.

Motivation:

My primary motivation for adding VS Code support is the availability of advanced AI tools that significantly enhance development productivity. These tools are not currently supported in Visual Studio, making VS Code a more appealing choice for modern development workflows.

Main Changes:

VS Code Configuration Files Added:

launch.json: Enables running and debugging projects directly in VS Code.

tasks.json: Defines tasks to build and run the projects efficiently within VS Code.

Automatic Browser Launch (for Web Projects):

VS Code requires a different approach to open a browser upon project startup.

It listens to the terminal for the log output string:

"Now listening on: https://localhost:XXXX"

To support this, Serilog has been configured to ensure this output is correctly emitted during application startup.

With these additions, developers can now choose to work with either Visual Studio 2022 or Visual Studio Code without any extra configuration.

P.S. Runs 2 projects "IdentityServer" (Skoruba.Duende.IdentityServer.STS.Identity) and "IdentityServerAdmin" (Skoruba.Duende.IdentityServer.Admin)

albert0ly added 2 commits May 14, 2025 13:36
VS Code looks for pattern "Now listening on" in terminal output.
Make sure that serilog makes output to terminal
@albert0ly albert0ly changed the title Add Support for Visual Studio Code Add support for Visual Studio Code May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant