I’m afraid that’s not entirely possible since vscode is an elaborate IDE/Editor. DIscourse needs much more than just a file editor to run. So no, it may not be possible to make a forum on VS code.
However, that being said, if you want to try it out locally, have you read this howto by @osioke