Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀🚀🚀 Auto change line number in console.log when line no changed #238

Open
kodmanyagha opened this issue May 22, 2024 · 1 comment · May be fixed by #243
Open

🚀🚀🚀 Auto change line number in console.log when line no changed #238

kodmanyagha opened this issue May 22, 2024 · 1 comment · May be fixed by #243
Labels
bug Something isn't working high-priority High priority issue roadmap Future features that could be integrated

Comments

@kodmanyagha
Copy link

🚀🚀🚀

Hi folks, thanks a lot for this awesome plugin. I can easily add console.log with only single shortcut now. I have an idea which small for you but big for humanity. I'm using this extension with "Include File Name And Line Num" feature. This is so great because I can easily see the which output is caused from which line. But when I modify the code and console.log line's real line number changed the output stays with old line number. For example:

...
43    let result = someFuncCalling();
44    console.log('>>  file: example.controller.ts:44  result', result);
...

After modifying code, line numbers will be change:

...
47    let iAddedAnotherThingsBeforeConsoleLog = "foo";
48    // Also I added another comment before console log...
49    let result = someFuncCalling();
50    console.log('>>  file: example.controller.ts:44  result', result);
51     // As you can see the real line number is 50, but in console.log it sticks with 44. Here is the problem.
...

❓❓❓ My question is that: Is it possible that automatically change line number in console.log output? If you can handle this I will pray to God for you for earning too much money :) Thx a lot bros. 😇😇😇

@m-waqas88
Copy link

+1

There should be a shortcut to update all line numbers in existing log statements when the code is changed. This feature is deadly required.

@jangxyz jangxyz linked a pull request Dec 2, 2024 that will close this issue
@Chakroun-Anas Chakroun-Anas added bug Something isn't working high-priority High priority issue roadmap Future features that could be integrated labels Jan 20, 2025
@Chakroun-Anas Chakroun-Anas added this to the Stability Update milestone Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high-priority High priority issue roadmap Future features that could be integrated
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants