Skip to content

Improve Codespaces + C# extension interaction #33614

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
"ms-dotnettools.csharp"
],

"settings": {
// Loading projects on demand is better for larger codebases
"omnisharp.enableMsBuildLoadProjectsOnDemand": true
},

// Use 'postCreateCommand' to run commands after the container is created.
"onCreateCommand": "bash -i ${containerWorkspaceFolder}/.devcontainer/scripts/container-creation.sh",

Expand Down
4 changes: 3 additions & 1 deletion .devcontainer/scripts/container-creation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ set -e
# the repo directory on the container so we do this post-create
git submodule update --init --recursive
# Install SDK and tool dependencies before container starts
./eng/build.sh --only-build-repo-tasks
# Also run the full restore on the repo so that go-to definition
# and other language features will be available in C# files
./restore.sh