dartMimeType top-level constant

String const dartMimeType

The mime type to send with source responses to the client.

This is used so if the source name does not end with ".dart" the client can still tell which language to use (for syntax highlighting, etc.).

https://github.com/microsoft/vscode/issues/8182#issuecomment-231151640

Implementation

const dartMimeType = 'text/x-dart';