amir9480 / vscode-cpp-helper

vscode extension to create implementation for c++ function prototypes.
https://marketplace.visualstudio.com/items?itemName=amiralizadeh9480.cpp-helper
MIT License
355 stars 31 forks source link

Nothing of C++ Helper works anymore after calling "Create Implementation" with a special constructor in your class #73

Open Food2023 opened 7 months ago

Food2023 commented 7 months ago

If you call "Create Implementation Here" in a class with a special constructor the extension won't work anymore. No C++ helper function works until restart of VSCode.

Example: Create a *.hpp file and insert:

class StateR : public State
{
public:
    StateR(IState* f_stateHandling):
        State()
        {};
    boolean nextState();
};

Call "Create Implementation Here" on the nextState. Nothing will happen. No other "Create Implementation" methods will work anymore.

ab503044120 commented 5 months ago

+1

amir9480 commented 5 months ago

I guess the regex I used for parsing is broken on your code. You can check the regex used here:

https://github.com/amir9480/vscode-cpp-helper/blob/master/src/FunctionDetails.ts#L85

Food2023 commented 5 months ago

Thanks for the feedback but I have same the regular expressions like you (in your link). I feel there is something wrong with them.