Skip COMMIT_EDITMSG contents when opening the file (#24146)
This commit is contained in:
parent
225f0c4d12
commit
ea66a54cf8
9 changed files with 110 additions and 48 deletions
|
@ -467,7 +467,7 @@ async fn test_open_gitignored_files(cx: &mut TestAppContext) {
|
|||
let prev_read_dir_count = fs.read_dir_call_count();
|
||||
let loaded = tree
|
||||
.update(cx, |tree, cx| {
|
||||
tree.load_file("one/node_modules/b/b1.js".as_ref(), cx)
|
||||
tree.load_file("one/node_modules/b/b1.js".as_ref(), false, cx)
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
|
@ -507,7 +507,7 @@ async fn test_open_gitignored_files(cx: &mut TestAppContext) {
|
|||
let prev_read_dir_count = fs.read_dir_call_count();
|
||||
let loaded = tree
|
||||
.update(cx, |tree, cx| {
|
||||
tree.load_file("one/node_modules/a/a2.js".as_ref(), cx)
|
||||
tree.load_file("one/node_modules/a/a2.js".as_ref(), false, cx)
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue