File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ namespace ts.server {
4242 return false ;
4343 }
4444
45+
46+ function dtsChangeCanAffectEmit ( compilationSettings : CompilerOptions ) {
47+ return getEmitDeclarations ( compilationSettings ) || ! ! compilationSettings . emitDecoratorMetadata ;
48+ }
49+
4550 function formatDiag ( fileName : NormalizedPath , project : Project , diag : Diagnostic ) : protocol . Diagnostic {
4651 const scriptInfo = project . getScriptInfoForNormalizedPath ( fileName ) ! ; // TODO: GH#18217
4752 return {
@@ -1599,10 +1604,6 @@ namespace ts.server {
15991604 return emptyArray ;
16001605 }
16011606
1602- function dtsChangeCanAffectEmit ( compilationSettings : CompilerOptions ) {
1603- return getEmitDeclarations ( compilationSettings ) || ! ! compilationSettings . emitDecoratorMetadata ;
1604- }
1605-
16061607 return combineProjectOutput (
16071608 info ,
16081609 path => this . projectService . getScriptInfoForPath ( path ) ! ,
You can’t perform that action at this time.
0 commit comments