Repository: kcl-lang/kcl (language: rust)

Issue:
[Enhancement] The highlighting and inlayhint display of config expression and schema expression properties are different, and further consistency improvement is needed
## Enhancement

![image](https://github.com/user-attachments/assets/82bec31d-43bf-46fa-a421-f1daf7c5d3ba)

## Language Server Version

```
Version: 0.11.0-alpha.1-c020ab3eb4b9179219d6837a57f5d323
Platform: aarch64-apple-darwin
GitCommit: 0d34de4f29990d9f5922b66bb31e9ecb33c58823
```



Discussion / hints:

Fix patch:
diff --git a/kclvm/sema/src/advanced_resolver/node.rs b/kclvm/sema/src/advanced_resolver/node.rs
index 0d7faf4cc..d614b3604 100644
--- a/kclvm/sema/src/advanced_resolver/node.rs
+++ b/kclvm/sema/src/advanced_resolver/node.rs
@@ -1132,7 +1132,7 @@ impl<'ctx> AdvancedResolver<'_> {
             let module_info = self.get_current_module_info().unwrap();
 
             let import_info = module_info.get_import_info(&first_name.node);
-            if import_info.is_some() {
+            if import_info.is_some() && !maybe_def {
                 first_symbol = self
                     .gs
                     .get_symbols()
diff --git a/kclvm/tools/src/LSP/src/semantic_token.rs b/kclvm/tools/src/LSP/src/semantic_token.rs
index f5b33db61..9a6cbf707 100644
--- a/kclvm/tools/src/LSP/src/semantic_token.rs
+++ b/kclvm/tools/src/LSP/src/semantic_token.rs
@@ -209,6 +209,9 @@ mod tests {
                     // (0, 5, 3, 4)   // any
                     // (2, 0, 3, 0)   // bbb
                     // (0, 10, 4, 0)  // item
+                    // (2, 7, 3, 3), // net
+                    // (2, 0, 1, 0), // c
+                    // (1, 4, 3, 0)  // net
                     insta::assert_snapshot!(format!("{:?}", get));
                 }
                 lsp_types::SemanticTokensResult::Partial(_) => {


Test patch:
diff --git a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__semantic_token__tests__semantic_tokens_full_test.snap b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__semantic_token__tests__semantic_tokens_full_test.snap
index 2d75a79ad..f60646463 100644
--- a/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__semantic_token__tests__semantic_tokens_full_test.snap
+++ b/kclvm/tools/src/LSP/src/snapshots/kcl_language_server__semantic_token__tests__semantic_tokens_full_test.snap
@@ -2,4 +2,4 @@
 source: tools/src/LSP/src/semantic_token.rs
 expression: "format!(\"{:?}\", get)"
 ---
-[(0, 15, 1, 3), (1, 5, 3, 4), (1, 7, 7, 1), (1, 4, 4, 2), (2, 0, 2, 0), (0, 4, 7, 1), (0, 10, 7, 1), (1, 4, 4, 2), (2, 0, 1, 0), (0, 3, 3, 4), (2, 0, 4, 8), (0, 14, 1, 0), (1, 4, 1, 0), (3, 0, 1, 0), (0, 4, 4, 8), (1, 0, 1, 0), (0, 4, 4, 8), (0, 5, 1, 0), (2, 7, 8, 1), (1, 5, 4, 0), (2, 0, 3, 0), (0, 5, 3, 4), (2, 0, 3, 0), (0, 10, 4, 0)]
+[(0, 15, 1, 3), (1, 5, 3, 4), (1, 7, 7, 1), (1, 4, 4, 2), (2, 0, 2, 0), (0, 4, 7, 1), (0, 10, 7, 1), (1, 4, 4, 2), (2, 0, 1, 0), (0, 3, 3, 4), (2, 0, 4, 8), (0, 14, 1, 0), (1, 4, 1, 0), (3, 0, 1, 0), (0, 4, 4, 8), (1, 0, 1, 0), (0, 4, 4, 8), (0, 5, 1, 0), (2, 7, 8, 1), (1, 5, 4, 0), (2, 0, 3, 0), (0, 5, 3, 4), (2, 0, 3, 0), (0, 10, 4, 0), (2, 7, 3, 3), (2, 0, 1, 0), (1, 4, 3, 0)]
diff --git a/kclvm/tools/src/LSP/src/test_data/sema_token/sema_token.k b/kclvm/tools/src/LSP/src/test_data/sema_token/sema_token.k
index 481f1d39d..6f30f6d81 100644
--- a/kclvm/tools/src/LSP/src/test_data/sema_token/sema_token.k
+++ b/kclvm/tools/src/LSP/src/test_data/sema_token/sema_token.k
@@ -20,4 +20,10 @@ schema Manifest:
 
 aaa: any = 1
 
-bbb = any item in [] { True }
\ No newline at end of file
+bbb = any item in [] { True }
+
+import net
+
+c = {
+    net: 1
+}
\ No newline at end of file