It seems to be an issue with the TextMate grammar file for TypeScript for VS Code.
It doesn't properly support the extends keyword, here is an open issue portraying the same behavior https://github.com/microsoft/TypeScript-TmLanguage/issues/1048
The workaround you found seems to be working