@@ -9,7 +9,7 @@ test_that("Call hierarchy works in single file", {
99 " fun <- function(x) { foo(x) + bar(x) + 1 }"
1010 ), single_file )
1111
12- client %> % did_save (single_file )
12+ client %> % did_open (single_file )
1313
1414 result <- client %> % respond_prepare_call_hierarchy(
1515 single_file , c(0 , 1 ), retry_when = function (result ) length(result ) == 0 )
@@ -74,8 +74,8 @@ test_that("Call hierarchy works in multiple files", {
7474 " fun <- function(x) { foo(x) + bar(x) + 1 }"
7575 ), file2 )
7676
77- client %> % did_save (file1 )
78- client %> % did_save (file2 )
77+ client %> % did_open (file1 )
78+ client %> % did_open (file2 )
7979
8080 result <- client %> % respond_prepare_call_hierarchy(
8181 file2 , c(0 , 22 ), retry_when = function (result ) length(result ) == 0 )
@@ -120,7 +120,7 @@ test_that("Call hierarchy incoming calls works", {
120120 " fun <- function(x) { foo(x) + bar(x) + foo(bar(x)) }"
121121 ), single_file )
122122
123- client %> % did_save (single_file )
123+ client %> % did_open (single_file )
124124
125125 items <- client %> % respond_prepare_call_hierarchy(
126126 single_file , c(0 , 1 ), retry_when = function (result ) length(result ) == 0 )
@@ -183,7 +183,7 @@ test_that("Call hierarchy outgoing calls works", {
183183 " fun <- function(x) { foo(x) + bar(x) + foo(bar(x)) }"
184184 ), single_file )
185185
186- client %> % did_save (single_file )
186+ client %> % did_open (single_file )
187187
188188 items <- client %> % respond_prepare_call_hierarchy(
189189 single_file , c(2 , 1 ), retry_when = function (result ) length(result ) == 0 )
0 commit comments