Merge pull request #10 from jpoppe/patch-1
fixed typo: getDignosticsKind -> getDiagnosticsKind
This commit is contained in:
commit
cb75962a35
1 changed files with 2 additions and 2 deletions
|
@ -692,7 +692,7 @@ export default class TypeScriptServiceClient implements ITypeScriptServiceClient
|
||||||
const diagnosticEvent = event as Proto.DiagnosticEvent
|
const diagnosticEvent = event as Proto.DiagnosticEvent
|
||||||
if (diagnosticEvent.body && diagnosticEvent.body.diagnostics) {
|
if (diagnosticEvent.body && diagnosticEvent.body.diagnostics) {
|
||||||
this._onDiagnosticsReceived.fire({
|
this._onDiagnosticsReceived.fire({
|
||||||
kind: getDignosticsKind(event),
|
kind: getDiagnosticsKind(event),
|
||||||
resource: this.asUrl(diagnosticEvent.body.file),
|
resource: this.asUrl(diagnosticEvent.body.file),
|
||||||
diagnostics: diagnosticEvent.body.diagnostics
|
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) {
|
switch (event.event) {
|
||||||
case 'syntaxDiag':
|
case 'syntaxDiag':
|
||||||
return DiagnosticKind.Syntax
|
return DiagnosticKind.Syntax
|
||||||
|
|
Loading…
Add table
Reference in a new issue