Don't request refactorings for empty selections

This commit is contained in:
Matt Bierner 2018-08-24 14:51:42 +02:00
parent 12a05170fe
commit a8d7c6343c

View file

@ -200,7 +200,7 @@ class TypeScriptRefactorProvider implements vscode.CodeActionProvider {
return false;
}
return rangeOrSelection instanceof vscode.Selection;
return rangeOrSelection instanceof vscode.Selection && !rangeOrSelection.isEmpty;
}
private static getKind(refactor: Proto.RefactorActionInfo) {