GithubHelp home page GithubHelp logo

Comments (7)

Chakroun-Anas avatar Chakroun-Anas commented on August 10, 2024 2

Hello @jon301 ,

Thank you for your feedback, this is really a big deal so i promise that i will work on it soon.

from turbo-console-log.

bsitruk avatar bsitruk commented on August 10, 2024 2

Changing the quote to the one that prettier's using fixed the issue for me:
"turboConsoleLog.quote": "'" in my case.

Maybe we could make the behavior more generic as it seems to rely on the quote style used.

from turbo-console-log.

Chakroun-Anas avatar Chakroun-Anas commented on August 10, 2024

Hello,

Thank you very much for bringing up this issue;

The log messages were inserted each with a transparent character to mark them for commenting, uncommenting and deleting;

Apparently prettier remove the transparent characters while formatting the files, so in order to solve the issue once for all i decided to change the log message format to the following:

console.log('TCL: SelectedVariableEnclosingClassName -> SelectedVariableEnclosingFunctionName -> SelectedVariable', SelectedVariable).

Thx again and happy coding.

from turbo-console-log.

jon301 avatar jon301 commented on August 10, 2024

Hi @Chakroun-Anas,

Thanks for the update, still it does not seem to fix the issue :/

Given this code :

    console.log('TCL: ClassicComponent -> constructor -> this.store', this.store);

When I save it, prettier re-formats it to :

    console.log(
      'TCL: ClassicComponent -> constructor -> this.store',
      this.store
    );

Then after that, TurboConsoleLog does not recognize this log anymore thus it's not possible to comment/uncomment or delete via the extension.

from turbo-console-log.

Chakroun-Anas avatar Chakroun-Anas commented on August 10, 2024

Hello,

I have just published an update that ensure the compatibilty with prettier.

Please check again so that we can close this issue.

from turbo-console-log.

jon301 avatar jon301 commented on August 10, 2024

Hi @Chakroun-Anas
It works like a charm in the latest version (1.2.11) !

Thanks <3

from turbo-console-log.

HiChen404 avatar HiChen404 commented on August 10, 2024

I configured the preitter, but still have the same problem.

TurboConsoleLog does not recognize this log anymore thus it's not possible to comment/uncomment or delete via the extension,Even though 'console.log()'show on one line.

As you said:

Apparently prettier remove the transparent characters while formatting the files

I think that's the problem,too.

TurboConsoleLog v2.1.7

Thank you!

from turbo-console-log.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.