austin----- / code-gnu-global

Provide Intellisense for C/C++ with the help of the GNU Global tool in Visual Studio Code
152 stars 67 forks source link

Interference with C/C++ extension #28

Open Gruntfuggly opened 7 years ago

Gruntfuggly commented 7 years ago

I have this extension installed alongside the C/C++ extension, which gives me loads of language specific functionality.

Unfortunately though, it means that Go To Definition seems to come up with multiple references. If I disable either extension, ctrl+click on a symbol takes me straight to it, but with both extensions enabled I get the peek view and have to chose between two choices which take me to the same place.

Is there any way round this?

ivellioscolin commented 6 years ago

I believe the best solution is to provide options in both extensions that the "go to/peek definition/declaration" feature can be disabled/enabled separately so that you can choose the desired combinations of features from either extension.

waynewu411 commented 5 years ago

You can disable Goto Definition & Peek Definition menu in the package.json configuration file under extension directory in either of this two extensions.

ivellioscolin commented 5 years ago

@WayneWu411 Awesome! That's the best way to tune the two extensions. Thanks Wayne.

sfu5 commented 4 years ago

@ivellioscolin @WayneWu411 I meet same problem, could you provide more details about how to edit the package.json to disable Goto Definition & Peek Definition menu ?