提交 43acb7d3 编写于 作者: M Matt Bierner

💄

上级 39c64727
...@@ -688,7 +688,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient ...@@ -688,7 +688,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
this.tracer.logTrace(`TypeScript Service: trying to cancel ongoing request with sequence number ${seq}`); this.tracer.logTrace(`TypeScript Service: trying to cancel ongoing request with sequence number ${seq}`);
try { try {
fs.writeFileSync(this.cancellationPipeName + seq, ''); fs.writeFileSync(this.cancellationPipeName + seq, '');
} catch (e) { } catch {
// noop // noop
} }
return true; return true;
...@@ -750,30 +750,25 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient ...@@ -750,30 +750,25 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
case 'projectLanguageServiceState': case 'projectLanguageServiceState':
if (event.body) { if (event.body) {
const data = (event as Proto.ProjectLanguageServiceStateEvent).body; this._onProjectLanguageServiceStateChanged.fire((event as Proto.ProjectLanguageServiceStateEvent).body);
this._onProjectLanguageServiceStateChanged.fire(data);
} }
break; break;
case 'beginInstallTypes': case 'beginInstallTypes':
if (event.body) { if (event.body) {
const data = (event as Proto.BeginInstallTypesEvent).body; this._onDidBeginInstallTypings.fire((event as Proto.BeginInstallTypesEvent).body);
this._onDidBeginInstallTypings.fire(data);
} }
break; break;
case 'endInstallTypes': case 'endInstallTypes':
if (event.body) { if (event.body) {
const data = (event as Proto.EndInstallTypesEvent).body; this._onDidEndInstallTypings.fire((event as Proto.EndInstallTypesEvent).body);
this._onDidEndInstallTypings.fire(data);
} }
break; break;
case 'typesInstallerInitializationFailed': case 'typesInstallerInitializationFailed':
if (event.body) { if (event.body) {
const data = (event as Proto.TypesInstallerInitializationFailedEvent).body; this._onTypesInstallerInitializationFailed.fire((event as Proto.TypesInstallerInitializationFailedEvent).body);
this._onTypesInstallerInitializationFailed.fire(data);
} }
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册