PlotlyJS plot configuration settings in VSCode

How can I change the plot configuration settings for PlotlyJS when I plot from VSCode (either notebook or editor)?

In VSCode, the configuration settings always seem to be overwritten. For example, the code below should remove the ModeBar, but when displayed in VSCode it always appears with the same configuration (i.e. ModeBar pops up even though I have specified this as false):

using PlotlyJS

plot(
    scatter(
        mode="markers",
        x=1:10,
        y=1:10
    ),
    config=PlotConfig(displayModeBar=false)
) 

I can save the plot to HTML, open it in an internet browser and the plot works as expected. Any thoughts on how I can get this to work correctly in VSCode?
Note: Currently using Julia 6.1.3 and Julia 1.5.6 extension for VSCode.