You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
Code completion in Visual Studio Code seems to only work reliably for code inside your own project. For traits and structs coming from extern crates it fails to see most of the available methods despite the code compiling and running fine.
use sdl2;
fn main() {
let sdl_context = sdl2::init().unwrap();
let video_subsystem = sdl_context.video().unwrap();
let window = video_subsystem
.window("Test", 800, 800)
.resizable()
.position_centered()
.build()
.unwrap();
}
For example in this code snippet using the crate sdl2 rls code completion fails to see any of the methods from the VideoSubsystem struct that is returned by sdl_context.video().unwrap(). Only after typing everything out it recognizes the methods and displays mouseover details and ctrl-click navigation to the implementation.
The text was updated successfully, but these errors were encountered:
Code completion in Visual Studio Code seems to only work reliably for code inside your own project. For traits and structs coming from extern crates it fails to see most of the available methods despite the code compiling and running fine.
For example in this code snippet using the crate sdl2 rls code completion fails to see any of the methods from the VideoSubsystem struct that is returned by sdl_context.video().unwrap(). Only after typing everything out it recognizes the methods and displays mouseover details and ctrl-click navigation to the implementation.
The text was updated successfully, but these errors were encountered: