|
442 | 442 | "pythonDiscoveryUsingWorkers",
|
443 | 443 | "pythonTestAdapter",
|
444 | 444 | "pythonREPLSmartSend",
|
445 |
| - "pythonRecommendTensorboardExt", |
446 |
| - "pythonRunREPL" |
| 445 | + "pythonRecommendTensorboardExt" |
447 | 446 | ],
|
448 | 447 | "enumDescriptions": [
|
449 | 448 | "%python.experiments.All.description%",
|
|
453 | 452 | "%python.experiments.pythonDiscoveryUsingWorkers.description%",
|
454 | 453 | "%python.experiments.pythonTestAdapter.description%",
|
455 | 454 | "%python.experiments.pythonREPLSmartSend.description%",
|
456 |
| - "%python.experiments.pythonRecommendTensorboardExt.description%", |
457 |
| - "%python.experiments.pythonRunREPL.description%" |
| 455 | + "%python.experiments.pythonRecommendTensorboardExt.description%" |
458 | 456 | ]
|
459 | 457 | },
|
460 | 458 | "scope": "window",
|
|
472 | 470 | "pythonTerminalEnvVarActivation",
|
473 | 471 | "pythonDiscoveryUsingWorkers",
|
474 | 472 | "pythonTestAdapter",
|
475 |
| - "pythonREPLSmartSend", |
476 |
| - "pythonRunREPL" |
| 473 | + "pythonREPLSmartSend" |
477 | 474 | ],
|
478 | 475 | "enumDescriptions": [
|
479 | 476 | "%python.experiments.All.description%",
|
|
482 | 479 | "%python.experiments.pythonTerminalEnvVarActivation.description%",
|
483 | 480 | "%python.experiments.pythonDiscoveryUsingWorkers.description%",
|
484 | 481 | "%python.experiments.pythonTestAdapter.description%",
|
485 |
| - "%python.experiments.pythonREPLSmartSend.description%", |
486 |
| - "%python.experiments.pythonRunREPL.description%" |
| 482 | + "%python.experiments.pythonREPLSmartSend.description%" |
487 | 483 | ]
|
488 | 484 | },
|
489 | 485 | "scope": "window",
|
|
628 | 624 | "scope": "resource",
|
629 | 625 | "type": "boolean"
|
630 | 626 | },
|
| 627 | + "python.REPL.sendToNativeREPL": { |
| 628 | + "default": false, |
| 629 | + "description": "%python.REPL.sendToNativeREPL.description%", |
| 630 | + "scope": "resource", |
| 631 | + "type": "boolean", |
| 632 | + "tags": [ |
| 633 | + "experimental" |
| 634 | + ] |
| 635 | + }, |
631 | 636 | "python.testing.autoTestDiscoverOnSaveEnabled": {
|
632 | 637 | "default": true,
|
633 | 638 | "description": "%python.testing.autoTestDiscoverOnSaveEnabled.description%",
|
|
1108 | 1113 | {
|
1109 | 1114 | "command": "python.execSelectionInTerminal",
|
1110 | 1115 | "key": "shift+enter",
|
1111 |
| - "when": "editorTextFocus && editorLangId == python && !findInputFocussed && !replaceInputFocussed && !jupyter.ownsSelection && !notebookEditorFocused && activeEditor != 'workbench.editor.interactive'" |
| 1116 | + "when": "!config.python.REPL.sendToNativeREPL && editorTextFocus && editorLangId == python && !findInputFocussed && !replaceInputFocussed && !jupyter.ownsSelection && !notebookEditorFocused && activeEditor != 'workbench.editor.interactive'" |
| 1117 | + }, |
| 1118 | + { |
| 1119 | + "command": "python.execInREPL", |
| 1120 | + "key": "shift+enter", |
| 1121 | + "when": "config.python.REPL.sendToNativeREPL && activeEditor != 'workbench.editor.interactive'" |
| 1122 | + }, |
| 1123 | + { |
| 1124 | + "command": "python.execREPLShiftEnter", |
| 1125 | + "key": "shift+enter", |
| 1126 | + "when": "activeEditor == 'workbench.editor.interactive' && config.interactiveWindow.executeWithShiftEnter" |
| 1127 | + }, |
| 1128 | + { |
| 1129 | + "command": "python.execInREPLEnter", |
| 1130 | + "key": "enter", |
| 1131 | + "when": "!config.interactiveWindow.executeWithShiftEnter && activeEditor == 'workbench.editor.interactive'" |
1112 | 1132 | },
|
1113 | 1133 | {
|
1114 | 1134 | "command": "python.refreshTensorBoard",
|
|
1367 | 1387 | {
|
1368 | 1388 | "command": "python.execSelectionInTerminal",
|
1369 | 1389 | "group": "Python",
|
1370 |
| - "when": "editorFocus && editorLangId == python && !virtualWorkspace && shellExecutionSupported" |
| 1390 | + "when": "!config.python.REPL.sendToNativeREPL && editorFocus && editorLangId == python && !virtualWorkspace && shellExecutionSupported" |
1371 | 1391 | },
|
1372 | 1392 | {
|
1373 | 1393 | "command": "python.execInREPL",
|
1374 | 1394 | "group": "Python",
|
1375 |
| - "when": "editorFocus && editorLangId == python && !virtualWorkspace && shellExecutionSupported && pythonRunREPL" |
| 1395 | + "when": "editorFocus && editorLangId == python && !virtualWorkspace && shellExecutionSupported && config.python.REPL.sendToNativeREPL" |
1376 | 1396 | }
|
1377 | 1397 | ],
|
1378 | 1398 | "editor/title": [
|
|
0 commit comments