vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Why do you have your own navigation system?

Open Tyriar opened this issue 8 years ago • 6 comments

Type: LanguageService

Describe the bug

  • OS and Version: Windows 10
  • VS Code Version:
  • C/C++ Extension Version: 0.19.0
  • Other extensions you installed (and if the issue persists after disabling them):
  • A clear and concise description of what the bug is.

image

Click this status bar item gives this:

image

But there are already mechanisms in VS Code to surface this information if users want to:

Outline viewlet:

image

Find symbol command:

image

Breadcrumbs:

image

/cc @jrieken

Tyriar avatar Oct 08 '18 18:10 Tyriar

Yeah, we implemented our navigation system before VS Code had any support for the Outline view and bread crumbs. The reason for not removing our navigation is that the Outline and breadcrumbs is currently buggy with our tool and we don't pass back symbol ranges yet. We're tracking that with https://github.com/Microsoft/vscode-cpptools/issues/2230 -- after fixing that we should be able to remove that status bar navigation.

sean-mcmanus avatar Oct 08 '18 19:10 sean-mcmanus

The Cpptools's navigation function is convenient to me for viewing and selecting C function. I think you can keep it. Outline viewlet: Can't use keyboard to select function Find symbol command / Breadcrumbs: contain too many useless global variable.

vscpp avatar Oct 12 '18 09:10 vscpp

Outline viewlet: Can't use keyboard to select function

@vscpp sure you can, you can also filter by typing.

Find symbol command / Breadcrumbs: contain too many useless global variable.

But it's trivial to filter them, there's a way that this is done across all languages in VS Code and it should remain consistent. That way you set up your preferred keybinding once and it works the same across all languages.

Tyriar avatar Oct 13 '18 18:10 Tyriar

Closing this issue due to long inactivity.

michelleangela avatar Aug 21 '19 17:08 michelleangela

If this is still how the extension works you should reopen this, the C++ extension should use the system that VS Code provides so the experience is consistent across languages and so C++ gets the features we build for it (breadcrumbs, find symbol, outline view).

Tyriar avatar Aug 21 '19 18:08 Tyriar

I guess this is covered by https://github.com/microsoft/vscode-cpptools/issues/2230 so it's fine 🙂

Tyriar avatar Aug 21 '19 18:08 Tyriar