Skip to content

Commit

Permalink
refactor(lsp): group handler related modules together
Browse files Browse the repository at this point in the history
Move all the modules that are specific to the handler into their own
module to thin out the root module.
  • Loading branch information
dnaka91 committed Dec 15, 2023
1 parent 23ee2d3 commit f80d7da
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ use lsp_types::{
};
use ropey::Rope;

use crate::{compile, document_symbols, semantic_tokens, state::FileBuilder, GlobalState};
use crate::{state::FileBuilder, GlobalState};

mod compile;
mod document_symbols;
mod semantic_tokens;

pub fn initialize(
_state: &mut GlobalState<'_>,
Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions crates/stef-lsp/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@ use crate::state::GlobalState;

mod cli;
mod client;
mod compile;
mod config;
mod document_symbols;
mod handlers;
mod logging;
mod semantic_tokens;
mod state;

fn main() -> Result<()> {
Expand Down

0 comments on commit f80d7da

Please sign in to comment.