Vscode-cpptools: Don't create browse database when the folder does not have C / C++ source files

Created on 15 Apr 2016  Â·  10Comments  Â·  Source: microsoft/vscode-cpptools

from Xaver Hellauer - Review comments on extension's market place page

One thing still needs to be fixed: In my opinion, the extension should not load and produce its helper files when non-C/C++ projects are open.

Language Service bug

All 10 comments

Fixed in 0.6 if extension

This issue seems to still exist in VS Code v1.2 for Ubuntu with v0.6.1 of the extension. Here are the repro steps:

git clone https://github.com/rndmem/sound-of-water
cd sound-of-water
code .

After exiting VS Code, git status shows:

On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
  (use "git add <file>..." to include in what will be committed)

    .vscode/.browse.VC.db

nothing added to commit but untracked files present (use "git add" to track)

The project has no C or C++ files and NPM dependencies aren't installed in this example.

find -iname \*.c -o -iname \*.cpp -o -iname \*.cxx

Is it possible to reopen this issue be or should should I file a new bug?

The fix will appear in the next release, version 0.8.0

Fixed! o/ Thank you!

I'm on 0.8.1 and these two files are still being created on a project (vscode extension project) that is not a C++ project.

I was just about to complain about this; but I think its actually the C# add-on that is doing it for me.

.BROWSE-VC.DB
.BROWSE-VC.DB-shm
.BROWSE-VC.DB-wal

I dunno. I uninstalled 0.8.1 of this extension and the problem went away.

I just looked at the source code. It was fixed, then looks like there was a regression recently. So what you said makes sense. I’ll fix it again for the next release.

From: Keith Hill [mailto:[email protected]]
Sent: Friday, August 12, 2016 3:18 PM
To: Microsoft/vscppsamples [email protected]
Cc: Justin Goshi [email protected]; State change [email protected]
Subject: Re: [Microsoft/vscppsamples] Don't create browse database when the folder does not have C / C++ source files (#6)

I dunno. I uninstalled 0.8.1 of this extension and the problem went away.

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/vscppsamples/issues/6#issuecomment-239593272, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ASk5nSIf-riy6mvZ-8YYT2F1bUc5GoGHks5qfRtYgaJpZM4IIszy.

Ok this is fixed and will appear in the next release (0.9.0)

Was this page helpful?
0 / 5 - 0 ratings