简体   繁体   English

在供应商 vscode 中找不到 function 的定义

[英]No definition found for function in vendor vscode

My vscode does not see the definition of functions in vendor library.我的 vscode 没有看到供应商库中的函数定义。
I don't know if it has anything to do with gitignore, where I have put vendor, but I would like to find a solution that lets me keep it in gitignore, but allows me to search through in the work environment.不知道和gitignore有什么关系,我把vendor放在那里了,但是我想找一个解决方案,让我把它保存在gitignore中,但允许我在工作环境中搜索。
Because it does not see the definition, it gets underlined as a problem and I can not take a peak into what I am working here with.因为它没有看到定义,所以它被强调为一个问题,我无法深入了解我在这里工作的内容。 It does not affect the resulting outcome, it is problem while using the vscode.它不会影响结果,这是使用 vscode 时的问题。 Can you please help?你能帮忙吗?

I tried creating config.json in the project root folder.vscode saying:我尝试在项目根文件夹中创建 config.json.vscode 说:

 { "search.useIgnoreFiles": false }

It didn't do anything.它什么也没做。 Thank you for looking into it.谢谢你调查它。

Add the direcoty path into intelephense configuration:将直接路径添加到 intelephense 配置中:

@ext:bmewburn.vscode-intelephense-client

Like here into include path list:像这里进入包含路径列表:

intelephense 工作场所配置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM