Giter Site home page Giter Site logo

Leverage User Settings about vscode-wakatime HOT 10 OPEN

wakatime avatar wakatime commented on June 19, 2024
Leverage User Settings

from vscode-wakatime.

Comments (10)

alanhamlett avatar alanhamlett commented on June 19, 2024 2

That's doable, we could even only prompt for specific setting keys that are found in both ~/.wakatime.cfg and VS Code Settings, and only when those setting's have different values.

from vscode-wakatime.

alanhamlett avatar alanhamlett commented on June 19, 2024

The reason we use ~/.wakatime.cfg is because many people have multiple editors and this way all the editors share the same config file. If there's a way to keep the user settings in sync with a local file, then we could use both.

from vscode-wakatime.

mpearon avatar mpearon commented on June 19, 2024

Ah, that makes sense.
not sure how efficient this would be, because it would increase the initialization time, but initialization could look to settings first, then to the cfg.

  • If the CFG doesn’t exist, and the Setiings don’t exist, create both.
  • If the CFG doesn’t exist, and the Settings do, create the CFG based on the Settings.
  • If the CFG exists and the Settings don’t, create the settings based on the CFG.
  • If both exist, but differ, prompt the user in the UI, updating both.

from vscode-wakatime.

mpearon avatar mpearon commented on June 19, 2024

Any more thoughts on this one, @alanhamlett ?

from vscode-wakatime.

mpearon avatar mpearon commented on June 19, 2024

@alanhamlett - Awesome! It seems like I'm asking a lot of you lately. :)

from vscode-wakatime.

gandarez avatar gandarez commented on June 19, 2024

What's the status of this issue @alanhamlett?

from vscode-wakatime.

vilicvane avatar vilicvane commented on June 19, 2024

@alanhamlett Currently we have shared remote workspaces (for Remote SSH to connect), thus it is necessary for us to have WakaTime reading the settings using the VSCode settings mechanism. Also we need to have the option to disable .wakatime.cfg so that it won't prompt when missing.

from vscode-wakatime.

gandarez avatar gandarez commented on June 19, 2024

is that a feature already inmplemented/needed @alanhamlett?

from vscode-wakatime.

alanhamlett avatar alanhamlett commented on June 19, 2024

is that a feature already inmplemented/needed @alanhamlett?

If we pass --key to wakatime-cli does it complain about missing ~/.wakatime.cfg or does it work without the config file?

from vscode-wakatime.

gandarez avatar gandarez commented on June 19, 2024

If we pass --key to wakatime-cli does it complain about missing ~/.wakatime.cfg or does it work without the config file?

It won't complain about missing config file unless you provide key flag.

from vscode-wakatime.

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.