0

In my vs code extension, I try to integrate a rotating (oct)icon in the status bar. Like the git integration of vs code itself when it is synchronizing. But in fact, I have no how to achieve that goal.

A simplified example of a cheap try:" window.createStatusBarItem(StatusBarAlignment.Left, 0).text = `$(globe spin) `; "

peni4142
  • 426
  • 1
  • 7
  • 26

2 Answers2

2

As the Icons in Labels documentation says, you can apply a spinning animation to any icon by appending ~spin to the icon name:

$(globe~spin)

ababak
  • 1,685
  • 1
  • 11
  • 23
0

Documentation says you can set spinning animation only to

  • sync
  • loading
  • gear

icons.