I don´t really use control-Enter often, so I can’t say if that worked before or not, but I’m using 1.10 now and it seems to be working as you describe (x is defined in the REPL).
It is working after the update if I set both the VSCode and REPL module to the same thing.
julia> using DataFrames # Typed into REPL (automatically changed VSCode module to DataFrames)
[ Info: Precompiling DataFrames [a93c6f00-e57d-5684-b7b6-d8193f3e46c0]
julia> x # Typed into REPL (check not already defined)
ERROR: UndefVarError: `x` not defined
julia> x = 4 # Ctrl + Enter (define x)
4
julia> x # Typed into REPL (new definition still doesn't work)
ERROR: UndefVarError: `x` not defined
julia> DataFrames # Alt + m (change REPL module)
(DataFrames) julia> x # Typed into REPL (now defined variable exists)
4
Can you make the REPL module match the VSCode module automatically (even when the VSCode module hasn’t been manually selected)? I don’t understand why anyone would want these to be different.
I’m still pretty lost on how all these different switches go together and why. Sometimes the VSCode REPL behaves like I expect, but often it doesn’t, and it takes me a while to realize that the mistake is not in my code.
I just use the VSCode terminal and start Julia using a bash script with the correct parameters. Using the Julia console from the plug-in is confusing me too much.