mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Component commits:7721570861Harden telemetryOnOpenFile9535e7b258Merge branch 'master' of https://github.com/RyanCavanaugh/TypeScript into fix36984 Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
This commit is contained in:
co-authored by
Ryan Cavanaugh
parent
98fc0753f5
commit
d76a45a6aa
@@ -3117,8 +3117,9 @@ namespace ts.server {
|
||||
return;
|
||||
}
|
||||
|
||||
const info: OpenFileInfo = { checkJs: !!project.getSourceFile(scriptInfo.path)!.checkJsDirective };
|
||||
this.eventHandler({ eventName: OpenFileInfoTelemetryEvent, data: { info } });
|
||||
const sourceFile = project.getSourceFile(scriptInfo.path);
|
||||
const checkJs = !!sourceFile && !!sourceFile.checkJsDirective;
|
||||
this.eventHandler({ eventName: OpenFileInfoTelemetryEvent, data: { info: { checkJs } } });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user