Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intellisense stops working after new clone of OS repo to same location #2346

Closed
GabeDeBacker opened this issue Aug 1, 2018 · 2 comments
Closed
Labels
Feature: Extension API Feature Request fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Milestone

Comments

@GabeDeBacker
Copy link

Type: LanguageService
Data integrity issue when user deletes .vscode folder

  • OS and Version: Windows, rs5, 177113
  • VS Code Version: 1.25.1
  • C/C++ Extension Version: 0.17.7

When the user deletes the .vscode folder, the state being stored by the C/C++ extension in VSCode's memento storage is now out of sync wit the data that was in the "c_cpp_properties.json".

To Reproduce
Steps to reproduce the behavior:
Open a folder deep in the Windows OS repository. Select a C/C++ file. When prompted, allow the "WAVE for VSCode" IntelliSense provider to provide Intellisense information.

Close all VSCode instances.

Remove the .vscode folder, which is a common scenario for Windows OS developers as they often delete and re-clone their GIT repositories to the same location.

Re-open VSCode to the same folder.

Expected behavior
Expected a prompt that "WAVE for VSCode" would like to provide intellisense since the provider configuration in c_Cpp_properties.json no longer exists.

Additional context
The prompt does not occur because the memento storage for the C/C++ plugin has saved away a value indicating to not prompt for this folder, and as a result, the user is not prompted to use the "WAVE for VSCode" Intellisense provider and the standard one is used instead.

@JohnColleran
Copy link

I hit something similar. Resetting the properties fixed the problem. I have no idea though why the properties setting disappeared.

@bobbrow bobbrow added this to High priority in 0.26.2 Milestone Aug 15, 2018
@bobbrow bobbrow added this to the On Deck milestone Sep 19, 2018
@bobbrow bobbrow modified the milestones: On Deck, 0.26.1 Sep 27, 2019
@bobbrow bobbrow added this to To Do in 0.26.2 Milestone Oct 16, 2019
@bobbrow bobbrow added this to To do in 0.27.0 Milestone via automation Dec 6, 2019
@bobbrow bobbrow removed this from To Do in 0.26.2 Milestone Dec 6, 2019
@sean-mcmanus sean-mcmanus modified the milestones: 0.26.3, 1.0.0 Jan 22, 2020
@sean-mcmanus sean-mcmanus removed their assignment Jan 22, 2020
@Colengms Colengms moved this from To do to In progress in 0.27.0 Milestone Feb 20, 2020
@Colengms Colengms moved this from In progress to Done in 0.27.0 Milestone Feb 20, 2020
@Colengms Colengms added the fixed Check the Milestone for the release in which the fix is or will be available. label Feb 20, 2020
@sean-mcmanus
Copy link
Collaborator

Fixed in our latest Insiders release: https://github.com/microsoft/vscode-cpptools/releases/tag/0.27.0-insiders.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature: Extension API Feature Request fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Projects
No open projects
Development

No branches or pull requests

5 participants