File tree Expand file tree Collapse file tree 3 files changed +229
-223
lines changed Expand file tree Collapse file tree 3 files changed +229
-223
lines changed Original file line number Diff line number Diff line change 7
7
" -DTEST_ARGUMENT_SET_VIA_TEST_BUILD_ARGUMENTS_SETTING"
8
8
],
9
9
"lldb.verboseLogging" : true ,
10
- "swift.backgroundCompilation" : false
10
+ "swift.backgroundCompilation" : false ,
11
+ "swift.diagnosticsStyle" : " llvm" ,
12
+ "swift.diagnosticsCollection" : " onlySwiftc"
11
13
}
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ export type DiagnosticCollectionOptions =
29
29
| "keepSwiftc"
30
30
| "keepSourceKit"
31
31
| "keepAll" ;
32
+ export type DiagnosticStyle = "default" | "llvm" | "swift" ;
32
33
33
34
/** sourcekit-lsp configuration */
34
35
export interface LSPConfiguration {
@@ -288,8 +289,10 @@ const configuration = {
288
289
. get < DiagnosticCollectionOptions > ( "diagnosticsCollection" , "keepSourceKit" ) ;
289
290
} ,
290
291
/** set the -diagnostic-style option when running `swift` tasks */
291
- get diagnosticsStyle ( ) : "default" | "llvm" | "swift" {
292
- return vscode . workspace . getConfiguration ( "swift" ) . get ( "diagnosticsStyle" , "llvm" ) ;
292
+ get diagnosticsStyle ( ) : DiagnosticStyle {
293
+ return vscode . workspace
294
+ . getConfiguration ( "swift" )
295
+ . get < DiagnosticStyle > ( "diagnosticsStyle" , "llvm" ) ;
293
296
} ,
294
297
/** where to show the build progress for the running task */
295
298
get showBuildStatus ( ) : ShowBuildStatusOptions {
You can’t perform that action at this time.
0 commit comments