fix: LSP补全触发和语法高亮更新
- completion_provider 注册 a-z A-Z _ . 为触发字符,解决 Copilot 拦截补全问题 - 语法高亮新增 try catch finally throw 关键字 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -41,14 +41,8 @@ pub fn handle_goto_definition(
|
||||
let location = Location {
|
||||
uri: uri.clone(),
|
||||
range: Range {
|
||||
start: Position {
|
||||
line: l,
|
||||
character: c,
|
||||
},
|
||||
end: Position {
|
||||
line: l,
|
||||
character: c + word.len() as u32,
|
||||
},
|
||||
start: Position { line: l, character: c },
|
||||
end: Position { line: l, character: c + word.len() as u32 },
|
||||
},
|
||||
};
|
||||
let response: GotoDefinitionResponse = GotoDefinitionResponse::Scalar(location);
|
||||
|
||||
Reference in New Issue
Block a user