fix(lsp): inlay hints span issue with user config scripts (#15071)

# Description

Fixes this:

![image](https://github.com/user-attachments/assets/98b523dd-df30-4e85-b069-20aaad0d9bf5)

# User-Facing Changes

# Tests + Formatting

I can't figure out how to test this atm.
Happy to do it if someone show me some hints how.

# After Submitting
This commit is contained in:
zc he
2025-02-10 23:15:03 +08:00
committed by GitHub
parent a7830ac1fd
commit c6fc6bd5a7
3 changed files with 13 additions and 2 deletions

View File

@ -160,6 +160,7 @@ impl LanguageServer {
}
}
/// TODO: test for files loaded as user config
#[cfg(test)]
mod tests {
use crate::path_to_uri;