-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94fca94
commit 47cfd54
Showing
5 changed files
with
59 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
//! ## The Ruff Language Server | ||
|
||
/* `pub use` statements */ | ||
pub use edit::{Document, PositionEncoding}; | ||
pub use server::Server; | ||
|
||
/* modules */ | ||
mod edit; | ||
mod format; | ||
mod lint; | ||
mod server; | ||
mod session; | ||
|
||
/* consts */ | ||
pub(crate) const SERVER_NAME: &str = "ruff"; | ||
pub(crate) const DIAGNOSTIC_NAME: &str = "Ruff"; | ||
|
||
/* types */ | ||
/// A common result type used in most cases where a | ||
/// result type is needed. | ||
pub(crate) type Result<T> = anyhow::Result<T>; | ||
|
||
/* functions */ | ||
pub(crate) fn version() -> &'static str { | ||
ruff_linter::VERSION | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters