File tree Expand file tree Collapse file tree 3 files changed +7
-18
lines changed Expand file tree Collapse file tree 3 files changed +7
-18
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,8 @@ namespace swift {
89
89
bool DisableAvailabilityChecking = false ;
90
90
91
91
// / Maximum number of typo corrections we are allowed to perform.
92
- unsigned TypoCorrectionLimit = 10 ;
92
+ // / This is disabled by default until we can get typo-correction working within acceptable performance bounds.
93
+ unsigned TypoCorrectionLimit = 0 ;
93
94
94
95
// / Should access control be respected?
95
96
bool EnableAccessControl = true ;
Original file line number Diff line number Diff line change 12
12
key.column: 16,
13
13
key.filepath: real.swift,
14
14
key.severity: source.diagnostic.severity.error,
15
- key.description: "use of unresolved identifier 'goo'; did you mean 'Bool'? ",
15
+ key.description: "use of unresolved identifier 'goo'",
16
16
key.diagnostic_stage: source.diagnostic.stage.swift.sema,
17
17
key.ranges: [
18
18
{
19
19
key.offset: 15,
20
20
key.length: 3
21
21
}
22
- ],
23
- key.fixits: [
24
- {
25
- key.offset: 15,
26
- key.length: 3,
27
- key.sourcetext: "Bool"
28
- }
29
- ],
30
- key.diagnostics: [
31
- {
32
- key.line: 1,
33
- key.column: 16,
34
- key.filepath: real.swift,
35
- key.severity: source.diagnostic.severity.note,
36
- key.description: "'Bool' declared here (Swift.Bool)"
37
- }
38
22
]
39
23
}
40
24
]
Original file line number Diff line number Diff line change @@ -1070,6 +1070,10 @@ else:
1070
1070
lit_config .fatal ("Don't know how to define target_run and "
1071
1071
"target_build_swift for platform " + config .variant_triple )
1072
1072
1073
+ # Enable typo-correction for testing purposes.
1074
+ config .target_swift_frontend += " -typo-correction-limit 10 "
1075
+ subst_target_swift_frontend_mock_sdk += " -typo-correction-limit 10 "
1076
+
1073
1077
config .substitutions .append (('%module-target-triple' ,
1074
1078
target_specific_module_triple ))
1075
1079
You can’t perform that action at this time.
0 commit comments