Plotting graphs in vscode

Do you have the plot pane enabled? Your example generally works fine for me, except when disabling the plot pane after Plots is loaded (which is why that setting indicates "Might require a restart of the Julia process).