2

TextEditorDecorationTypeVisual Studio Code API でイーズアウト遷移を適用するにはどうすればよいですか?

var flashDecorationType = vscode.window.createTextEditorDecorationType({
  backgroundColor: 'rgba(100,200,100,0.5)'
});

var range = getCurrentRange();
var decoration = { range: range }
activeEditor.setDecorations(flashDecorationType, [decoration]);

上記のコードは装飾を適用しますが、静的であり、背景色を 1 秒でフェードアウトさせたいと考えています。これはvscodeで行うことができますか?

私はこのようなことをしたいと思っています:

var flashDecorationType = vscode.window.createTextEditorDecorationType({
  backgroundColor: 'rgba(100,200,100,0.5)',
  transition: 'backgroundColor 1s ease-out'
});
4

0 に答える 0