VS Code API replace all text
Helper method that replaces all text in active editor with a string
Usage
import replaceText from 'vscode-replace-all-text';
replaceText('Only this text should appear in the editor');
Installation
$ npm install -S vscode-replace-all-text