After changing the parameter specs for a function, intellisense remembers old method parameters. Please check attached image. The first variant does not exist anymore. If I go there with F12, I go to a readonly file with the same path as the current file. Could it have to do with Git?
Hi,
It is possible there is another file with previous changes? The PHP editor implicitly ignores files specified in:
We'll try to replicate the issue tho. Maybe VSCode still keeps another version of the file opened in the editor?
JakubMisek The function getPublicationLine4Api exists only once in this project/workspace. The first method suggestion is old code; I changed the parameter type from PublicationLine to PublicationLineSuperclass.
By the way, re-opening vscode seems to solve it. Does the old definition stay in memory perhaps?
Yes, it is stored in-memory.
If you try to go-to-definition of getPublicationLine4Api (F12), does it open two locations?
getPublicationLine4Api
F12
Thanks!
JakubMisek Yes it does. If I then choose for the out-dated definition, I go to a readonly file with the same path as the current file.