File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ enum class diagnostic_arg_type : std::uint8_t {
4141 variable_kind,
4242};
4343
44+ // If we support more than two infos (i.e. more than one note), the VS Code
45+ // plugin needs to be updated. See NOTE(multiple notes).
46+ constexpr int diagnostic_max_message_count = 2 ;
47+
4448struct diagnostic_message_arg_info {
4549 // offset_shift is how many bits are removed in compact_offset.
4650 //
@@ -83,9 +87,7 @@ struct diagnostic_info {
8387
8488 std::uint16_t code : 14 ;
8589 diagnostic_severity severity : 2 QLJS_WORK_AROUND_GCC_BUG_105191;
86- // If we support more than two infos (i.e. more than one note), the VS Code
87- // plugin needs to be updated. See NOTE(multiple notes).
88- diagnostic_message_info messages[2 ];
90+ diagnostic_message_info messages[diagnostic_max_message_count];
8991};
9092
9193const diagnostic_info &get_diagnostic_info (error_type) noexcept ;
You can’t perform that action at this time.
0 commit comments