Skip to content

Commit 3646809

Browse files
author
Ben Lichtman
committed
Move helper function outside class
1 parent c0f187a commit 3646809

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/server/session.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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)!,

0 commit comments

Comments
 (0)