Giter Site home page Giter Site logo

Comments (12)

alanhamlett avatar alanhamlett commented on June 16, 2024 1

We can add a --transient argument to https://github.com/wakatime/wakatime and pass the language from VS Code with --alternate-language=<language>. However, it would need to be opt-in since most people wouldn't like seeing Unknown Project with only a few seconds logged before they saved the file.

from vscode-wakatime.

mpearon avatar mpearon commented on June 16, 2024 1

Evidently, I missed this question! I'm sorry.
I'm not sure about that. It could simply be 'Unsaved' or 'Uncommitted'. That would give the hint that the user was working interactively, or something.

from vscode-wakatime.

mpearon avatar mpearon commented on June 16, 2024

@alanhamlett - Is this something you might look at?

from vscode-wakatime.

mpearon avatar mpearon commented on June 16, 2024

@alanhamlett - I would think an opt-in feature would be perfectly acceptable.

from vscode-wakatime.

mpearon avatar mpearon commented on June 16, 2024

@alanhamlett - Is this still being considered?

from vscode-wakatime.

alanhamlett avatar alanhamlett commented on June 16, 2024

Yes, another option would be writing the first 512kb of the unsaved file to a temporary file then a new argument --entity-temp-file that tells wakatime-cli where to find the temporary file for the unsaved file. That way we use the existing language and project detection when tracking unsaved files.

from vscode-wakatime.

alanhamlett avatar alanhamlett commented on June 16, 2024

@mpearon what would the filename be set to when displayed on a project's dashboard? WakaTime can detect project, branch, language but not the name of the file without being saved.

from vscode-wakatime.

mpearon avatar mpearon commented on June 16, 2024

@alanhamlett Is this still a consideration?

from vscode-wakatime.

mpearon avatar mpearon commented on June 16, 2024

Just a reminder. :)

from vscode-wakatime.

gandarez avatar gandarez commented on June 16, 2024

@alanhamlett any update here?

from vscode-wakatime.

gandarez avatar gandarez commented on June 16, 2024

Can VSCODE detect unsaved entity and set --is-unsaved-entity flag @alanhamlett?

from vscode-wakatime.

alanhamlett avatar alanhamlett commented on June 16, 2024

We currently do this for sql queries because they're not saved to disk. We can do this for unsaved files too.

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.