question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multi Root Workspace Support

See original GitHub issue

Environment data

dotnet --info output:

.NET Command Line Tools (2.0.2)

Product Information:
 Version:            2.0.2
 Commit SHA-1 hash:  a04b4bf512

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.15063
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.0.2\

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.0
  Build    : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

VS Code version: 1.18.1 C# Extension version: 1.13.1

Steps to reproduce

In open project, right-click open folder. Click add folder to workspace, then select a different C# project.

Expected behavior

Both folders will show intellisense, reference counters, have working goto definition, etc.

Actual behavior

The extension only seems to work with the first folder/project in the workspace. All other folders/projects have no reference counter, cannot detect code errors, and when clicking goto definition, it prompts that no definition was found.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:28
  • Comments:37 (8 by maintainers)

github_iconTop GitHub Comments

23reactions
DustinCampbellcommented, Nov 27, 2017

Hi @AlexLeung, you can click the project selector at the bottom-right of the status bar in VS Code to pick a different project to launch OmniSharp on.

image

The project picker already has Multi-Root Workspace support.

image

We’re using https://github.com/OmniSharp/omnisharp-roslyn/issues/909 to track future improvements to allow OmniSharp itself to discover projects in more than one root folder.

17reactions
JeremyCaroncommented, Apr 30, 2021

PLEASE prioritize fixing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multi-root Workspaces in Visual Studio Code
With multi-root workspaces, there is a SOURCE CONTROL PROVIDERS section that gives you an overview when you have multiple active repositories. These can...
Read more >
Adopting Multi Root Workspace APIs · microsoft/vscode Wiki
A multi-root workspace is a new way how to work with Visual Studio Code. At its core, it allows opening multiple folders in...
Read more >
VSCode Multi-root Workspaces - Kevin Boosten
A Visual Studio Code “workspace” is the collection of one or more folders that are opened in a VS Code window (instance).
Read more >
Visual Studio Code tips for monorepo development with Multi ...
A multi-root workspace is a feature in Visual Studio Code where you can have multiple root folders in one explorer view.
Read more >
Work with multiple AL project folders within one workspace
Visual Studio Code offers the multi-root workspace feature, which enables grouping different project folders into one workspace.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found