Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>protobuf-durationsNew to Visual Studio Code? Get it now.
protobuf-durations

protobuf-durations

Jan Dolejsi

|
161 installs
| (1) | Free
Decorates protobuf duration values in a more readable days-hours-minutes-seconds format in json files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Protobuf Duration value viewing and editing in JSON

The Google Protobuf Duration message value gets serialized to JSON as a string showing number of seconds. This is not readable, nor editable.

Duration decoration

This extension shows a decoration next to the "123s" value.

A link in the hover invokes a user friendly way of editing the value in days/hours/minutes/seconds.

Duration editing

Debugging the extension

  • npm install to initialize the project
  • npm run watch to start the compiler in watch mode
  • open this folder in VS Code and press F5
  • this will open the [Extension Development Host] window, running the extension:
    • Open the sample1.json in the editor
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft