I've rewritten everything during the weekend, I've changed the whole system into a client / server tcp/ip relationship. not polished yet, so i've pushed it on the dev branch before I cleanup and get it merged into master.
(gotta cleanup and add buttons and text on the outline bar among other things to make the start process easy and bulletproof)
You may try this new method of the dev branch (before i make it user firendly) if you're so inclined: you may start the server by running leobridgeserver.py which is at the root of the project folder. (needs websocket dependency: pip install websockets) then start running another instance of vscode with the leointeg expansion running with F5.
In a day or two i'll finish adding buttons to ask for adress and port to connect and facilitate the process in a much needed way, (and then push to master) but for now, if you want to try it: leointeg will try to connect to localhost on port 32125 : the one set in leointegserver.py defaults constants. just make sure to start the server beforehand.
About F5 : This does not start running and debugging the expansion, rather, it starts to run another instance of vscode with the leointeg expansion activated in it. So doing another F5 in that other vscode window is not recomended, as I dont know upon what workspace it will open into! (may be the last one you worked with in vscode or some other depending on your vscode settings and past usage)
The workspace it opened into will also trigger all sorts of suggestions about installing tools to code and debug depending on what filetypes are present in this workspace. That may be where that 'extensions select environmen thing' came from, really not sure about that.
Also to be noted, the leointeg expansion in the instance that was started with F5 will 'activate' and show up automatically in the explorer view, if that new 'workspace' contains a leo file. You can also force it to activate by switching to ths 'leo view' by clicking on the leo icon on the far-left sidebar. This one also has an outline view, altough taller as it has the whole left pane to itself. ( i dont start the expansion by default to speed startup on workspaces that would not be used for leo file manipulation, as it add 2 or 3 seconds)
So doing F5 should not be performed other than once to start a debug/run session of a vscode instance with the leointeg expansion enabled in it.
Of course, when the expansion is more fleshed out, i'll wrap it up in a real expansion bundle, which eliminates all installation procedures into a seamless 'one click'.
--
Too late for me now, gotta go to sleep its past midnight!! - i'll finish making the whole thing into a more professional looking procedure, with a two step process of 'connecting to server' and then 'opening a leo file' during the week.
...but if anyone is brave enough, they can try the dev branch.
--
Félix
p.s. Leo rocks!