diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_boolean.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_boolean.snap.new new file mode 100644 index 000000000..bbc1e5670 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_boolean.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1237 +expression: "format! (\"{:?}\", got_labels)" +--- +[" True"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_dict.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_dict.snap.new new file mode 100644 index 000000000..d98a1b8b0 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_dict.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1245 +expression: "format! (\"{:?}\", got_labels)" +--- +[" {}"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_integer.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_integer.snap.new new file mode 100644 index 000000000..8f367d12b --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_integer.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1229 +expression: "format! (\"{:?}\", got_labels)" +--- +[" 1"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_list.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_list.snap.new new file mode 100644 index 000000000..5753bed49 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_list.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1221 +expression: "format! (\"{:?}\", got_labels)" +--- +[" []"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_schema.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_schema.snap.new new file mode 100644 index 000000000..5844c25d6 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_schema.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1253 +expression: "format! (\"{:?}\", got_labels)" +--- +[" sub.Person1{}"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_strings.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_strings.snap.new new file mode 100644 index 000000000..2421f55a2 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_strings.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1213 +expression: "format! (\"{:?}\", got_labels)" +--- +[" \"abc\"", " \"def\""] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_true_false.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_true_false.snap.new new file mode 100644 index 000000000..681c86af1 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__attr_value_completion_true_false.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1205 +expression: "format! (\"{:?}\", got_labels)" +--- +[" False", " True"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__basic_completion_labels.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__basic_completion_labels.snap.new new file mode 100644 index 000000000..1c2465610 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__basic_completion_labels.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1189 +expression: "format! (\"{:?}\", got_labels)" +--- +["age", "name"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__check_scope_completion_test_part2.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__check_scope_completion_test_part2.snap.new new file mode 100644 index 000000000..c0087b903 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__check_scope_completion_test_part2.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1357 +expression: "format! (\"{:?}\", got_labels)" +--- +["Person", "Person{}", "name"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__comment_completion_test.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__comment_completion_test.snap.new new file mode 100644 index 000000000..ccd1eb093 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__comment_completion_test.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1333 +expression: "format! (\"{:?}\", got_labels)" +--- +[] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__dot_schema_attr_completion.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__dot_schema_attr_completion.snap.new new file mode 100644 index 000000000..a63e3c5d8 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__dot_schema_attr_completion.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1109 +expression: "format! (\"{:?}\", got_labels)" +--- +["age", "name"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__dot_str_builtin_func_completion.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__dot_str_builtin_func_completion.snap.new new file mode 100644 index 000000000..fbc79fb06 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__dot_str_builtin_func_completion.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1117 +expression: "format! (\"{:?}\", got_labels)" +--- +["capitalize(…)", "count(…)", "endswith(…)", "find(…)", "format(…)", "index(…)", "isalnum(…)", "isalpha(…)", "isdigit(…)", "islower(…)", "isspace(…)", "istitle(…)", "isupper(…)", "join(…)", "lower(…)", "lstrip(…)", "removeprefix(…)", "removesuffix(…)", "replace(…)", "rfind(…)", "rindex(…)", "rsplit(…)", "rstrip(…)", "split(…)", "splitlines(…)", "startswith(…)", "strip(…)", "title(…)", "upper(…)"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__import_builtin_package_test.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__import_builtin_package_test.snap.new new file mode 100644 index 000000000..f12d2aebb --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__import_builtin_package_test.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1197 +expression: "format! (\"{:?}\", got_labels)" +--- +["base64", "collection", "crypto", "datetime", "file", "json", "manifests", "math", "net", "regex", "runtime", "template", "units", "yaml"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__import_pkg_path_completion.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__import_pkg_path_completion.snap.new new file mode 100644 index 000000000..3059f513a --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__import_pkg_path_completion.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1125 +expression: "format! (\"{:?}\", got_labels)" +--- +["file1", "file2", "subpkg"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__import_pkg_schema_completion.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__import_pkg_schema_completion.snap.new new file mode 100644 index 000000000..ab7baa2b7 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__import_pkg_schema_completion.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1133 +expression: "format! (\"{:?}\", got_labels)" +--- +["Person1"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__join_str_inner_completion_test_part1.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__join_str_inner_completion_test_part1.snap.new new file mode 100644 index 000000000..e774879b1 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__join_str_inner_completion_test_part1.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1365 +expression: "format! (\"{:?}\", got_labels)" +--- +[] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__join_str_inner_completion_test_part2.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__join_str_inner_completion_test_part2.snap.new new file mode 100644 index 000000000..94c203112 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__join_str_inner_completion_test_part2.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1373 +expression: "format! (\"{:?}\", got_labels)" +--- +[] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__literal_str_builtin_func_completion.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__literal_str_builtin_func_completion.snap.new new file mode 100644 index 000000000..f1071062d --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__literal_str_builtin_func_completion.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1149 +expression: "format! (\"{:?}\", got_labels)" +--- +["capitalize(…)", "count(…)", "endswith(…)", "find(…)", "format(…)", "index(…)", "isalnum(…)", "isalpha(…)", "isdigit(…)", "islower(…)", "isspace(…)", "istitle(…)", "isupper(…)", "join(…)", "lower(…)", "lstrip(…)", "removeprefix(…)", "removesuffix(…)", "replace(…)", "rfind(…)", "rindex(…)", "rsplit(…)", "rstrip(…)", "split(…)", "splitlines(…)", "startswith(…)", "strip(…)", "title(…)", "upper(…)"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__math_func_completion.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__math_func_completion.snap.new new file mode 100644 index 000000000..9845460bf --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__math_func_completion.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1141 +expression: "format! (\"{:?}\", got_labels)" +--- +["ceil(…)", "exp(…)", "expm1(…)", "factorial(…)", "floor(…)", "gcd(…)", "isfinite(…)", "isinf(…)", "isnan(…)", "log(…)", "log10(…)", "log1p(…)", "log2(…)", "modf(…)", "pow(…)", "sqrt(…)"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__missing_expr_completion_test.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__missing_expr_completion_test.snap.new new file mode 100644 index 000000000..0f94e942b --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__missing_expr_completion_test.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1341 +expression: "format! (\"{:?}\", got_labels)" +--- +["cpu", "memory"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_attr_completion_labels.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_attr_completion_labels.snap.new new file mode 100644 index 000000000..f441a2183 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_attr_completion_labels.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1101 +expression: "format! (\"{:?}\", got_labels)" +--- +["", "age", "math", "name", "subpkg"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_docstring_newline_test.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_docstring_newline_test.snap.new new file mode 100644 index 000000000..d93324d16 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_docstring_newline_test.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1269 +expression: "format! (\"{:?}\", got_labels)" +--- +["\n\nAttributes\n----------\nname: \nworkloadType: \nreplica: \n\nExamples\n--------\n"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_end_pos_test.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_end_pos_test.snap.new new file mode 100644 index 000000000..4aa0ab358 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_end_pos_test.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1325 +expression: "format! (\"{:?}\", got_labels)" +--- +["Params", "Params{}", "max", "min"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_sig_completion_test.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_sig_completion_test.snap.new new file mode 100644 index 000000000..d41eb6716 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_sig_completion_test.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1261 +expression: "format! (\"{:?}\", got_labels)" +--- +["Base", "Base{}", "Config", "Config{}", "Name", "Name{}", "Person", "Person(b){}", "abs(…)", "all_true(…)", "any_true(…)", "bin(…)", "bool(…)", "dict(…)", "float(…)", "hex(…)", "int(…)", "isnullish(…)", "isunique(…)", "len(…)", "list(…)", "max(…)", "min(…)", "multiplyof(…)", "n", "oct(…)", "option(…)", "ord(…)", "p", "pow(…)", "print(…)", "range(…)", "round(…)", "sorted(…)", "str(…)", "sum(…)", "typeof(…)", "zip(…)"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_ty_attr_complete_test.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_ty_attr_complete_test.snap.new new file mode 100644 index 000000000..6f287b961 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_ty_attr_complete_test.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1317 +expression: "format! (\"{:?}\", got_labels)" +--- +["name"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_type_attr_completion_test_part1.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_type_attr_completion_test_part1.snap.new new file mode 100644 index 000000000..222e567ba --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_type_attr_completion_test_part1.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1381 +expression: "format! (\"{:?}\", got_labels)" +--- +["name"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_type_attr_completion_test_part2.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_type_attr_completion_test_part2.snap.new new file mode 100644 index 000000000..e8b8365e8 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_type_attr_completion_test_part2.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1389 +expression: "format! (\"{:?}\", got_labels)" +--- +["name"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__single_schema_attr_completion.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__single_schema_attr_completion.snap.new new file mode 100644 index 000000000..33dc70c30 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__single_schema_attr_completion.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1157 +expression: "format! (\"{:?}\", got_labels)" +--- +["a"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__str_dot_completion_test_end_of_literal.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__str_dot_completion_test_end_of_literal.snap.new new file mode 100644 index 000000000..ce7fdee9f --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__str_dot_completion_test_end_of_literal.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1277 +expression: "format! (\"{:?}\", got_labels)" +--- +["capitalize(…)", "count(…)", "endswith(…)", "find(…)", "format(…)", "index(…)", "isalnum(…)", "isalpha(…)", "isdigit(…)", "islower(…)", "isspace(…)", "istitle(…)", "isupper(…)", "join(…)", "lower(…)", "lstrip(…)", "removeprefix(…)", "removesuffix(…)", "replace(…)", "rfind(…)", "rindex(…)", "rsplit(…)", "rstrip(…)", "split(…)", "splitlines(…)", "startswith(…)", "strip(…)", "title(…)", "upper(…)"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__str_dot_completion_test_inside_literal_1.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__str_dot_completion_test_inside_literal_1.snap.new new file mode 100644 index 000000000..e3cff3731 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__str_dot_completion_test_inside_literal_1.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1293 +expression: "format! (\"{:?}\", got_labels)" +--- +[] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__str_dot_completion_test_inside_literal_2.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__str_dot_completion_test_inside_literal_2.snap.new new file mode 100644 index 000000000..3717791ce --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__str_dot_completion_test_inside_literal_2.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1301 +expression: "format! (\"{:?}\", got_labels)" +--- +[] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__str_dot_completion_test_second_line_end.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__str_dot_completion_test_second_line_end.snap.new new file mode 100644 index 000000000..40ed7012f --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__str_dot_completion_test_second_line_end.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1285 +expression: "format! (\"{:?}\", got_labels)" +--- +["capitalize(…)", "count(…)", "endswith(…)", "find(…)", "format(…)", "index(…)", "isalnum(…)", "isalpha(…)", "isdigit(…)", "islower(…)", "isspace(…)", "istitle(…)", "isupper(…)", "join(…)", "lower(…)", "lstrip(…)", "removeprefix(…)", "removesuffix(…)", "replace(…)", "rfind(…)", "rindex(…)", "rsplit(…)", "rstrip(…)", "split(…)", "splitlines(…)", "startswith(…)", "strip(…)", "title(…)", "upper(…)"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__str_dot_completion_test_third_line.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__str_dot_completion_test_third_line.snap.new new file mode 100644 index 000000000..2e0865e3c --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__str_dot_completion_test_third_line.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1309 +expression: "format! (\"{:?}\", got_labels)" +--- +["capitalize(…)", "count(…)", "endswith(…)", "find(…)", "format(…)", "index(…)", "isalnum(…)", "isalpha(…)", "isdigit(…)", "islower(…)", "isspace(…)", "istitle(…)", "isupper(…)", "join(…)", "lower(…)", "lstrip(…)", "removeprefix(…)", "removesuffix(…)", "replace(…)", "rfind(…)", "rindex(…)", "rsplit(…)", "rstrip(…)", "split(…)", "splitlines(…)", "startswith(…)", "strip(…)", "title(…)", "upper(…)"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__string_union_type_completion.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__string_union_type_completion.snap.new new file mode 100644 index 000000000..118a3df9d --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__string_union_type_completion.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1165 +expression: "format! (\"{:?}\", got_labels)" +--- +["capitalize(…)", "count(…)", "endswith(…)", "find(…)", "format(…)", "index(…)", "isalnum(…)", "isalpha(…)", "isdigit(…)", "islower(…)", "isspace(…)", "istitle(…)", "isupper(…)", "join(…)", "lower(…)", "lstrip(…)", "removeprefix(…)", "removesuffix(…)", "replace(…)", "rfind(…)", "rindex(…)", "rsplit(…)", "rstrip(…)", "split(…)", "splitlines(…)", "startswith(…)", "strip(…)", "title(…)", "upper(…)"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__system_pkg_labels.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__system_pkg_labels.snap.new new file mode 100644 index 000000000..43c12c3d9 --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__system_pkg_labels.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1181 +expression: "format! (\"{:?}\", got_labels)" +--- +["capitalize(…)", "count(…)", "endswith(…)", "find(…)", "format(…)", "index(…)", "isalnum(…)", "isalpha(…)", "isdigit(…)", "islower(…)", "isspace(…)", "istitle(…)", "isupper(…)", "join(…)", "lower(…)", "lstrip(…)", "removeprefix(…)", "removesuffix(…)", "replace(…)", "rfind(…)", "rindex(…)", "rsplit(…)", "rstrip(…)", "split(…)", "splitlines(…)", "startswith(…)", "strip(…)", "title(…)", "upper(…)"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__var_completion_labels.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__var_completion_labels.snap.new new file mode 100644 index 000000000..7d1e0c97d --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__var_completion_labels.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1093 +expression: "format! (\"{:?}\", got_labels)" +--- +["", "Config", "Config{}", "P", "Person", "Person1{}", "Person{}", "P{}", "aaaa", "math", "n", "p", "p1", "p2", "p3", "p4", "subpkg"] diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__var_completion_labels_without_dot.snap.new b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__var_completion_labels_without_dot.snap.new new file mode 100644 index 000000000..ad074654d --- /dev/null +++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__var_completion_labels_without_dot.snap.new @@ -0,0 +1,6 @@ +--- +source: tools/src/LSP/src/completion.rs +assertion_line: 1173 +expression: "format! (\"{:?}\", got_labels)" +--- +["Config", "Config{}", "P", "Person", "Person1{}", "Person{}", "P{}", "aaaa", "math", "n", "p", "p1", "p2", "p3", "p4", "pkg", "subpkg"]