Merge pull request #8 from alefragnani/NoActiveFile
Closes #7 - Error (in console) when there is no active file
This commit is contained in:
Коммит
0e6eb613bc
|
@ -70,6 +70,12 @@ function processSelection(e: TextEditor, d: TextDocument, sel: Selection[], form
|
|||
|
||||
// Main menu /////////////////////////////////////
|
||||
function textFunctions() {
|
||||
|
||||
if (!vscode.window.activeTextEditor) {
|
||||
vscode.window.showInformationMessage('Open a file first to manipulate text selections');
|
||||
return;
|
||||
}
|
||||
|
||||
var opts: QuickPickOptions = { matchOnDescription: true, placeHolder: "What do you want to do to the selection(s)?" };
|
||||
var items: QuickPickItem[] = [];
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче