code-gnu-global icon indicating copy to clipboard operation
code-gnu-global copied to clipboard

Interference with C/C++ extension

Open Gruntfuggly opened this issue 8 years ago • 4 comments

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?

Gruntfuggly avatar Feb 17 '17 12:02 Gruntfuggly

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.

ivellioscolin avatar Mar 25 '18 03:03 ivellioscolin

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

waynewu411 avatar Nov 30 '18 12:11 waynewu411

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

ivellioscolin avatar Dec 04 '18 01:12 ivellioscolin

@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 ?

sfu5 avatar Aug 15 '19 04:08 sfu5