Make the server proxy's properties visible to static analysis (#5345)
Currently, all properties of the server proxy object are created using `Object.defineProperties` in the constructor, which means that IDEs like VS Code can't analyze the file's static structure to determine what properties there are and what types they have. Consequently, things like autocomplete and go-to-definition don't work. Fix that by removing the `ServerProxy` class altogether and exporting an anonymous object with all properties defined statically.main
parent
968b575ac3
commit
85b5547541