mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-07-23 03:05:44 +00:00
reimplemented+simplified switchable server logging
don't know how well it interacts with `log` (or upcoming tracing), so this may be temporary and/or incomplete. But it works for my application code at the least (as opposed to library code)
This commit is contained in:
parent
e7221304da
commit
a797d5b378
7 changed files with 54 additions and 44 deletions
|
@ -14,7 +14,6 @@ pub(crate) struct Context {
|
|||
impl Context {
|
||||
pub fn default() -> Context {
|
||||
let events_loop = EventLoopBuilder::new().with_any_thread(true).build();
|
||||
// let events_loop = glutin::event_loop::EventLoop::<()>::new_any_thread();
|
||||
let gl_window = glutin::ContextBuilder::new()
|
||||
.build_headless(&*events_loop, glutin::dpi::PhysicalSize::new(1, 1))
|
||||
.unwrap();
|
||||
|
|
|
@ -25,8 +25,8 @@ pub struct ContextFacade {
|
|||
server_rx: Receiver<ServerMessage>,
|
||||
}
|
||||
|
||||
impl ContextFacade {
|
||||
pub fn default() -> Self {
|
||||
impl Default for ContextFacade {
|
||||
fn default() -> Self {
|
||||
let (client_tx, client_rx) = mpsc::sync_channel::<ClientMessage>(1);
|
||||
let (server_tx, server_rx) = mpsc::sync_channel::<ServerMessage>(1);
|
||||
let (start_chan, start_chan_recv) = mpsc::sync_channel::<()>(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue