mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Removed <DiagnosticSeverity> cast
This commit is contained in:
parent
b5ae881b26
commit
bf89d878d8
|
@ -64,10 +64,10 @@ export function getJavascriptMode(documentRegions: LanguageModelCache<HTMLDocume
|
|||
doValidation(document: TextDocument): Diagnostic[] {
|
||||
currentTextDocument = jsDocuments.get(document);
|
||||
const diagnostics = jsLanguageService.getSyntacticDiagnostics(FILE_NAME);
|
||||
return diagnostics.map(diag => {
|
||||
return diagnostics.map((diag): Diagnostic => {
|
||||
return {
|
||||
range: convertRange(currentTextDocument, diag),
|
||||
severity: <DiagnosticSeverity>DiagnosticSeverity.Error,
|
||||
severity: DiagnosticSeverity.Error,
|
||||
message: ts.flattenDiagnosticMessageText(diag.messageText, '\n')
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue