Open diablodale opened 7 months ago
Seeing this issue also,
Kinda defeats the purpose of using @workspace
lol
Please give this a try in the next insiders release of the vscode-chat extension. There was a bug that caused functions names of that form (name
+ digit
+ ()
) not to get resolved correctly
Going forward you should be able to use: cropCenterResize2()
, cropCenterResize2
, cropCenterResize2(arg1, arg2, ...)
, or even just cropCenterResize
I'm not having any luck with a similar query, even if I highlight the entire function implementation. From the vscode-jupyter repo
typed
@workspace analyze function cropCenterResize2() for correctness, clarity, and simplify when possible
copilot's response after collecting 9 files including the entire implementation for cropCenterResize2() in one of the 9 files is...Setup
Repro
@workspace analyze function cropCenterResize2() for correctness, clarity, and simplify when possible
into copilot chat windowResult
Expected
To provide the analysis of the function and not complain that it doesn't have the actual implementation.
The workspace agent listed in its reply both the header and the cpp of the declaration and definition of cropCenterResize2. Therefore, it has full view on all the code.
Notes
I found that if I change my inquiry so that it doesn't have the
()
after the function name, then the reply is more reasonable. Specifically, using@workspace analyze function cropCenterResize2 for correctness, clarity, and simplify when possible
resulted in a workable reply.I suspect that some part of the end-to-end on this is failing with me using
()
after the function name. It seems to be taking it very literally and not finding a function signature()
which is true...the signature actually has 4 parameters. I think it would be better in cases like this that copilot realize that...like misspellings...that I didn't get the signature in my inquiry exactly right and that using()
is a casual way to indicate a function and not necessarily the explicit exact signature (which technically is incomplete since even if I listed the 4 params I still wouldn't list the needed modifiers like const, noexcept, etc...)