File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
packages/cursorless-vscode/src/ide/vscode Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -187,13 +187,9 @@ export class VscodeTextEditorImpl implements EditableTextEditor {
187
187
188
188
public async extractVariable ( _range ?: Range ) : Promise < void > {
189
189
if ( this . document . languageId === "python" ) {
190
- // Workaround for https://github.com/microsoft/vscode-python/issues/20455
191
190
await vscode . commands . executeCommand ( "editor.action.codeAction" , {
192
- kind : "refactor.extract" ,
191
+ kind : "refactor.extract.variable " ,
193
192
} ) ;
194
- await sleep ( 250 ) ;
195
- await vscode . commands . executeCommand ( "selectNextCodeAction" ) ;
196
- await vscode . commands . executeCommand ( "acceptSelectedCodeAction" ) ;
197
193
} else {
198
194
await vscode . commands . executeCommand ( "editor.action.codeAction" , {
199
195
kind : "refactor.extract.constant" ,
You can’t perform that action at this time.
0 commit comments