@@ -13,44 +13,44 @@ export enum IndenterEndOfLineCommentStyle {
13
13
14
14
15
15
export interface IndenterViewModel {
16
- indenterVersion : string ;
17
- code : string ;
18
- indentedCode : string ;
16
+ indenterVersion : string ;
17
+ code : string ;
18
+ indentedCode : string ;
19
19
20
- // indent
21
- indentSpaces : number ;
22
- emptyLineHandlingMethod : IndenterEmptyLineHandling ;
23
- indentEntireProcedureBody : boolean ;
24
- indentFirstDeclarationBlock : boolean ;
25
- indentFirstCommentBlock : boolean ;
26
- ignoreEmptyLinesInFirstBlock : boolean ;
27
- indentEnumTypeAsProcedure : boolean ;
28
- indentCase : boolean ;
20
+ // indent
21
+ indentSpaces : number ;
22
+ emptyLineHandlingMethod : IndenterEmptyLineHandling ;
23
+ indentEntireProcedureBody : boolean ;
24
+ indentFirstDeclarationBlock : boolean ;
25
+ indentFirstCommentBlock : boolean ;
26
+ ignoreEmptyLinesInFirstBlock : boolean ;
27
+ indentEnumTypeAsProcedure : boolean ;
28
+ indentCase : boolean ;
29
29
30
- // outdent
31
- indentCompilerDirectives : boolean ;
32
- forceCompilerDirectivesInColumn1 : boolean ;
33
- forceDebugPrintInColumn1 : boolean ;
34
- forceStopInColumn1 : boolean ;
35
- forceDebugAssertInColumn1 : boolean ;
36
- forceDebugStatementsInColumn1 : boolean ;
30
+ // outdent
31
+ // indentCompilerDirectives: boolean;
32
+ forceCompilerDirectivesInColumn1 : boolean ;
33
+ forceDebugPrintInColumn1 : boolean ;
34
+ forceDebugAssertInColumn1 : boolean ;
35
+ forceDebugStatementsInColumn1 : boolean ;
36
+ forceStopInColumn1 : boolean ;
37
37
38
- // alignment
39
- alignContinuations : boolean ;
40
- ignoreOperatorsInContinuations : boolean ;
41
- alignDims : boolean ;
42
- alignDimColumn : number ;
38
+ // alignment
39
+ alignContinuations : boolean ;
40
+ ignoreOperatorsInContinuations : boolean ;
41
+ alignDims : boolean ;
42
+ alignDimColumn : number ;
43
43
44
44
45
- // comments
46
- alignCommentsWithCode : boolean ;
47
- endOfLineCommentStyle : IndenterEndOfLineCommentStyle ;
48
- endOfLineCommentColumnSpaceAlignment : number ;
45
+ // comments
46
+ alignCommentsWithCode : boolean ;
47
+ endOfLineCommentStyle : IndenterEndOfLineCommentStyle ;
48
+ endOfLineCommentColumnSpaceAlignment : number ;
49
49
50
- // vertical spacing
51
- groupRelatedProperties : boolean ;
52
- verticallySpaceProcedures : boolean ;
53
- linesBetweenProcedures : number ;
50
+ // vertical spacing
51
+ groupRelatedProperties : boolean ;
52
+ verticallySpaceProcedures : boolean ;
53
+ linesBetweenProcedures : number ;
54
54
}
55
55
56
56
export class IndenterVersionViewModelClass {
@@ -72,7 +72,7 @@ export class IndenterViewModelClass implements IndenterViewModel {
72
72
ignoreEmptyLinesInFirstBlock : boolean ;
73
73
indentEnumTypeAsProcedure : boolean ;
74
74
indentCase : boolean ;
75
- indentCompilerDirectives : boolean ;
75
+ // indentCompilerDirectives: boolean;
76
76
forceCompilerDirectivesInColumn1 : boolean ;
77
77
forceStopInColumn1 : boolean ;
78
78
forceDebugPrintInColumn1 : boolean ;
@@ -92,7 +92,7 @@ export class IndenterViewModelClass implements IndenterViewModel {
92
92
constructor ( model : IndenterViewModel ) {
93
93
this . indenterVersion = model . indenterVersion ;
94
94
this . code = model . code ;
95
- this . indentedCode = model . indentedCode ;
95
+ this . indentedCode = model . indentedCode ?? model . code ;
96
96
97
97
this . indentSpaces = model . indentSpaces ;
98
98
this . emptyLineHandlingMethod = model . emptyLineHandlingMethod ;
@@ -102,7 +102,7 @@ export class IndenterViewModelClass implements IndenterViewModel {
102
102
this . ignoreEmptyLinesInFirstBlock = model . ignoreEmptyLinesInFirstBlock ;
103
103
this . indentEnumTypeAsProcedure = model . indentEnumTypeAsProcedure ;
104
104
this . indentCase = model . indentCase ;
105
- this . indentCompilerDirectives = model . indentCompilerDirectives ;
105
+ // this.indentCompilerDirectives = model.indentCompilerDirectives;
106
106
this . forceCompilerDirectivesInColumn1 = model . forceCompilerDirectivesInColumn1 ;
107
107
this . forceStopInColumn1 = model . forceStopInColumn1 ;
108
108
this . forceDebugPrintInColumn1 = model . forceDebugPrintInColumn1 ;
0 commit comments