File tree 3 files changed +235
-334
lines changed
3 files changed +235
-334
lines changed Original file line number Diff line number Diff line change 8
8
" -DTEST_ARGUMENT_SET_VIA_TEST_BUILD_ARGUMENTS_SETTING"
9
9
],
10
10
"lldb.verboseLogging" : true ,
11
- "swift.backgroundCompilation" : false
11
+ "swift.backgroundCompilation" : false ,
12
+ "swift.diagnosticsStyle" : " llvm" ,
13
+ "swift.diagnosticsCollection" : " onlySwiftc"
12
14
}
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ export type DiagnosticCollectionOptions =
36
36
| "keepSwiftc"
37
37
| "keepSourceKit"
38
38
| "keepAll" ;
39
+ export type DiagnosticStyle = "default" | "llvm" | "swift" ;
39
40
40
41
/** sourcekit-lsp configuration */
41
42
export interface LSPConfiguration {
@@ -367,8 +368,10 @@ const configuration = {
367
368
. get < DiagnosticCollectionOptions > ( "diagnosticsCollection" , "keepSourceKit" ) ;
368
369
} ,
369
370
/** set the -diagnostic-style option when running `swift` tasks */
370
- get diagnosticsStyle ( ) : "default" | "llvm" | "swift" {
371
- return vscode . workspace . getConfiguration ( "swift" ) . get ( "diagnosticsStyle" , "llvm" ) ;
371
+ get diagnosticsStyle ( ) : DiagnosticStyle {
372
+ return vscode . workspace
373
+ . getConfiguration ( "swift" )
374
+ . get < DiagnosticStyle > ( "diagnosticsStyle" , "llvm" ) ;
372
375
} ,
373
376
/** where to show the build progress for the running task */
374
377
get showBuildStatus ( ) : ShowBuildStatusOptions {
You can’t perform that action at this time.
0 commit comments