Figure out why the problem occurred and see if it can be avoided.
In this case, the problem can be easily avoided and usually is as when you're on a server you're also likely ssh-ed into it and off chance you're using vscode-ssh you'll likely know how to sudo vscode.
I don't care what the original topic was, this got brought up (by you) and I shared my thoughts on it.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
There's two ways to solve a problem:
In this case, the problem can be easily avoided and usually is as when you're on a server you're also likely ssh-ed into it and off chance you're using vscode-ssh you'll likely know how to sudo vscode.
I don't care what the original topic was, this got brought up (by you) and I shared my thoughts on it.