Cody cannot analyze files

I am using visual studio ide 2022.I installed sourcegraph cli, I bought a token and introduced it with powershell

:heavy_check_mark: I got the message Authenticated as eminserdarsengul-qwpyr on https://sourcegraph.com

then I created .sourcegraphconfig.json in the project root directory, cody suggested me this first

{
“sourcegraph”: {
“url”: sourcegraph url
“rootPath”: “C:\Project”,
]
}
}

but the project could not see a file that was in a subdirectory, it did not suggest to see the subdirectories in the sourceconfig file, so I added them

{
“sourcegraph”: {
“url”: sourcegraph url
“rootPath”: “C:\Project”,
“include”: [
/*.cs",
"
/.cshtml",
"**/
.json”
]
}
}

this time when I said analyze the method in a file, he wrote a method according to his own head that has nothing to do with the method, in short, it does not work properly

Hey @serdar

Thank you for reaching out to us.

Did you initialize your project as a git repository? This is a requirement to work with Sourcegraph products. At least with Cody and the Cody CLI.

Thank you

Hello.
No, I don’t think I did, and I would be grateful if you could help me with this. Is there a document that shows me step by step what to do about it? Thank you

Go into your project root folder and execute the command in the shell: git init.
This should initialize the project as a git repository.

Documentation about how to use the experimental Sourcegraph CLI can be found here: CLI - Sourcegraph docs

And working with git can be found here: Git - Documentation

Hello, I am using tfs.but I realized that I did not log in to tfs while working with cody.after logging in, the file I open is automatically added to the chat screen and it works perfectly. thank you, you have done a very nice job, congratulations.I will buy the pro version.I have two questions.

  1. do the answers make more sense in the pro version or is the only difference that there is no limit to ask a certain number of questions per day?

  2. I couldn’t see cody’s own AI in the model section. When I ask a question, can I do these two things?

2.1 ) answer my question on all models
2.2 ) Query my question on all models and give me a single answer based on the answers from all of them

or do I have to enter prompt for that?
thank you

Hey @serdar fantastic that you are choosing Cody and have fun with it and find practical use cases.

To your two questions:

  1. The answers are the same and there is no difference between the free and pro plan using except that you do not have the limit of 200 messages per month anymore. The amount off daily message you can send is controlled by a fair usage policy, which means you have a plenty number of messages per day (~200), but could be capped by high usage.

  2. Yes, you can answer your question on all models but not at the same time. If you want to compare your question amongst different models, you can use Sourcegraph Labs to choose two different LLMs with the same query.