cph icon indicating copy to clipboard operation
cph copied to clipboard

Extension confuses different problems with same title

Open Professor-Of-Stupidity opened this issue 4 years ago • 1 comments

Extension Version: 5.1.3

VS Code Version: 1.53.2

Browser Version: Firefox 85.0.1 (64-bit)

Operating System: Ubuntu 20.10 (64-bit)

I was solving problems from Codeforces and I came upon this problem yesterday. Naturally, I clicked the CPH helper on my browser. I had definitely not solved this problem before, but the file which opened up in VSCode already had code in it, so it was a bit surprising.

On searching the name of the problem, that was A. Football, I found that there was another problem with the same title which I had attempted a few days back. Now I feel this is kind of buggy that the cph uses the title instead of the URL of the problem to recognize and name the corresponding file. It would be much better if the file would be named like contest+problem (like 46A and 96A etc). I hope you can resolve this issue.

Professor-Of-Stupidity avatar Feb 26 '21 06:02 Professor-Of-Stupidity

Thanks for creating the issue. I'll look into it, but it may take me a long time.

agrawal-d avatar Feb 27 '21 19:02 agrawal-d