mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
* Part of https://github.com/emilk/egui/issues/3556 This PR replaces a bunch of options in `eframe::NativeOptions` with `egui::ViewportBuilder`. For instance: ``` diff let options = eframe::NativeOptions { - initial_window_size: Some(egui::vec2(320.0, 240.0)), - drag_and_drop_support: true, + viewport: egui::ViewportBuilder::default() + .with_inner_size([320.0, 240.0]) + .with_drag_and_drop(true), centered: true, ..Default::default() }; ```
36 lines
976 B
JSON
36 lines
976 B
JSON
{
|
|
"files.insertFinalNewline": true,
|
|
"editor.formatOnSave": true,
|
|
"files.trimTrailingWhitespace": true,
|
|
"editor.semanticTokenColorCustomizations": {
|
|
"rules": {
|
|
"*.unsafe:rust": "#eb5046"
|
|
}
|
|
},
|
|
"files.exclude": {
|
|
"target_ra/**": true,
|
|
"target_wasm/**": true,
|
|
"target/**": true,
|
|
},
|
|
// Tell Rust Analyzer to use its own target directory, so we don't need to wait for it to finish wen we want to `cargo run`
|
|
"rust-analyzer.check.overrideCommand": [
|
|
"cargo",
|
|
"cranky",
|
|
"--target-dir=target_ra",
|
|
"--workspace",
|
|
"--message-format=json",
|
|
"--all-targets",
|
|
"--all-features",
|
|
],
|
|
"rust-analyzer.cargo.buildScripts.overrideCommand": [
|
|
"cargo",
|
|
"cranky",
|
|
"--quiet",
|
|
"--target-dir=target_ra",
|
|
"--workspace",
|
|
"--message-format=json",
|
|
"--all-targets",
|
|
"--all-features",
|
|
],
|
|
}
|