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

How to completely disable intelliSense linting? #791

Closed
yh-sb opened this issue Jun 1, 2017 · 6 comments
Closed

How to completely disable intelliSense linting? #791

yh-sb opened this issue Jun 1, 2017 · 6 comments

Comments

@yh-sb
Copy link

yh-sb commented Jun 1, 2017

I need to disable all linting (or error output to the "PROBLEMS" view) and autocomplete. I want to use only "go/pick to definition/declaration" function.
At this moment I have these settings, which related to cpptools extension:

	"C_Cpp.autocomplete": "Disabled",
	"C_Cpp.errorSquiggles": "Disabled",
	"C_Cpp.formatting": "Disabled",
	"C_Cpp.intelliSenseEngine": "Tag Parser",

But I still get "Include file not found in include path." errors in "PROBLEMS" view.

So, is it possible at all?

@yh-sb yh-sb changed the title How to completely disable intelliSense linting and autocomplete? How to completely disable intelliSense linting? Jun 1, 2017
@bobbrow
Copy link
Member

bobbrow commented Jun 1, 2017

We don't have an option to turn off linting for include paths. The extension won't work as you expect if include files cannot be opened so we need to let you know somehow that the the symbols defined in those files won't be available to you for goto/peek definition/declaration.

@yh-sb
Copy link
Author

yh-sb commented Jun 2, 2017

But in my case I don't setup include paths for cpptools and "go/pick to definition/declaration" works very well despite the fact that the .h files are in different folders in the project.

So, "go/pick to definition/declaration" works well without include paths, should be option to disable these annoying and senseless error messages about the include paths?

Note: the problem is related only to .h file which goes with GCC toolchain.

@bobbrow
Copy link
Member

bobbrow commented Jun 2, 2017

Exactly. Those files are not in your browse.path by default. You won't be able to goto definition or get tooltips on symbols defined in your GCC toolchain because they are not in the browse.path. You have no need for these?

@yh-sb
Copy link
Author

yh-sb commented Jun 2, 2017

I write it one more time: "go/pick to definition/declaration" works well without include paths.

All *.h and *.c files which have well working "go to definition" function placed in directories, which doesn't described in c_cpp_properties.json and they are included like this (for example) "sys_rtc.h" or "v_convert.c" (without direct path in the source code).

Does cpptools extension make recursive search on the ${workspaceRoot} directory?

@sean-mcmanus
Copy link
Contributor

The browse.path setting is recursive unless it ends with *, and the default settings includes ${workspaceRoot} in the browse.path (behind the scenes).

@bobbrow
Copy link
Member

bobbrow commented Jun 2, 2017

Yes, @r44083, I understand that goto definition/declaration will work for your files under ${workspaceRoot}. I was asking whether you cared about this working for stuff defined in GCC headers. It sounds like you don't.

We have no current plans to add a setting to disable these, but we can add this to our backlog. The messages are not senseless, but I'm sorry if they annoy you. There are other users would do care about goto definition/declaration working for files outside of the ${workspaceRoot} and appreciate getting feedback from the editor as to why.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants