Writing a universal programming language extension for VSCode

There was an interesting question in Stackoverflow today: Is it possible to write an extension for VSCode that can accept any grammar and support semantic highlighting, defs/refs, and other language features? I’ve always toyed with the idea of having a “universal language server” with the server dynamically reading a grammar then parsing the input. So, …