Skip to content

Commit 2a9b4fc

Browse files
authored
dont override shift+enter behavior (#23546)
fix: #23545
1 parent 6d88415 commit 2a9b4fc

File tree

4 files changed

+1
-16
lines changed

4 files changed

+1
-16
lines changed

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,11 +1120,6 @@
11201120
"key": "shift+enter",
11211121
"when": "config.python.REPL.sendToNativeREPL && activeEditor != 'workbench.editor.interactive'&& editorLangId == python && editorTextFocus && !jupyter.ownsSelection"
11221122
},
1123-
{
1124-
"command": "python.execREPLShiftEnter",
1125-
"key": "shift+enter",
1126-
"when": "activeEditor == 'workbench.editor.interactive' && config.interactiveWindow.executeWithShiftEnter && editorLangId == python"
1127-
},
11281123
{
11291124
"command": "python.execInREPLEnter",
11301125
"key": "enter",

src/client/common/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export namespace Commands {
4949
export const Exec_In_REPL = 'python.execInREPL';
5050
export const Exec_Selection_In_Django_Shell = 'python.execSelectionInDjangoShell';
5151
export const Exec_In_REPL_Enter = 'python.execInREPLEnter';
52-
export const Exec_In_REPL_Shift_Enter = 'python.execREPLShiftEnter';
5352
export const Exec_Selection_In_Terminal = 'python.execSelectionInTerminal';
5453
export const GetSelectedInterpreterPath = 'python.interpreterPath';
5554
export const InstallJupyter = 'python.installJupyter';

src/client/extensionActivation.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ import { initializePersistentStateForTriggers } from './common/persistentState';
5252
import { logAndNotifyOnLegacySettings } from './logging/settingLogs';
5353
import { DebuggerTypeName } from './debugger/constants';
5454
import { StopWatch } from './common/utils/stopWatch';
55-
import { registerReplCommands, registerReplExecuteOnEnter, registerReplExecuteOnShiftEnter } from './repl/replCommands';
55+
import { registerReplCommands, registerReplExecuteOnEnter } from './repl/replCommands';
5656

5757
export async function activateComponents(
5858
// `ext` is passed to any extra activation funcs.
@@ -109,7 +109,6 @@ export function activateFeatures(ext: ExtensionState, _components: Components):
109109

110110
registerReplCommands(ext.disposables, interpreterService);
111111
registerReplExecuteOnEnter(ext.disposables, interpreterService);
112-
registerReplExecuteOnShiftEnter(ext.disposables);
113112
}
114113

115114
/// //////////////////////////

src/client/repl/replCommands.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,6 @@ export async function registerReplExecuteOnEnter(
205205
);
206206
}
207207

208-
export async function registerReplExecuteOnShiftEnter(disposables: Disposable[]): Promise<void> {
209-
disposables.push(
210-
commands.registerCommand(Commands.Exec_In_REPL_Shift_Enter, async () => {
211-
await commands.executeCommand(Commands.Exec_In_REPL_Enter);
212-
}),
213-
);
214-
}
215-
216208
function isMultiLineText(textEditor: TextEditor | undefined): boolean {
217209
return (textEditor?.document?.lineCount ?? 0) > 1;
218210
}

0 commit comments

Comments
 (0)