Making an editor is anice endeavor. But there are plenty of, which are extremely well developed, open source, in many directions, emacs and vim the most prominent. But many others out there.
For open source GUI text editors there sadly aren't many that match the feature and polish of vscode.
It’s been a while since I used it, but it’s one of the few things I miss on osx