Start work on respecting project-specific settings
This commit is contained in:
parent
e4530471de
commit
89446c7fd4
16 changed files with 326 additions and 83 deletions
|
@ -787,6 +787,7 @@ impl Copilot {
|
|||
let position = position.to_point_utf16(buffer);
|
||||
let settings = language_settings(
|
||||
buffer.language_at(position).map(|l| l.name()).as_deref(),
|
||||
buffer.file().map(|f| f.as_ref()),
|
||||
cx,
|
||||
);
|
||||
let tab_size = settings.tab_size;
|
||||
|
@ -1175,6 +1176,10 @@ mod tests {
|
|||
fn to_proto(&self) -> rpc::proto::File {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn worktree_id(&self) -> usize {
|
||||
0
|
||||
}
|
||||
}
|
||||
|
||||
impl language::LocalFile for File {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue