0.14.1
Support for multiple root folders (#1070)
VS Code is releasing support for opening multiple folders in the same window starting with the 1.18 stable build (Insiders had access to this feature sooner). In version 0.14.1 we have support for this feature working, but the following issues may be encountered:
- Opening parent/child folders may not produce correct results. For example, if folder
B
is a subfolder ofA
and bothA
andB
have been opened in VS Code, incorrect behavior may be noticed when files under folderB
are opened since the extension must pick one of the two folders to "own" the files underB
. We currently pick the folder that was opened first, so keep that in mind if you set up your multi-root workspace this way. - When a multi-root workspace is open (e.g. 2 or more folders have been opened), the default storage location for the code browsing database changes. VS Code has not yet provided an API to allow us to reuse the folder's previous storage location so you will notice that the extension will re-index your folders if you did not supply a
browse.databaseFilename
in your c_cpp_properties.json file. However, we will only index one folder at a time so as not to consume all of your CPU resources. The "active" folder (the owner of the currently focused file) will be given permission to index and the others will be paused until they become active. - Multi-root workspaces have a new layer to which settings can be applied. The settings should apply to all folders opened in the workspace, but we are still investigating an issue related to this. For the time being, the extension only respects "User" and "per-folder" settings when a multi-root workspace is open.
Other notable changes/bug fixes
We have fixed our issues with the extension holding a lock on file handles preventing users from saving their edited files. microsoft/vscode#27329, #1040
We have added commands that allow users to pause and resume the thread that indexes all of your folder's files (for code browsing/navigation). They are available in VS Code's command palette or by clicking on the database icon in the lower right corner of the status bar. #1141
You should no longer get a second "reload window" prompt when installing/updating the extension unless you have a launch.json file active.