diff --git a/src/completion.rs b/src/completion.rs index 8a24846..5053a59 100644 --- a/src/completion.rs +++ b/src/completion.rs @@ -146,6 +146,11 @@ fn expected_at(leading: &str, mode: Mode) -> Vec { pub struct Candidate { pub text: String, pub kind: CandidateKind, + /// Source-mode classification (ADR-0035 §4i e). `Both` (neutral) + /// except for the merged continuations of a shared entry word, where + /// the hint UI colours `Advanced`/`Simple` differently — but only + /// when the candidate list actually mixes modes. + pub mode: ModeClass, } /// Re-ranker for a freshly-computed candidate list (ADR-0024 @@ -712,26 +717,37 @@ pub fn candidates_at_cursor_with_in_mode( candidates.extend(identifiers.into_iter().map(|text| Candidate { text, kind: CandidateKind::Identifier, + mode: ModeClass::Both, })); - candidates.extend(keywords.into_iter().map(|text| Candidate { - text, - kind: CandidateKind::Keyword, + // Keywords carry their merged mode-class (Both unless a shared entry + // word mixed simple + advanced continuations — ADR-0035 §4i e). + candidates.extend(keywords.into_iter().map(|text| { + let mode = kw_mode(text.as_str()); + Candidate { + text, + kind: CandidateKind::Keyword, + mode, + } })); candidates.extend(type_names.into_iter().map(|text| Candidate { text, kind: CandidateKind::Keyword, + mode: ModeClass::Both, })); candidates.extend(composites.into_iter().map(|text| Candidate { text, kind: CandidateKind::Keyword, + mode: ModeClass::Both, })); candidates.extend(punct_candidates.into_iter().map(|text| Candidate { text, kind: CandidateKind::Punct, + mode: ModeClass::Both, })); candidates.extend(flags.into_iter().map(|text| Candidate { text, kind: CandidateKind::Flag, + mode: ModeClass::Both, })); if candidates.is_empty() { @@ -2219,6 +2235,7 @@ mod tests { Candidate { text: text.to_string(), kind: CandidateKind::Keyword, + mode: ModeClass::Both, } } @@ -2260,14 +2277,17 @@ mod tests { Candidate { text: "b".to_string(), kind: CandidateKind::Keyword, + mode: ModeClass::Both, }, Candidate { text: "a".to_string(), kind: CandidateKind::Keyword, + mode: ModeClass::Both, }, Candidate { text: "c".to_string(), kind: CandidateKind::Identifier, + mode: ModeClass::Both, }, ]; let out = identity_ranker(input.clone()); diff --git a/src/input_render.rs b/src/input_render.rs index 6199edd..2ac1147 100644 --- a/src/input_render.rs +++ b/src/input_render.rs @@ -1495,8 +1495,8 @@ mod tests { inserted_range: (5, 5), original_text: String::new(), candidates: vec![ - Candidate { text: "data".to_string(), kind: CandidateKind::Keyword }, - Candidate { text: "table".to_string(), kind: CandidateKind::Keyword }, + Candidate { text: "data".to_string(), kind: CandidateKind::Keyword, mode: crate::completion::ModeClass::Both }, + Candidate { text: "table".to_string(), kind: CandidateKind::Keyword, mode: crate::completion::ModeClass::Both }, ], selection_idx: 1, }; @@ -1529,8 +1529,8 @@ mod tests { // produce — proves the memo's list is being used, // not a recomputed one. candidates: vec![ - Candidate { text: "data".to_string(), kind: CandidateKind::Keyword }, - Candidate { text: "table".to_string(), kind: CandidateKind::Keyword }, + Candidate { text: "data".to_string(), kind: CandidateKind::Keyword, mode: crate::completion::ModeClass::Both }, + Candidate { text: "table".to_string(), kind: CandidateKind::Keyword, mode: crate::completion::ModeClass::Both }, ], selection_idx: 1, }; diff --git a/src/ui.rs b/src/ui.rs index 524c33c..03e6ae2 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -915,13 +915,35 @@ fn render_candidate_line( } let separator_style = Style::default().fg(theme.muted); let marker_style = Style::default().fg(theme.fg); + // (ADR-0035 §4i e) When a shared entry word merged simple + advanced + // continuations, the list mixes mode-classes — colour SQL-only + // (`Advanced`) and DSL-only (`Simple`) continuations with the mode + // palette so a learner sees which is which; `Both` (and every + // single-mode list) keeps the token-kind colour, so the tint appears + // only where it is informative. + let mixed = { + let mut seen = std::collections::HashSet::new(); + for c in items { + seen.insert(c.mode.block_order()); + } + seen.len() > 1 + }; let style_for = |i: usize| { - let base_fg = match items[i].kind { + let kind_fg = match items[i].kind { crate::completion::CandidateKind::Keyword => theme.tok_keyword, crate::completion::CandidateKind::Identifier => theme.tok_identifier, crate::completion::CandidateKind::Flag => theme.tok_flag, crate::completion::CandidateKind::Punct => theme.tok_punct, }; + let base_fg = if mixed { + match items[i].mode { + crate::completion::ModeClass::Both => kind_fg, + crate::completion::ModeClass::Advanced => theme.mode_advanced, + crate::completion::ModeClass::Simple => theme.mode_simple, + } + } else { + kind_fg + }; let mut s = Style::default().fg(base_fg); if Some(i) == selected { s = s.add_modifier(Modifier::BOLD); @@ -1072,6 +1094,47 @@ mod tests { assert_eq!(rendered.spans[2].style.fg, Some(theme.fg)); } + #[test] + fn candidate_line_colours_mixed_mode_continuations() { + // ADR-0035 §4i (e): when a shared entry word's completions mix + // mode-classes, Advanced (SQL-only) → mode_advanced, Simple + // (DSL-only) → mode_simple, Both → token-kind colour. Spans + // alternate candidate / separator, so candidate `i` is span `2*i`. + use crate::completion::{Candidate, CandidateKind, ModeClass}; + let theme = Theme::dark(); + let items = vec![ + Candidate { text: "table".into(), kind: CandidateKind::Keyword, mode: ModeClass::Both }, + Candidate { text: "index".into(), kind: CandidateKind::Keyword, mode: ModeClass::Advanced }, + Candidate { text: "relationship".into(), kind: CandidateKind::Keyword, mode: ModeClass::Simple }, + ]; + let line = render_candidate_line(&items, None, 100, &theme); + assert_eq!(line.spans[0].content.as_ref(), "table"); + assert_eq!(line.spans[0].style.fg, Some(theme.tok_keyword), "Both keeps the kind colour"); + assert_eq!(line.spans[2].content.as_ref(), "index"); + assert_eq!(line.spans[2].style.fg, Some(theme.mode_advanced), "Advanced → advanced colour"); + assert_eq!(line.spans[4].content.as_ref(), "relationship"); + assert_eq!(line.spans[4].style.fg, Some(theme.mode_simple), "Simple → simple colour"); + } + + #[test] + fn candidate_line_single_mode_keeps_kind_colour() { + // The mode tint applies ONLY when the list mixes classes. An + // all-one-mode list (the common case, e.g. deep inside a SQL + // statement) keeps the token-kind colours — no redundant tint. + use crate::completion::{Candidate, CandidateKind, ModeClass}; + let theme = Theme::dark(); + let items = vec![ + Candidate { text: "values".into(), kind: CandidateKind::Keyword, mode: ModeClass::Advanced }, + Candidate { text: "select".into(), kind: CandidateKind::Keyword, mode: ModeClass::Advanced }, + ]; + let line = render_candidate_line(&items, None, 100, &theme); + assert_eq!( + line.spans[0].style.fg, + Some(theme.tok_keyword), + "an all-Advanced list is not tinted (would be redundant noise)" + ); + } + #[test] fn a_line_without_styled_runs_keeps_whole_line_kind_styling() { let theme = Theme::dark(); diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__add_relationship_in_progress_after_dot_is_incomplete@in_progress_after_to.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__add_relationship_in_progress_after_dot_is_incomplete@in_progress_after_to.snap index ee2a32c..e6d74d6 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__add_relationship_in_progress_after_dot_is_incomplete@in_progress_after_to.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__add_relationship_in_progress_after_dot_is_incomplete@in_progress_after_to.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_add_offers_relationship_branch@after_add.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_add_offers_relationship_branch@after_add.snap index e38d356..11ccc7b 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_add_offers_relationship_branch@after_add.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_add_offers_relationship_branch@after_add.snap @@ -13,18 +13,22 @@ Assessment { Candidate { text: "column", kind: Keyword, + mode: Both, }, Candidate { text: "index", kind: Keyword, + mode: Both, }, Candidate { text: "constraint", kind: Keyword, + mode: Both, }, Candidate { text: "1:n", kind: Keyword, + mode: Both, }, ], selected: None, @@ -41,18 +45,22 @@ Assessment { Candidate { text: "column", kind: Keyword, + mode: Both, }, Candidate { text: "index", kind: Keyword, + mode: Both, }, Candidate { text: "constraint", kind: Keyword, + mode: Both, }, Candidate { text: "1:n", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_child_table_dot_narrows_to_child_columns@after_child_dot.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_child_table_dot_narrows_to_child_columns@after_child_dot.snap index 027a3e2..a148fd6 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_child_table_dot_narrows_to_child_columns@after_child_dot.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_child_table_dot_narrows_to_child_columns@after_child_dot.snap @@ -13,14 +13,17 @@ Assessment { Candidate { text: "CustId", kind: Identifier, + mode: Both, }, Candidate { text: "OrderId", kind: Identifier, + mode: Both, }, Candidate { text: "Total", kind: Identifier, + mode: Both, }, ], selected: None, @@ -37,14 +40,17 @@ Assessment { Candidate { text: "CustId", kind: Identifier, + mode: Both, }, Candidate { text: "OrderId", kind: Identifier, + mode: Both, }, Candidate { text: "Total", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_from_offers_table_names@after_from.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_from_offers_table_names@after_from.snap index 220d221..a74c4b6 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_from_offers_table_names@after_from.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_from_offers_table_names@after_from.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_parent_table_dot_narrows_to_parent_columns@after_parent_dot.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_parent_table_dot_narrows_to_parent_columns@after_parent_dot.snap index fd67386..0165d55 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_parent_table_dot_narrows_to_parent_columns@after_parent_dot.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__after_parent_table_dot_narrows_to_parent_columns@after_parent_dot.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__one_n_relationship_keyword_sequence_is_incomplete@after_relationship_keyword.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__one_n_relationship_keyword_sequence_is_incomplete@after_relationship_keyword.snap index cdf5b1c..475e36e 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__one_n_relationship_keyword_sequence_is_incomplete@after_relationship_keyword.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__add_relationship__one_n_relationship_keyword_sequence_is_incomplete@after_relationship_keyword.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "from", kind: Keyword, + mode: Both, }, Candidate { text: "as", kind: Keyword, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "from", kind: Keyword, + mode: Both, }, Candidate { text: "as", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__messages_space_offers_short_and_verbose@messages_space.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__messages_space_offers_short_and_verbose@messages_space.snap index a4ce0c7..b4655d6 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__messages_space_offers_short_and_verbose@messages_space.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__messages_space_offers_short_and_verbose@messages_space.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "short", kind: Keyword, + mode: Both, }, Candidate { text: "verbose", kind: Keyword, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "short", kind: Keyword, + mode: Both, }, Candidate { text: "verbose", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__mode_space_offers_simple_and_advanced@mode_space.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__mode_space_offers_simple_and_advanced@mode_space.snap index f5162d1..7204ec1 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__mode_space_offers_simple_and_advanced@mode_space.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__mode_space_offers_simple_and_advanced@mode_space.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "simple", kind: Keyword, + mode: Both, }, Candidate { text: "advanced", kind: Keyword, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "simple", kind: Keyword, + mode: Both, }, Candidate { text: "advanced", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__partial_entry_word_classifies_as_definite_error_but_completes@partial_quit.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__partial_entry_word_classifies_as_definite_error_but_completes@partial_quit.snap index 7951e4e..617624e 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__partial_entry_word_classifies_as_definite_error_but_completes@partial_quit.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__partial_entry_word_classifies_as_definite_error_but_completes@partial_quit.snap @@ -15,6 +15,7 @@ Assessment { Candidate { text: "quit", kind: Keyword, + mode: Both, }, ], selected: None, @@ -31,6 +32,7 @@ Assessment { Candidate { text: "quit", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__save_space_offers_as_keyword@save_space.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__save_space_offers_as_keyword@save_space.snap index 2bc5451..677348f 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__save_space_offers_as_keyword@save_space.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__app_commands__save_space_offers_as_keyword@save_space.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "as", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "as", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__add_column_after_to_lists_identifiers_before_table@add_column_after_to.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__add_column_after_to_lists_identifiers_before_table@add_column_after_to.snap index 18cf376..86ae84f 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__add_column_after_to_lists_identifiers_before_table@add_column_after_to.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__add_column_after_to_lists_identifiers_before_table@add_column_after_to.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/candidate_ordering.rs -assertion_line: 131 description: "input=\"add column to \" cursor=14" expression: "& a" --- @@ -14,14 +13,17 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], selected: None, @@ -38,14 +40,17 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__add_column_identifiers_precede_table_keywords@add_column_idents_then_keyword.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__add_column_identifiers_precede_table_keywords@add_column_idents_then_keyword.snap index 6e0f211..1e63454 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__add_column_identifiers_precede_table_keywords@add_column_idents_then_keyword.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__add_column_identifiers_precede_table_keywords@add_column_idents_then_keyword.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/candidate_ordering.rs -assertion_line: 98 description: "input=\"add column \" cursor=11" expression: "& a" --- @@ -14,18 +13,22 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "to", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], selected: None, @@ -42,18 +45,22 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "to", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__add_column_lists_to_before_table@add_column_connectives.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__add_column_lists_to_before_table@add_column_connectives.snap index cb09fae..1e63454 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__add_column_lists_to_before_table@add_column_connectives.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__add_column_lists_to_before_table@add_column_connectives.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/candidate_ordering.rs -assertion_line: 56 description: "input=\"add column \" cursor=11" expression: "& a" --- @@ -14,18 +13,22 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "to", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], selected: None, @@ -42,18 +45,22 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "to", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__change_column_lists_in_before_table@change_column_connectives.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__change_column_lists_in_before_table@change_column_connectives.snap index 794b5ee..e361f90 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__change_column_lists_in_before_table@change_column_connectives.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__change_column_lists_in_before_table@change_column_connectives.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/candidate_ordering.rs -assertion_line: 80 description: "input=\"change column \" cursor=14" expression: "& a" --- @@ -14,18 +13,22 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "in", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], selected: None, @@ -42,18 +45,22 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "in", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__drop_column_identifiers_precede_table_keywords@drop_column_idents_then_keyword.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__drop_column_identifiers_precede_table_keywords@drop_column_idents_then_keyword.snap index 9a9afd1..34d85c3 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__drop_column_identifiers_precede_table_keywords@drop_column_idents_then_keyword.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__drop_column_identifiers_precede_table_keywords@drop_column_idents_then_keyword.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/candidate_ordering.rs -assertion_line: 107 description: "input=\"drop column \" cursor=12" expression: "& a" --- @@ -14,18 +13,22 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "from", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], selected: None, @@ -42,18 +45,22 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "from", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__drop_column_lists_from_before_table@drop_column_connectives.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__drop_column_lists_from_before_table@drop_column_connectives.snap index a3de0c1..34d85c3 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__drop_column_lists_from_before_table@drop_column_connectives.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__drop_column_lists_from_before_table@drop_column_connectives.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/candidate_ordering.rs -assertion_line: 64 description: "input=\"drop column \" cursor=12" expression: "& a" --- @@ -14,18 +13,22 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "from", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], selected: None, @@ -42,18 +45,22 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "from", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__insert_into_table_keyword_precedes_nothing_when_only_idents@insert_into_idents_only.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__insert_into_table_keyword_precedes_nothing_when_only_idents@insert_into_idents_only.snap index 3980b0c..22d2690 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__insert_into_table_keyword_precedes_nothing_when_only_idents@insert_into_idents_only.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__insert_into_table_keyword_precedes_nothing_when_only_idents@insert_into_idents_only.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__rename_column_lists_in_before_table@rename_column_connectives.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__rename_column_lists_in_before_table@rename_column_connectives.snap index e069640..8866fd8 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__rename_column_lists_in_before_table@rename_column_connectives.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__candidate_ordering__rename_column_lists_in_before_table@rename_column_connectives.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/candidate_ordering.rs -assertion_line: 72 description: "input=\"rename column \" cursor=14" expression: "& a" --- @@ -14,18 +13,22 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "in", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], selected: None, @@ -42,18 +45,22 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "in", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_column_after_type_offers_constraint_keywords@add_column_constraint_suffix.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_column_after_type_offers_constraint_keywords@add_column_constraint_suffix.snap index 73faabf..09227f1 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_column_after_type_offers_constraint_keywords@add_column_constraint_suffix.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_column_after_type_offers_constraint_keywords@add_column_constraint_suffix.snap @@ -13,18 +13,22 @@ Assessment { Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "unique", kind: Keyword, + mode: Both, }, Candidate { text: "default", kind: Keyword, + mode: Both, }, Candidate { text: "check", kind: Keyword, + mode: Both, }, ], selected: None, @@ -41,18 +45,22 @@ Assessment { Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "unique", kind: Keyword, + mode: Both, }, Candidate { text: "default", kind: Keyword, + mode: Both, }, Candidate { text: "check", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_column_check_suffix_parses@add_column_check_suffix.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_column_check_suffix_parses@add_column_check_suffix.snap index 03c7a36..4c8a074 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_column_check_suffix_parses@add_column_check_suffix.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_column_check_suffix_parses@add_column_check_suffix.snap @@ -23,18 +23,22 @@ Assessment { Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "unique", kind: Keyword, + mode: Both, }, Candidate { text: "default", kind: Keyword, + mode: Both, }, Candidate { text: "check", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_constraint_dot_narrows_to_table_columns@add_constraint_dot_columns.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_constraint_dot_narrows_to_table_columns@add_constraint_dot_columns.snap index 143e988..902ca63 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_constraint_dot_narrows_to_table_columns@add_constraint_dot_columns.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_constraint_dot_narrows_to_table_columns@add_constraint_dot_columns.snap @@ -13,14 +13,17 @@ Assessment { Candidate { text: "CustId", kind: Identifier, + mode: Both, }, Candidate { text: "OrderId", kind: Identifier, + mode: Both, }, Candidate { text: "Total", kind: Identifier, + mode: Both, }, ], selected: None, @@ -37,14 +40,17 @@ Assessment { Candidate { text: "CustId", kind: Identifier, + mode: Both, }, Candidate { text: "OrderId", kind: Identifier, + mode: Both, }, Candidate { text: "Total", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_constraint_offers_the_four_kinds@add_constraint_kinds.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_constraint_offers_the_four_kinds@add_constraint_kinds.snap index e9437d1..52bd5a9 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_constraint_offers_the_four_kinds@add_constraint_kinds.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_constraint_offers_the_four_kinds@add_constraint_kinds.snap @@ -13,18 +13,22 @@ Assessment { Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "unique", kind: Keyword, + mode: Both, }, Candidate { text: "default", kind: Keyword, + mode: Both, }, Candidate { text: "check", kind: Keyword, + mode: Both, }, ], selected: None, @@ -41,18 +45,22 @@ Assessment { Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "unique", kind: Keyword, + mode: Both, }, Candidate { text: "default", kind: Keyword, + mode: Both, }, Candidate { text: "check", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_constraint_to_offers_table_names@add_constraint_to_tables.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_constraint_to_offers_table_names@add_constraint_to_tables.snap index 468c90a..9e5b6a0 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_constraint_to_offers_table_names@add_constraint_to_tables.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__add_constraint_to_offers_table_names@add_constraint_to_tables.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__after_add_offers_constraint_branch@after_add_constraint_branch.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__after_add_offers_constraint_branch@after_add_constraint_branch.snap index 4e9f69b..cad760f 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__after_add_offers_constraint_branch@after_add_constraint_branch.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__after_add_offers_constraint_branch@after_add_constraint_branch.snap @@ -13,18 +13,22 @@ Assessment { Candidate { text: "column", kind: Keyword, + mode: Both, }, Candidate { text: "index", kind: Keyword, + mode: Both, }, Candidate { text: "constraint", kind: Keyword, + mode: Both, }, Candidate { text: "1:n", kind: Keyword, + mode: Both, }, ], selected: None, @@ -41,18 +45,22 @@ Assessment { Candidate { text: "column", kind: Keyword, + mode: Both, }, Candidate { text: "index", kind: Keyword, + mode: Both, }, Candidate { text: "constraint", kind: Keyword, + mode: Both, }, Candidate { text: "1:n", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__after_drop_offers_constraint_branch@after_drop_constraint_branch.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__after_drop_offers_constraint_branch@after_drop_constraint_branch.snap index 3ac9bc2..63a1a95 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__after_drop_offers_constraint_branch@after_drop_constraint_branch.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__after_drop_offers_constraint_branch@after_drop_constraint_branch.snap @@ -13,22 +13,27 @@ Assessment { Candidate { text: "column", kind: Keyword, + mode: Both, }, Candidate { text: "relationship", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, Candidate { text: "index", kind: Keyword, + mode: Both, }, Candidate { text: "constraint", kind: Keyword, + mode: Both, }, ], selected: None, @@ -45,22 +50,27 @@ Assessment { Candidate { text: "column", kind: Keyword, + mode: Both, }, Candidate { text: "relationship", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, Candidate { text: "index", kind: Keyword, + mode: Both, }, Candidate { text: "constraint", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__create_table_check_suffix_parses@create_table_check_suffix.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__create_table_check_suffix_parses@create_table_check_suffix.snap index 777d4b7..150af9a 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__create_table_check_suffix_parses@create_table_check_suffix.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__create_table_check_suffix_parses@create_table_check_suffix.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/constraints.rs -assertion_line: 30 description: "input=\"create table Ages with pk age(int) check (age >= 0)\" cursor=51" expression: "& a" --- @@ -14,18 +13,22 @@ Assessment { Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "unique", kind: Keyword, + mode: Both, }, Candidate { text: "default", kind: Keyword, + mode: Both, }, Candidate { text: "check", kind: Keyword, + mode: Both, }, ], selected: None, @@ -42,18 +45,22 @@ Assessment { Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "unique", kind: Keyword, + mode: Both, }, Candidate { text: "default", kind: Keyword, + mode: Both, }, Candidate { text: "check", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__create_table_default_suffix_parses@create_table_default_suffix.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__create_table_default_suffix_parses@create_table_default_suffix.snap index 21094e0..a543aea 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__create_table_default_suffix_parses@create_table_default_suffix.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__create_table_default_suffix_parses@create_table_default_suffix.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/constraints.rs -assertion_line: 19 description: "input=\"create table Books with pk isbn(text) default '000'\" cursor=51" expression: "& a" --- @@ -14,18 +13,22 @@ Assessment { Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "unique", kind: Keyword, + mode: Both, }, Candidate { text: "default", kind: Keyword, + mode: Both, }, Candidate { text: "check", kind: Keyword, + mode: Both, }, ], selected: None, @@ -42,18 +45,22 @@ Assessment { Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "unique", kind: Keyword, + mode: Both, }, Candidate { text: "default", kind: Keyword, + mode: Both, }, Candidate { text: "check", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__drop_constraint_offers_the_four_kinds@drop_constraint_kinds.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__drop_constraint_offers_the_four_kinds@drop_constraint_kinds.snap index 4f91b13..8010701 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__drop_constraint_offers_the_four_kinds@drop_constraint_kinds.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__constraints__drop_constraint_offers_the_four_kinds@drop_constraint_kinds.snap @@ -13,18 +13,22 @@ Assessment { Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "unique", kind: Keyword, + mode: Both, }, Candidate { text: "default", kind: Keyword, + mode: Both, }, Candidate { text: "check", kind: Keyword, + mode: Both, }, ], selected: None, @@ -41,18 +45,22 @@ Assessment { Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "unique", kind: Keyword, + mode: Both, }, Candidate { text: "default", kind: Keyword, + mode: Both, }, Candidate { text: "check", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_create_expects_table@after_create.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_create_expects_table@after_create.snap index df55905..f2e64e4 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_create_expects_table@after_create.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_create_expects_table@after_create.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "table", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "table", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_new_table_name_expects_with@after_new_table_name.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_new_table_name_expects_with@after_new_table_name.snap index c2e119a..e092792 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_new_table_name_expects_with@after_new_table_name.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_new_table_name_expects_with@after_new_table_name.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "with", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "with", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_paren_expects_type_candidates@after_paren.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_paren_expects_type_candidates@after_paren.snap index 10f02df..9aefae2 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_paren_expects_type_candidates@after_paren.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_paren_expects_type_candidates@after_paren.snap @@ -13,42 +13,52 @@ Assessment { Candidate { text: "text", kind: Keyword, + mode: Both, }, Candidate { text: "int", kind: Keyword, + mode: Both, }, Candidate { text: "real", kind: Keyword, + mode: Both, }, Candidate { text: "decimal", kind: Keyword, + mode: Both, }, Candidate { text: "bool", kind: Keyword, + mode: Both, }, Candidate { text: "date", kind: Keyword, + mode: Both, }, Candidate { text: "datetime", kind: Keyword, + mode: Both, }, Candidate { text: "blob", kind: Keyword, + mode: Both, }, Candidate { text: "serial", kind: Keyword, + mode: Both, }, Candidate { text: "shortid", kind: Keyword, + mode: Both, }, ], selected: None, @@ -65,42 +75,52 @@ Assessment { Candidate { text: "text", kind: Keyword, + mode: Both, }, Candidate { text: "int", kind: Keyword, + mode: Both, }, Candidate { text: "real", kind: Keyword, + mode: Both, }, Candidate { text: "decimal", kind: Keyword, + mode: Both, }, Candidate { text: "bool", kind: Keyword, + mode: Both, }, Candidate { text: "date", kind: Keyword, + mode: Both, }, Candidate { text: "datetime", kind: Keyword, + mode: Both, }, Candidate { text: "blob", kind: Keyword, + mode: Both, }, Candidate { text: "serial", kind: Keyword, + mode: Both, }, Candidate { text: "shortid", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_with_expects_pk@after_with.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_with_expects_pk@after_with.snap index 617901f..1da5358 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_with_expects_pk@after_with.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__after_with_expects_pk@after_with.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "pk", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "pk", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__create_table_with_compound_pk_parses@with_compound_pk.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__create_table_with_compound_pk_parses@with_compound_pk.snap index 0470fa2..2b469f2 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__create_table_with_compound_pk_parses@with_compound_pk.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__create_table_with_compound_pk_parses@with_compound_pk.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/create_table.rs -assertion_line: 117 description: "input=\"create table Memberships with pk UserId(int), GroupId(int)\" cursor=58" expression: "& a" --- @@ -14,18 +13,22 @@ Assessment { Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "unique", kind: Keyword, + mode: Both, }, Candidate { text: "default", kind: Keyword, + mode: Both, }, Candidate { text: "check", kind: Keyword, + mode: Both, }, ], selected: None, @@ -42,18 +45,22 @@ Assessment { Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "unique", kind: Keyword, + mode: Both, }, Candidate { text: "default", kind: Keyword, + mode: Both, }, Candidate { text: "check", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__create_table_with_explicit_pk_parses@with_explicit_pk.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__create_table_with_explicit_pk_parses@with_explicit_pk.snap index c57703e..a16bcb4 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__create_table_with_explicit_pk_parses@with_explicit_pk.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__create_table__create_table_with_explicit_pk_parses@with_explicit_pk.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/create_table.rs -assertion_line: 106 description: "input=\"create table Customers with pk Code(text)\" cursor=41" expression: "& a" --- @@ -14,18 +13,22 @@ Assessment { Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "unique", kind: Keyword, + mode: Both, }, Candidate { text: "default", kind: Keyword, + mode: Both, }, Candidate { text: "check", kind: Keyword, + mode: Both, }, ], selected: None, @@ -42,18 +45,22 @@ Assessment { Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "unique", kind: Keyword, + mode: Both, }, Candidate { text: "default", kind: Keyword, + mode: Both, }, Candidate { text: "check", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_all_rows__delete_partial_flag_is_incomplete@partial_flag.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_all_rows__delete_partial_flag_is_incomplete@partial_flag.snap index d90444f..f0261f3 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_all_rows__delete_partial_flag_is_incomplete@partial_flag.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_all_rows__delete_partial_flag_is_incomplete@partial_flag.snap @@ -15,6 +15,7 @@ Assessment { Candidate { text: "--all-rows", kind: Flag, + mode: Both, }, ], selected: None, @@ -31,6 +32,7 @@ Assessment { Candidate { text: "--all-rows", kind: Flag, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_all_rows__delete_without_filter_clause_is_incomplete@no_filter.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_all_rows__delete_without_filter_clause_is_incomplete@no_filter.snap index bb266dd..b56508f 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_all_rows__delete_without_filter_clause_is_incomplete@no_filter.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_all_rows__delete_without_filter_clause_is_incomplete@no_filter.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_delete_expects_from@after_delete.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_delete_expects_from@after_delete.snap index 37b0690..e21d1e3 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_delete_expects_from@after_delete.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_delete_expects_from@after_delete.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "from", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "from", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_from_offers_table_names@after_from.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_from_offers_table_names@after_from.snap index d7bc096..46ffb01 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_from_offers_table_names@after_from.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_from_offers_table_names@after_from.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_table_expects_filter_clause@after_table_name.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_table_expects_filter_clause@after_table_name.snap index 6affbf3..437b957 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_table_expects_filter_clause@after_table_name.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_table_expects_filter_clause@after_table_name.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "where", kind: Keyword, + mode: Both, }, Candidate { text: "--all-rows", kind: Flag, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "where", kind: Keyword, + mode: Both, }, Candidate { text: "--all-rows", kind: Flag, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_where_column_equals_offers_typed_prose@after_where_equals.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_where_column_equals_offers_typed_prose@after_where_equals.snap index 9e2ba8f..1cc7e26 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_where_column_equals_offers_typed_prose@after_where_equals.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_where_column_equals_offers_typed_prose@after_where_equals.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/delete_with_where.rs -assertion_line: 60 description: "input=\"delete from Customers where Email=\" cursor=34" expression: "& a" --- @@ -24,26 +23,32 @@ Assessment { Candidate { text: "Email", kind: Identifier, + mode: Both, }, Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, Candidate { text: "null", kind: Keyword, + mode: Both, }, Candidate { text: "true", kind: Keyword, + mode: Both, }, Candidate { text: "false", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_where_offers_active_table_columns_no_leakage@after_where.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_where_offers_active_table_columns_no_leakage@after_where.snap index 14d2ed3..2610e13 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_where_offers_active_table_columns_no_leakage@after_where.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__after_where_offers_active_table_columns_no_leakage@after_where.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/delete_with_where.rs -assertion_line: 39 description: "input=\"delete from Customers where \" cursor=28" expression: "& a" --- @@ -14,30 +13,37 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "null", kind: Keyword, + mode: Both, }, Candidate { text: "true", kind: Keyword, + mode: Both, }, Candidate { text: "false", kind: Keyword, + mode: Both, }, Candidate { text: "(", kind: Punct, + mode: Both, }, ], selected: None, @@ -54,30 +60,37 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "null", kind: Keyword, + mode: Both, }, Candidate { text: "true", kind: Keyword, + mode: Both, }, Candidate { text: "false", kind: Keyword, + mode: Both, }, Candidate { text: "(", kind: Punct, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__delete_with_datetime_column_says_yyyy_mm_dd_t@datetime_column.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__delete_with_datetime_column_says_yyyy_mm_dd_t@datetime_column.snap index 0b2072b..97aeafb 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__delete_with_datetime_column_says_yyyy_mm_dd_t@datetime_column.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__delete_with_where__delete_with_datetime_column_says_yyyy_mm_dd_t@datetime_column.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/delete_with_where.rs -assertion_line: 86 description: "input=\"delete from Things where ts=\" cursor=28" expression: "& a" --- @@ -24,54 +23,67 @@ Assessment { Candidate { text: "auto", kind: Identifier, + mode: Both, }, Candidate { text: "b", kind: Identifier, + mode: Both, }, Candidate { text: "d", kind: Identifier, + mode: Both, }, Candidate { text: "data", kind: Identifier, + mode: Both, }, Candidate { text: "dt", kind: Identifier, + mode: Both, }, Candidate { text: "k", kind: Identifier, + mode: Both, }, Candidate { text: "note", kind: Identifier, + mode: Both, }, Candidate { text: "r", kind: Identifier, + mode: Both, }, Candidate { text: "sid", kind: Identifier, + mode: Both, }, Candidate { text: "ts", kind: Identifier, + mode: Both, }, Candidate { text: "null", kind: Keyword, + mode: Both, }, Candidate { text: "true", kind: Keyword, + mode: Both, }, Candidate { text: "false", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_colon_offers_only_active_table_columns_no_leakage@after_colon_multi_table.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_colon_offers_only_active_table_columns_no_leakage@after_colon_multi_table.snap index 036015a..fa8b023 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_colon_offers_only_active_table_columns_no_leakage@after_colon_multi_table.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_colon_offers_only_active_table_columns_no_leakage@after_colon_multi_table.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_colon_serial_pk_offers_all_columns@after_colon_serial_pk.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_colon_serial_pk_offers_all_columns@after_colon_serial_pk.snap index babfa55..cd6a820 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_colon_serial_pk_offers_all_columns@after_colon_serial_pk.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_colon_serial_pk_offers_all_columns@after_colon_serial_pk.snap @@ -13,14 +13,17 @@ Assessment { Candidate { text: "Email", kind: Identifier, + mode: Both, }, Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], selected: None, @@ -37,14 +40,17 @@ Assessment { Candidate { text: "Email", kind: Identifier, + mode: Both, }, Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_drop_column_offers_table_names@after_from.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_drop_column_offers_table_names@after_from.snap index 5fe61c8..3d84eec 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_drop_column_offers_table_names@after_from.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_drop_column_offers_table_names@after_from.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/drop_column.rs -assertion_line: 19 description: "input=\"drop column from \" cursor=17" expression: "& a" --- @@ -14,14 +13,17 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], selected: None, @@ -38,14 +40,17 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_table_name_expects_colon@after_table_name.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_table_name_expects_colon@after_table_name.snap index d0e743f..74c4d84 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_table_name_expects_colon@after_table_name.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_column__after_table_name_expects_colon@after_table_name.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_child_table_dot_narrows_to_child_columns@after_child_dot.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_child_table_dot_narrows_to_child_columns@after_child_dot.snap index ca47fe8..687cd6c 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_child_table_dot_narrows_to_child_columns@after_child_dot.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_child_table_dot_narrows_to_child_columns@after_child_dot.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_from_offers_table_names@after_from.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_from_offers_table_names@after_from.snap index 14d9e45..a1fff04 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_from_offers_table_names@after_from.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_from_offers_table_names@after_from.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_parent_table_dot_narrows_to_parent_columns@after_parent_dot.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_parent_table_dot_narrows_to_parent_columns@after_parent_dot.snap index 287d4d4..13a0c44 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_parent_table_dot_narrows_to_parent_columns@after_parent_dot.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_parent_table_dot_narrows_to_parent_columns@after_parent_dot.snap @@ -13,14 +13,17 @@ Assessment { Candidate { text: "CustId", kind: Identifier, + mode: Both, }, Candidate { text: "OrderId", kind: Identifier, + mode: Both, }, Candidate { text: "Total", kind: Identifier, + mode: Both, }, ], selected: None, @@ -37,14 +40,17 @@ Assessment { Candidate { text: "CustId", kind: Identifier, + mode: Both, }, Candidate { text: "OrderId", kind: Identifier, + mode: Both, }, Candidate { text: "Total", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_relationship_keyword_offers_from_and_names@after_relationship_keyword.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_relationship_keyword_offers_from_and_names@after_relationship_keyword.snap index 25a631a..92b5cb2 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_relationship_keyword_offers_from_and_names@after_relationship_keyword.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_relationship_keyword_offers_from_and_names@after_relationship_keyword.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/drop_relationship.rs -assertion_line: 37 description: "input=\"drop relationship \" cursor=18" expression: "& a" --- @@ -14,10 +13,12 @@ Assessment { Candidate { text: "Orders_CustId_to_Customers", kind: Identifier, + mode: Both, }, Candidate { text: "from", kind: Keyword, + mode: Both, }, ], selected: None, @@ -34,10 +35,12 @@ Assessment { Candidate { text: "Orders_CustId_to_Customers", kind: Identifier, + mode: Both, }, Candidate { text: "from", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_to_offers_table_names@after_to.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_to_offers_table_names@after_to.snap index 5132a64..d322a8f 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_to_offers_table_names@after_to.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__drop_relationship__after_to_offers_table_names@after_to.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_delete_expects_from@after_explain_delete.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_delete_expects_from@after_explain_delete.snap index de7eb4f..5f00085 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_delete_expects_from@after_explain_delete.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_delete_expects_from@after_explain_delete.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "from", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "from", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_delete_from_table_expects_filter_clause@after_explain_delete_from_table.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_delete_from_table_expects_filter_clause@after_explain_delete_from_table.snap index 1ba435f..4920431 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_delete_from_table_expects_filter_clause@after_explain_delete_from_table.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_delete_from_table_expects_filter_clause@after_explain_delete_from_table.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "where", kind: Keyword, + mode: Both, }, Candidate { text: "--all-rows", kind: Flag, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "where", kind: Keyword, + mode: Both, }, Candidate { text: "--all-rows", kind: Flag, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_offers_the_three_explainable_commands@after_explain.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_offers_the_three_explainable_commands@after_explain.snap index 59cb028..7d95648 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_offers_the_three_explainable_commands@after_explain.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_offers_the_three_explainable_commands@after_explain.snap @@ -13,14 +13,17 @@ Assessment { Candidate { text: "show", kind: Keyword, + mode: Both, }, Candidate { text: "update", kind: Keyword, + mode: Both, }, Candidate { text: "delete", kind: Keyword, + mode: Both, }, ], selected: None, @@ -37,14 +40,17 @@ Assessment { Candidate { text: "show", kind: Keyword, + mode: Both, }, Candidate { text: "update", kind: Keyword, + mode: Both, }, Candidate { text: "delete", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_show_data_offers_table_names@after_explain_show_data.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_show_data_offers_table_names@after_explain_show_data.snap index a5614cb..3dd142e 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_show_data_offers_table_names@after_explain_show_data.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_show_data_offers_table_names@after_explain_show_data.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_show_data_table_offers_where_and_limit@after_explain_show_data_table.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_show_data_table_offers_where_and_limit@after_explain_show_data_table.snap index 832fc45..79598ff 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_show_data_table_offers_where_and_limit@after_explain_show_data_table.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_show_data_table_offers_where_and_limit@after_explain_show_data_table.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "where", kind: Keyword, + mode: Both, }, Candidate { text: "limit", kind: Keyword, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "where", kind: Keyword, + mode: Both, }, Candidate { text: "limit", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_show_expects_data@after_explain_show.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_show_expects_data@after_explain_show.snap index ba1d1c4..c020bdd 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_show_expects_data@after_explain_show.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_show_expects_data@after_explain_show.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "data", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "data", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_update_offers_table_names@after_explain_update.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_update_offers_table_names@after_explain_update.snap index 3f746f8..ee073a7 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_update_offers_table_names@after_explain_update.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_update_offers_table_names@after_explain_update.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_update_table_expects_set@after_explain_update_table.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_update_table_expects_set@after_explain_update_table.snap index ce62854..4fc061c 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_update_table_expects_set@after_explain_update_table.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__after_explain_update_table_expects_set@after_explain_update_table.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "set", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "set", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__explain_show_data_where_offers_active_table_columns_no_leakage@explain_show_data_where.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__explain_show_data_where_offers_active_table_columns_no_leakage@explain_show_data_where.snap index 2b69756..fc979d1 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__explain_show_data_where_offers_active_table_columns_no_leakage@explain_show_data_where.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__explain__explain_show_data_where_offers_active_table_columns_no_leakage@explain_show_data_where.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/explain.rs -assertion_line: 54 description: "input=\"explain show data Customers where \" cursor=34" expression: "& a" --- @@ -14,30 +13,37 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "null", kind: Keyword, + mode: Both, }, Candidate { text: "true", kind: Keyword, + mode: Both, }, Candidate { text: "false", kind: Keyword, + mode: Both, }, Candidate { text: "(", kind: Punct, + mode: Both, }, ], selected: None, @@ -54,30 +60,37 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "null", kind: Keyword, + mode: Both, }, Candidate { text: "true", kind: Keyword, + mode: Both, }, Candidate { text: "false", kind: Keyword, + mode: Both, }, Candidate { text: "(", kind: Punct, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__add_index_after_on_offers_table_names@add_index_after_on.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__add_index_after_on_offers_table_names@add_index_after_on.snap index 86751f9..06145d3 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__add_index_after_on_offers_table_names@add_index_after_on.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__add_index_after_on_offers_table_names@add_index_after_on.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__add_index_open_paren_narrows_to_table_columns@add_index_open_paren.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__add_index_open_paren_narrows_to_table_columns@add_index_open_paren.snap index b533daa..19f8041 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__add_index_open_paren_narrows_to_table_columns@add_index_open_paren.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__add_index_open_paren_narrows_to_table_columns@add_index_open_paren.snap @@ -13,14 +13,17 @@ Assessment { Candidate { text: "CustId", kind: Identifier, + mode: Both, }, Candidate { text: "OrderId", kind: Identifier, + mode: Both, }, Candidate { text: "Total", kind: Identifier, + mode: Both, }, ], selected: None, @@ -37,14 +40,17 @@ Assessment { Candidate { text: "CustId", kind: Identifier, + mode: Both, }, Candidate { text: "OrderId", kind: Identifier, + mode: Both, }, Candidate { text: "Total", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__after_add_offers_index_branch@after_add_index_branch.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__after_add_offers_index_branch@after_add_index_branch.snap index 39df4b8..6d3a49d 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__after_add_offers_index_branch@after_add_index_branch.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__after_add_offers_index_branch@after_add_index_branch.snap @@ -13,18 +13,22 @@ Assessment { Candidate { text: "column", kind: Keyword, + mode: Both, }, Candidate { text: "index", kind: Keyword, + mode: Both, }, Candidate { text: "constraint", kind: Keyword, + mode: Both, }, Candidate { text: "1:n", kind: Keyword, + mode: Both, }, ], selected: None, @@ -41,18 +45,22 @@ Assessment { Candidate { text: "column", kind: Keyword, + mode: Both, }, Candidate { text: "index", kind: Keyword, + mode: Both, }, Candidate { text: "constraint", kind: Keyword, + mode: Both, }, Candidate { text: "1:n", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__after_drop_offers_index_branch@drop_index_branch.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__after_drop_offers_index_branch@drop_index_branch.snap index 371d46e..a0834e3 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__after_drop_offers_index_branch@drop_index_branch.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__index_ops__after_drop_offers_index_branch@drop_index_branch.snap @@ -13,22 +13,27 @@ Assessment { Candidate { text: "column", kind: Keyword, + mode: Both, }, Candidate { text: "relationship", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, Candidate { text: "index", kind: Keyword, + mode: Both, }, Candidate { text: "constraint", kind: Keyword, + mode: Both, }, ], selected: None, @@ -45,22 +50,27 @@ Assessment { Candidate { text: "column", kind: Keyword, + mode: Both, }, Candidate { text: "relationship", kind: Keyword, + mode: Both, }, Candidate { text: "table", kind: Keyword, + mode: Both, }, Candidate { text: "index", kind: Keyword, + mode: Both, }, Candidate { text: "constraint", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_close_paren_expects_values_keyword@after_close_paren.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_close_paren_expects_values_keyword@after_close_paren.snap index 8198655..5577dfc 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_close_paren_expects_values_keyword@after_close_paren.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_close_paren_expects_values_keyword@after_close_paren.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "values", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "values", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_insert_keyword_expects_into@after_insert_keyword.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_insert_keyword_expects_into@after_insert_keyword.snap index e7d5e57..cbd2cf6 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_insert_keyword_expects_into@after_insert_keyword.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_insert_keyword_expects_into@after_insert_keyword.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "insert", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "insert", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_insert_space_expects_into@after_insert_space.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_insert_space_expects_into@after_insert_space.snap index 90f257c..bc4b463 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_insert_space_expects_into@after_insert_space.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_insert_space_expects_into@after_insert_space.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "into", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "into", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_into_offers_table_candidates@after_into_serial_pk.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_into_offers_table_candidates@after_into_serial_pk.snap index a73bfbb..0ecc66f 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_into_offers_table_candidates@after_into_serial_pk.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_into_offers_table_candidates@after_into_serial_pk.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_into_with_multi_table_offers_both@after_into_multi_table.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_into_with_multi_table_offers_both@after_into_multi_table.snap index fe49905..4d51afc 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_into_with_multi_table_offers_both@after_into_multi_table.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_into_with_multi_table_offers_both@after_into_multi_table.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_open_paren_offers_active_table_columns_only@after_open_paren_multi_table.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_open_paren_offers_active_table_columns_only@after_open_paren_multi_table.snap index 1e6452a..7f17eec 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_open_paren_offers_active_table_columns_only@after_open_paren_multi_table.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_open_paren_offers_active_table_columns_only@after_open_paren_multi_table.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_open_paren_serial_pk_offers_all_columns_including_serial@after_open_paren_serial_pk.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_open_paren_serial_pk_offers_all_columns_including_serial@after_open_paren_serial_pk.snap index 35e9163..2d7e19f 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_open_paren_serial_pk_offers_all_columns_including_serial@after_open_paren_serial_pk.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_open_paren_serial_pk_offers_all_columns_including_serial@after_open_paren_serial_pk.snap @@ -13,14 +13,17 @@ Assessment { Candidate { text: "Email", kind: Identifier, + mode: Both, }, Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], selected: None, @@ -37,14 +40,17 @@ Assessment { Candidate { text: "Email", kind: Identifier, + mode: Both, }, Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_open_paren_text_pk_offers_text_pk_columns@after_open_paren_text_pk.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_open_paren_text_pk_offers_text_pk_columns@after_open_paren_text_pk.snap index f78d80a..b1b4bda 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_open_paren_text_pk_offers_text_pk_columns@after_open_paren_text_pk.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_open_paren_text_pk_offers_text_pk_columns@after_open_paren_text_pk.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Code", kind: Identifier, + mode: Both, }, Candidate { text: "Title", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Code", kind: Identifier, + mode: Both, }, Candidate { text: "Title", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_table_name_offers_values_and_open_paren@after_table_name.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_table_name_offers_values_and_open_paren@after_table_name.snap index 00e8567..05ec096 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_table_name_offers_values_and_open_paren@after_table_name.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_table_name_offers_values_and_open_paren@after_table_name.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "values", kind: Keyword, + mode: Both, }, Candidate { text: "(", kind: Punct, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "values", kind: Keyword, + mode: Both, }, Candidate { text: "(", kind: Punct, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_values_keyword_expects_open_paren@after_values_keyword.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_values_keyword_expects_open_paren@after_values_keyword.snap index db28184..4d1c6c6 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_values_keyword_expects_open_paren@after_values_keyword.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_values_keyword_expects_open_paren@after_values_keyword.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "(", kind: Punct, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "(", kind: Punct, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_values_open_paren_form_a_serial_column_offers_null_to_auto_generate@after_values_open_paren_serial_col.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_values_open_paren_form_a_serial_column_offers_null_to_auto_generate@after_values_open_paren_serial_col.snap index 93ece8a..632cfd0 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_values_open_paren_form_a_serial_column_offers_null_to_auto_generate@after_values_open_paren_serial_col.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_values_open_paren_form_a_serial_column_offers_null_to_auto_generate@after_values_open_paren_serial_col.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_values_open_paren_form_a_text_column_prose_names_column@after_values_open_paren_text_col.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_values_open_paren_form_a_text_column_prose_names_column@after_values_open_paren_text_col.snap index 7ba9b03..2993c95 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_values_open_paren_form_a_text_column_prose_names_column@after_values_open_paren_text_col.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__after_values_open_paren_form_a_text_column_prose_names_column@after_values_open_paren_text_col.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_bool_slot_prose_mentions_true_false@form_a_bool_slot.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_bool_slot_prose_mentions_true_false@form_a_bool_slot.snap index 5365087..8dd0fca 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_bool_slot_prose_mentions_true_false@form_a_bool_slot.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_bool_slot_prose_mentions_true_false@form_a_bool_slot.snap @@ -23,14 +23,17 @@ Assessment { Candidate { text: "true", kind: Keyword, + mode: Both, }, Candidate { text: "false", kind: Keyword, + mode: Both, }, Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_date_slot_prose_says_yyyy_mm_dd@form_a_date_slot.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_date_slot_prose_says_yyyy_mm_dd@form_a_date_slot.snap index 1f1015b..2c7655a 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_date_slot_prose_says_yyyy_mm_dd@form_a_date_slot.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_date_slot_prose_says_yyyy_mm_dd@form_a_date_slot.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_int_slot_prose_says_integer@form_a_int_slot.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_int_slot_prose_says_integer@form_a_int_slot.snap index d6f74a7..54b07fd 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_int_slot_prose_says_integer@form_a_int_slot.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_int_slot_prose_says_integer@form_a_int_slot.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_open_paren_no_leakage_from_other_tables@form_a_open_paren_orders.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_open_paren_no_leakage_from_other_tables@form_a_open_paren_orders.snap index 985fcaa..7f4ec78 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_open_paren_no_leakage_from_other_tables@form_a_open_paren_orders.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_open_paren_no_leakage_from_other_tables@form_a_open_paren_orders.snap @@ -13,14 +13,17 @@ Assessment { Candidate { text: "CustId", kind: Identifier, + mode: Both, }, Candidate { text: "OrderId", kind: Identifier, + mode: Both, }, Candidate { text: "Total", kind: Identifier, + mode: Both, }, ], selected: None, @@ -37,14 +40,17 @@ Assessment { Candidate { text: "CustId", kind: Identifier, + mode: Both, }, Candidate { text: "OrderId", kind: Identifier, + mode: Both, }, Candidate { text: "Total", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_shortid_slot_prose_mentions_null_to_auto_generate@form_a_shortid_slot.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_shortid_slot_prose_mentions_null_to_auto_generate@form_a_shortid_slot.snap index 5918c86..5a513e1 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_shortid_slot_prose_mentions_null_to_auto_generate@form_a_shortid_slot.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__form_a_shortid_slot_prose_mentions_null_to_auto_generate@form_a_shortid_slot.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__mid_column_list_after_comma_offers_remaining_columns@after_comma_in_column_list.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__mid_column_list_after_comma_offers_remaining_columns@after_comma_in_column_list.snap index a7612f5..9df228b 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__mid_column_list_after_comma_offers_remaining_columns@after_comma_in_column_list.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__mid_column_list_after_comma_offers_remaining_columns@after_comma_in_column_list.snap @@ -13,14 +13,17 @@ Assessment { Candidate { text: "Email", kind: Identifier, + mode: Both, }, Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], selected: None, @@ -37,14 +40,17 @@ Assessment { Candidate { text: "Email", kind: Identifier, + mode: Both, }, Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__mid_value_list_after_comma_advances_to_next_column_prose@after_first_value_advance_to_email.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__mid_value_list_after_comma_advances_to_next_column_prose@after_first_value_advance_to_email.snap index 089c4da..1ada488 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__mid_value_list_after_comma_advances_to_next_column_prose@after_first_value_advance_to_email.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_a__mid_value_list_after_comma_advances_to_next_column_prose@after_first_value_advance_to_email.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__after_values_space_offers_open_paren@after_values_space.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__after_values_space_offers_open_paren@after_values_space.snap index ba94cb2..61a43e5 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__after_values_space_offers_open_paren@after_values_space.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__after_values_space_offers_open_paren@after_values_space.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "(", kind: Punct, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "(", kind: Punct, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_a_first_slot_has_no_skip_note@form_a_no_skip_note.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_a_first_slot_has_no_skip_note@form_a_no_skip_note.snap index 2a382f4..2d138f1 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_a_first_slot_has_no_skip_note@form_a_no_skip_note.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_a_first_slot_has_no_skip_note@form_a_no_skip_note.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_advances_through_every_type_first_to_real@form_b_every_type_second_slot.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_advances_through_every_type_first_to_real@form_b_every_type_second_slot.snap index b3324ac..548904b 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_advances_through_every_type_first_to_real@form_b_every_type_second_slot.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_advances_through_every_type_first_to_real@form_b_every_type_second_slot.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_after_first_value_advances_to_next_column@form_b_second_value.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_after_first_value_advances_to_next_column@form_b_second_value.snap index e710bab..3c15960 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_after_first_value_advances_to_next_column@form_b_second_value.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_after_first_value_advances_to_next_column@form_b_second_value.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_slot_mentions_skipped_serial_column@form_b_first_slot_skip_note.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_slot_mentions_skipped_serial_column@form_b_first_slot_skip_note.snap index ec8533e..f1756f9 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_slot_mentions_skipped_serial_column@form_b_first_slot_skip_note.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_slot_mentions_skipped_serial_column@form_b_first_slot_skip_note.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_value_every_type_first_column_is_int@form_b_first_value_every_type.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_value_every_type_first_column_is_int@form_b_first_value_every_type.snap index 56cad15..0d4b45c 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_value_every_type_first_column_is_int@form_b_first_value_every_type.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_value_every_type_first_column_is_int@form_b_first_value_every_type.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_value_skips_serial_column@form_b_first_value_serial_pk.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_value_skips_serial_column@form_b_first_value_serial_pk.snap index ec8533e..f1756f9 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_value_skips_serial_column@form_b_first_value_serial_pk.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_value_skips_serial_column@form_b_first_value_serial_pk.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_value_text_pk_names_first_column@form_b_first_value_text_pk.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_value_text_pk_names_first_column@form_b_first_value_text_pk.snap index ba19d21..e9d3d32 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_value_text_pk_names_first_column@form_b_first_value_text_pk.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_first_value_text_pk_names_first_column@form_b_first_value_text_pk.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_in_progress_after_comma_is_incomplete@form_b_in_progress_after_comma.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_in_progress_after_comma_is_incomplete@form_b_in_progress_after_comma.snap index e710bab..3c15960 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_in_progress_after_comma_is_incomplete@form_b_in_progress_after_comma.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_in_progress_after_comma_is_incomplete@form_b_in_progress_after_comma.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_second_slot_omits_skip_note@form_b_second_slot_no_skip_note.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_second_slot_omits_skip_note@form_b_second_slot_no_skip_note.snap index e710bab..3c15960 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_second_slot_omits_skip_note@form_b_second_slot_no_skip_note.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_second_slot_omits_skip_note@form_b_second_slot_no_skip_note.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_text_pk_has_no_skip_note@form_b_text_pk_no_skip_note.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_text_pk_has_no_skip_note@form_b_text_pk_no_skip_note.snap index ba19d21..e9d3d32 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_text_pk_has_no_skip_note@form_b_text_pk_no_skip_note.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_text_pk_has_no_skip_note@form_b_text_pk_no_skip_note.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_with_extra_value_for_serial_column_is_invalid@form_b_extra_serial_value.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_with_extra_value_for_serial_column_is_invalid@form_b_extra_serial_value.snap index cfb132f..f60a8c5 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_with_extra_value_for_serial_column_is_invalid@form_b_extra_serial_value.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_b__form_b_with_extra_value_for_serial_column_is_invalid@form_b_extra_serial_value.snap @@ -25,6 +25,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_in_progress_after_comma_is_incomplete@form_c_in_progress_after_comma.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_in_progress_after_comma_is_incomplete@form_c_in_progress_after_comma.snap index 988e06a..d4bf9ee 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_in_progress_after_comma_is_incomplete@form_c_in_progress_after_comma.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_in_progress_after_comma_is_incomplete@form_c_in_progress_after_comma.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_rejects_number_for_text_column@form_c_type_mismatch.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_rejects_number_for_text_column@form_c_type_mismatch.snap index fe9911f..bac84a3 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_rejects_number_for_text_column@form_c_type_mismatch.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_rejects_number_for_text_column@form_c_type_mismatch.snap @@ -25,6 +25,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_second_slot_shows_typed_prose_for_column@form_c_typed_prose.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_second_slot_shows_typed_prose_for_column@form_c_typed_prose.snap index 988e06a..d4bf9ee 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_second_slot_shows_typed_prose_for_column@form_c_typed_prose.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_second_slot_shows_typed_prose_for_column@form_c_typed_prose.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_serial_pk_correct_values_parses@form_c_serial_pk_valid.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_serial_pk_correct_values_parses@form_c_serial_pk_valid.snap index 76646dd..367318b 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_serial_pk_correct_values_parses@form_c_serial_pk_valid.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_serial_pk_correct_values_parses@form_c_serial_pk_valid.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "values", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "values", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_text_pk_correct_values_parses@form_c_text_pk_valid.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_text_pk_correct_values_parses@form_c_text_pk_valid.snap index ed319c4..ed91304 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_text_pk_correct_values_parses@form_c_text_pk_valid.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_text_pk_correct_values_parses@form_c_text_pk_valid.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "values", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "values", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_with_column_shaped_item_flags_as_form_a_in_progress@form_c_column_shaped_recovery.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_with_column_shaped_item_flags_as_form_a_in_progress@form_c_column_shaped_recovery.snap index 2589a96..c07f372 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_with_column_shaped_item_flags_as_form_a_in_progress@form_c_column_shaped_recovery.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_with_column_shaped_item_flags_as_form_a_in_progress@form_c_column_shaped_recovery.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "values", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "values", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_with_null_value_parses@form_c_null_value.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_with_null_value_parses@form_c_null_value.snap index e43b8be..5599f10 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_with_null_value_parses@form_c_null_value.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_with_null_value_parses@form_c_null_value.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "values", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "values", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_with_two_columns_flags_as_form_a_in_progress@form_c_two_columns_recovery.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_with_two_columns_flags_as_form_a_in_progress@form_c_two_columns_recovery.snap index 44f68c2..93ba5a7 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_with_two_columns_flags_as_form_a_in_progress@form_c_two_columns_recovery.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__insert_form_c__form_c_with_two_columns_flags_as_form_a_in_progress@form_c_two_columns_recovery.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "values", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "values", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__change_after_colon_narrows_to_active_table_columns@change_after_colon_multi_table.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__change_after_colon_narrows_to_active_table_columns@change_after_colon_multi_table.snap index 78fe14b..62b5339 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__change_after_colon_narrows_to_active_table_columns@change_after_colon_multi_table.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__change_after_colon_narrows_to_active_table_columns@change_after_colon_multi_table.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__change_after_open_paren_offers_type_candidates@change_after_open_paren.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__change_after_open_paren_offers_type_candidates@change_after_open_paren.snap index bdc54bf..7832b9a 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__change_after_open_paren_offers_type_candidates@change_after_open_paren.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__change_after_open_paren_offers_type_candidates@change_after_open_paren.snap @@ -13,42 +13,52 @@ Assessment { Candidate { text: "text", kind: Keyword, + mode: Both, }, Candidate { text: "int", kind: Keyword, + mode: Both, }, Candidate { text: "real", kind: Keyword, + mode: Both, }, Candidate { text: "decimal", kind: Keyword, + mode: Both, }, Candidate { text: "bool", kind: Keyword, + mode: Both, }, Candidate { text: "date", kind: Keyword, + mode: Both, }, Candidate { text: "datetime", kind: Keyword, + mode: Both, }, Candidate { text: "blob", kind: Keyword, + mode: Both, }, Candidate { text: "serial", kind: Keyword, + mode: Both, }, Candidate { text: "shortid", kind: Keyword, + mode: Both, }, ], selected: None, @@ -65,42 +75,52 @@ Assessment { Candidate { text: "text", kind: Keyword, + mode: Both, }, Candidate { text: "int", kind: Keyword, + mode: Both, }, Candidate { text: "real", kind: Keyword, + mode: Both, }, Candidate { text: "decimal", kind: Keyword, + mode: Both, }, Candidate { text: "bool", kind: Keyword, + mode: Both, }, Candidate { text: "date", kind: Keyword, + mode: Both, }, Candidate { text: "datetime", kind: Keyword, + mode: Both, }, Candidate { text: "blob", kind: Keyword, + mode: Both, }, Candidate { text: "serial", kind: Keyword, + mode: Both, }, Candidate { text: "shortid", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__complete_change_column_parses@complete_change.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__complete_change_column_parses@complete_change.snap index 574125e..8b650b1 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__complete_change_column_parses@complete_change.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__complete_change_column_parses@complete_change.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "--force-conversion", kind: Flag, + mode: Both, }, Candidate { text: "--dont-convert", kind: Flag, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "--force-conversion", kind: Flag, + mode: Both, }, Candidate { text: "--dont-convert", kind: Flag, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__rename_after_colon_narrows_to_active_table_columns@rename_after_colon_multi_table.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__rename_after_colon_narrows_to_active_table_columns@rename_after_colon_multi_table.snap index a232e2e..e2be944 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__rename_after_colon_narrows_to_active_table_columns@rename_after_colon_multi_table.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__rename_after_colon_narrows_to_active_table_columns@rename_after_colon_multi_table.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__rename_after_old_column_expects_to@rename_after_old_column.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__rename_after_old_column_expects_to@rename_after_old_column.snap index 9fe7921..9812358 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__rename_after_old_column_expects_to@rename_after_old_column.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__rename_change_column__rename_after_old_column_expects_to@rename_after_old_column.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "to", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "to", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_all_rows__before_all_rows_flag_is_incomplete@before_all_rows.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_all_rows__before_all_rows_flag_is_incomplete@before_all_rows.snap index 3539387..8f16246 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_all_rows__before_all_rows_flag_is_incomplete@before_all_rows.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_all_rows__before_all_rows_flag_is_incomplete@before_all_rows.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "where", kind: Keyword, + mode: Both, }, Candidate { text: "--all-rows", kind: Flag, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "where", kind: Keyword, + mode: Both, }, Candidate { text: "--all-rows", kind: Flag, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_all_rows__update_partial_flag_name_is_incomplete@partial_flag.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_all_rows__update_partial_flag_name_is_incomplete@partial_flag.snap index b8642f2..e10cfab 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_all_rows__update_partial_flag_name_is_incomplete@partial_flag.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_all_rows__update_partial_flag_name_is_incomplete@partial_flag.snap @@ -15,6 +15,7 @@ Assessment { Candidate { text: "--all-rows", kind: Flag, + mode: Both, }, ], selected: None, @@ -31,6 +32,7 @@ Assessment { Candidate { text: "--all-rows", kind: Flag, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_all_rows__update_without_filter_clause_is_incomplete@no_filter_clause.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_all_rows__update_without_filter_clause_is_incomplete@no_filter_clause.snap index ee13177..7bc8551 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_all_rows__update_without_filter_clause_is_incomplete@no_filter_clause.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_all_rows__update_without_filter_clause_is_incomplete@no_filter_clause.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "where", kind: Keyword, + mode: Both, }, Candidate { text: "--all-rows", kind: Flag, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "where", kind: Keyword, + mode: Both, }, Candidate { text: "--all-rows", kind: Flag, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_assignments_expects_where_or_all_rows@after_assignments.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_assignments_expects_where_or_all_rows@after_assignments.snap index a0af927..cbdd617 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_assignments_expects_where_or_all_rows@after_assignments.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_assignments_expects_where_or_all_rows@after_assignments.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "where", kind: Keyword, + mode: Both, }, Candidate { text: "--all-rows", kind: Flag, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "where", kind: Keyword, + mode: Both, }, Candidate { text: "--all-rows", kind: Flag, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_equals_for_date_column_says_yyyy_mm_dd@after_equals_date_col.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_equals_for_date_column_says_yyyy_mm_dd@after_equals_date_col.snap index 6e6ac4c..d67af3e 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_equals_for_date_column_says_yyyy_mm_dd@after_equals_date_col.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_equals_for_date_column_says_yyyy_mm_dd@after_equals_date_col.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_equals_offers_typed_slot_prose_for_column@after_equals_text_col.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_equals_offers_typed_slot_prose_for_column@after_equals_text_col.snap index 6a6e234..d28202c 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_equals_offers_typed_slot_prose_for_column@after_equals_text_col.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_equals_offers_typed_slot_prose_for_column@after_equals_text_col.snap @@ -23,6 +23,7 @@ Assessment { Candidate { text: "null", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_set_column_expects_equals@after_set_column.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_set_column_expects_equals@after_set_column.snap index 271c481..eca9343 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_set_column_expects_equals@after_set_column.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_set_column_expects_equals@after_set_column.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "Email", kind: Identifier, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "Email", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_set_offers_only_active_table_columns_no_leakage@after_set_multi_table.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_set_offers_only_active_table_columns_no_leakage@after_set_multi_table.snap index b2d0c84..2a8f49a 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_set_offers_only_active_table_columns_no_leakage@after_set_multi_table.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_set_offers_only_active_table_columns_no_leakage@after_set_multi_table.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_set_serial_pk_offers_all_columns@after_set_serial_pk.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_set_serial_pk_offers_all_columns@after_set_serial_pk.snap index cd91bce..7ed0297 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_set_serial_pk_offers_all_columns@after_set_serial_pk.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_set_serial_pk_offers_all_columns@after_set_serial_pk.snap @@ -13,14 +13,17 @@ Assessment { Candidate { text: "Email", kind: Identifier, + mode: Both, }, Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], selected: None, @@ -37,14 +40,17 @@ Assessment { Candidate { text: "Email", kind: Identifier, + mode: Both, }, Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_table_name_expects_set_keyword@after_table_name.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_table_name_expects_set_keyword@after_table_name.snap index 20c309c..b7bf511 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_table_name_expects_set_keyword@after_table_name.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_table_name_expects_set_keyword@after_table_name.snap @@ -13,6 +13,7 @@ Assessment { Candidate { text: "set", kind: Keyword, + mode: Both, }, ], selected: None, @@ -29,6 +30,7 @@ Assessment { Candidate { text: "set", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_update_keyword_expects_table_name@after_update.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_update_keyword_expects_table_name@after_update.snap index bc7bab0..2641b33 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_update_keyword_expects_table_name@after_update.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_update_keyword_expects_table_name@after_update.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Customers", kind: Identifier, + mode: Both, }, Candidate { text: "Orders", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_where_column_equals_offers_typed_prose@after_where_equals.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_where_column_equals_offers_typed_prose@after_where_equals.snap index 8f1f4bd..1b40acc 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_where_column_equals_offers_typed_prose@after_where_equals.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_where_column_equals_offers_typed_prose@after_where_equals.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/update_with_where.rs -assertion_line: 152 description: "input=\"update Customers set Email='x' where id=\" cursor=40" expression: "& a" --- @@ -24,26 +23,32 @@ Assessment { Candidate { text: "Email", kind: Identifier, + mode: Both, }, Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, Candidate { text: "null", kind: Keyword, + mode: Both, }, Candidate { text: "true", kind: Keyword, + mode: Both, }, Candidate { text: "false", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_where_keyword_offers_active_table_columns@after_where.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_where_keyword_offers_active_table_columns@after_where.snap index dc15282..bb016c0 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_where_keyword_offers_active_table_columns@after_where.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__after_where_keyword_offers_active_table_columns@after_where.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/update_with_where.rs -assertion_line: 135 description: "input=\"update Customers set Name='x' where \" cursor=36" expression: "& a" --- @@ -14,30 +13,37 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "null", kind: Keyword, + mode: Both, }, Candidate { text: "true", kind: Keyword, + mode: Both, }, Candidate { text: "false", kind: Keyword, + mode: Both, }, Candidate { text: "(", kind: Punct, + mode: Both, }, ], selected: None, @@ -54,30 +60,37 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "null", kind: Keyword, + mode: Both, }, Candidate { text: "true", kind: Keyword, + mode: Both, }, Candidate { text: "false", kind: Keyword, + mode: Both, }, Candidate { text: "(", kind: Punct, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__mid_assignment_list_after_comma_offers_remaining_columns@mid_assignment_list.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__mid_assignment_list_after_comma_offers_remaining_columns@mid_assignment_list.snap index 34c4bd1..9d4cef9 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__mid_assignment_list_after_comma_offers_remaining_columns@mid_assignment_list.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__update_with_where__mid_assignment_list_after_comma_offers_remaining_columns@mid_assignment_list.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__after_complete_predicate_offers_and_or@after_predicate.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__after_complete_predicate_offers_and_or@after_predicate.snap index 41bf676..a6cc12f 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__after_complete_predicate_offers_and_or@after_predicate.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__after_complete_predicate_offers_and_or@after_predicate.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "and", kind: Keyword, + mode: Both, }, Candidate { text: "or", kind: Keyword, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "and", kind: Keyword, + mode: Both, }, Candidate { text: "or", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__after_not_keyword_expects_a_predicate@after_not.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__after_not_keyword_expects_a_predicate@after_not.snap index 301b0c0..d9f075e 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__after_not_keyword_expects_a_predicate@after_not.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__after_not_keyword_expects_a_predicate@after_not.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/where_expression.rs -assertion_line: 42 description: "input=\"delete from Customers where not \" cursor=32" expression: "& a" --- @@ -14,34 +13,42 @@ Assessment { Candidate { text: "Email", kind: Identifier, + mode: Both, }, Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "null", kind: Keyword, + mode: Both, }, Candidate { text: "true", kind: Keyword, + mode: Both, }, Candidate { text: "false", kind: Keyword, + mode: Both, }, Candidate { text: "(", kind: Punct, + mode: Both, }, ], selected: None, @@ -58,34 +65,42 @@ Assessment { Candidate { text: "Email", kind: Identifier, + mode: Both, }, Candidate { text: "Name", kind: Identifier, + mode: Both, }, Candidate { text: "id", kind: Identifier, + mode: Both, }, Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "null", kind: Keyword, + mode: Both, }, Candidate { text: "true", kind: Keyword, + mode: Both, }, Candidate { text: "false", kind: Keyword, + mode: Both, }, Candidate { text: "(", kind: Punct, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__after_where_column_offers_predicate_operators@after_column.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__after_where_column_offers_predicate_operators@after_column.snap index a097584..aee71fa 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__after_where_column_offers_predicate_operators@after_column.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__after_where_column_offers_predicate_operators@after_column.snap @@ -13,22 +13,27 @@ Assessment { Candidate { text: "is", kind: Keyword, + mode: Both, }, Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "like", kind: Keyword, + mode: Both, }, Candidate { text: "between", kind: Keyword, + mode: Both, }, Candidate { text: "in", kind: Keyword, + mode: Both, }, ], selected: None, @@ -45,22 +50,27 @@ Assessment { Candidate { text: "is", kind: Keyword, + mode: Both, }, Candidate { text: "not", kind: Keyword, + mode: Both, }, Candidate { text: "like", kind: Keyword, + mode: Both, }, Candidate { text: "between", kind: Keyword, + mode: Both, }, Candidate { text: "in", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__between_expects_a_low_bound@between_low.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__between_expects_a_low_bound@between_low.snap index 6f0d1dd..621829e 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__between_expects_a_low_bound@between_low.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__between_expects_a_low_bound@between_low.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/where_expression.rs -assertion_line: 50 description: "input=\"delete from Things where k between \" cursor=35" expression: "& a" --- @@ -24,54 +23,67 @@ Assessment { Candidate { text: "auto", kind: Identifier, + mode: Both, }, Candidate { text: "b", kind: Identifier, + mode: Both, }, Candidate { text: "d", kind: Identifier, + mode: Both, }, Candidate { text: "data", kind: Identifier, + mode: Both, }, Candidate { text: "dt", kind: Identifier, + mode: Both, }, Candidate { text: "k", kind: Identifier, + mode: Both, }, Candidate { text: "note", kind: Identifier, + mode: Both, }, Candidate { text: "r", kind: Identifier, + mode: Both, }, Candidate { text: "sid", kind: Identifier, + mode: Both, }, Candidate { text: "ts", kind: Identifier, + mode: Both, }, Candidate { text: "null", kind: Keyword, + mode: Both, }, Candidate { text: "true", kind: Keyword, + mode: Both, }, Candidate { text: "false", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__in_list_open_paren_expects_an_item@in_open_paren.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__in_list_open_paren_expects_an_item@in_open_paren.snap index d573788..f83a641 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__in_list_open_paren_expects_an_item@in_open_paren.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__in_list_open_paren_expects_an_item@in_open_paren.snap @@ -1,6 +1,5 @@ --- source: tests/typing_surface/where_expression.rs -assertion_line: 58 description: "input=\"delete from Things where k in (\" cursor=31" expression: "& a" --- @@ -24,54 +23,67 @@ Assessment { Candidate { text: "auto", kind: Identifier, + mode: Both, }, Candidate { text: "b", kind: Identifier, + mode: Both, }, Candidate { text: "d", kind: Identifier, + mode: Both, }, Candidate { text: "data", kind: Identifier, + mode: Both, }, Candidate { text: "dt", kind: Identifier, + mode: Both, }, Candidate { text: "k", kind: Identifier, + mode: Both, }, Candidate { text: "note", kind: Identifier, + mode: Both, }, Candidate { text: "r", kind: Identifier, + mode: Both, }, Candidate { text: "sid", kind: Identifier, + mode: Both, }, Candidate { text: "ts", kind: Identifier, + mode: Both, }, Candidate { text: "null", kind: Keyword, + mode: Both, }, Candidate { text: "true", kind: Keyword, + mode: Both, }, Candidate { text: "false", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__show_data_after_table_offers_where_and_limit@show_after_table.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__show_data_after_table_offers_where_and_limit@show_after_table.snap index 8c55992..b5f1be5 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__show_data_after_table_offers_where_and_limit@show_after_table.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__show_data_after_table_offers_where_and_limit@show_after_table.snap @@ -13,10 +13,12 @@ Assessment { Candidate { text: "where", kind: Keyword, + mode: Both, }, Candidate { text: "limit", kind: Keyword, + mode: Both, }, ], selected: None, @@ -33,10 +35,12 @@ Assessment { Candidate { text: "where", kind: Keyword, + mode: Both, }, Candidate { text: "limit", kind: Keyword, + mode: Both, }, ], }, diff --git a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__show_data_after_where_predicate_offers_limit@show_after_where.snap b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__show_data_after_where_predicate_offers_limit@show_after_where.snap index 9519d09..89296b5 100644 --- a/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__show_data_after_where_predicate_offers_limit@show_after_where.snap +++ b/tests/typing_surface/snapshots/typing_surface_matrix__typing_surface__where_expression__show_data_after_where_predicate_offers_limit@show_after_where.snap @@ -13,14 +13,17 @@ Assessment { Candidate { text: "and", kind: Keyword, + mode: Both, }, Candidate { text: "or", kind: Keyword, + mode: Both, }, Candidate { text: "limit", kind: Keyword, + mode: Both, }, ], selected: None, @@ -37,14 +40,17 @@ Assessment { Candidate { text: "and", kind: Keyword, + mode: Both, }, Candidate { text: "or", kind: Keyword, + mode: Both, }, Candidate { text: "limit", kind: Keyword, + mode: Both, }, ], },