See: https://docs.microsoft.com/en-us/visualstudio/extensibility/error-codes?view=vs-2019 We might not even need to bubble it up to UI either.