posit-dev / positron

Positron, a next-generation data science IDE
Other
2.47k stars 74 forks source link

[R] Autocomplete "function" and "return" #4842

Open juliasilge opened 2 hours ago

juliasilge commented 2 hours ago

Discussed in https://github.com/posit-dev/positron/discussions/4839

Originally posted by **mns-nordicals** September 27, 2024 I recently installed Positron and I didn't add any exstentions. However I find the autocompletion a bit strange. Two very common function: "function()" and "return()" don't show up in the autocomple as shown in the picture below. Does anyone else experience this or is it just me ? ![image](https://github.com/user-attachments/assets/149ca209-744e-4798-b1bc-c1e1c0e9a726) ![image](https://github.com/user-attachments/assets/1ccd12d1-f510-4484-87b0-8cf290064b17)
juliasilge commented 2 hours ago

This does come as a surprise to me! I will point out that RStudio does provide completions for both of these, and we do provide completions for other functions that are from base.