mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 21:52:24 +00:00
Don't request refactorings for empty selections
This commit is contained in:
parent
12a05170fe
commit
a8d7c6343c
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue