fixed typo: getDignosticsKind -> getDiagnosticsKind

This commit is contained in:
Jasper Poppe 2019-02-12 18:37:31 +01:00 committed by GitHub
parent 0473880f30
commit c16e21dd06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -692,7 +692,7 @@ export default class TypeScriptServiceClient implements ITypeScriptServiceClient
const diagnosticEvent = event as Proto.DiagnosticEvent
if (diagnosticEvent.body && diagnosticEvent.body.diagnostics) {
this._onDiagnosticsReceived.fire({
kind: getDignosticsKind(event),
kind: getDiagnosticsKind(event),
resource: this.asUrl(diagnosticEvent.body.file),
diagnostics: diagnosticEvent.body.diagnostics
})
@ -821,7 +821,7 @@ export default class TypeScriptServiceClient implements ITypeScriptServiceClient
}
}
function getDignosticsKind(event: Proto.Event): DiagnosticKind {
function getDiagnosticsKind(event: Proto.Event): DiagnosticKind {
switch (event.event) {
case 'syntaxDiag':
return DiagnosticKind.Syntax