@@ -926,7 +926,10 @@ function handleMacCrashFileRead(err: NodeJS.ErrnoException | undefined | null, d
926
926
data = data . replace ( / 0 x 1 ........ \+ 0 / g, "" ) ;
927
927
928
928
// Get rid of the process names on each line and just add it to the start.
929
- const processNames : string [ ] = [ "cpptools-srv" , "cpptools-wordexp" , "cpptools" ] ;
929
+ const processNames : string [ ] = [ "cpptools-srv" , "cpptools-wordexp" , "cpptools" ,
930
+ // Since only crash logs that start with "cpptools" are reported, the cases below would only occur
931
+ // if the crash were to happen before the new process had fully started and renamed itself.
932
+ "clang-tidy" , "clang-format" , "clang" , "gcc" ] ;
930
933
let processNameFound : boolean = false ;
931
934
for ( const processName of processNames ) {
932
935
if ( data . includes ( processName ) ) {
@@ -938,7 +941,8 @@ function handleMacCrashFileRead(err: NodeJS.ErrnoException | undefined | null, d
938
941
}
939
942
if ( ! processNameFound ) {
940
943
// Not expected, but just in case a new binary gets added.
941
- data = `cpptools???\t${ binaryVersion } \n${ data } ` ;
944
+ // Warning: Don't use ??? because that is checked below.
945
+ data = `cpptools??\t${ binaryVersion } \n${ data } ` ;
942
946
}
943
947
944
948
// Remove runtime lines because they can be different on different machines.
0 commit comments