Merge #2640
2640: Add some module docs r=kjeremy a=kjeremy Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
This commit is contained in:
commit
000710bd08
@ -1,4 +1,4 @@
|
|||||||
//! FIXME: write short doc here
|
//! Advertizes the capabilities of the LSP Server.
|
||||||
|
|
||||||
use lsp_types::{
|
use lsp_types::{
|
||||||
CodeActionProviderCapability, CodeLensOptions, CompletionOptions,
|
CodeActionProviderCapability, CodeLensOptions, CompletionOptions,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//! FIXME: write short doc here
|
//! Convenience module responsible for translating between rust-analyzer's types and LSP types.
|
||||||
|
|
||||||
use lsp_types::{
|
use lsp_types::{
|
||||||
self, CreateFile, DiagnosticSeverity, DocumentChangeOperation, DocumentChanges, Documentation,
|
self, CreateFile, DiagnosticSeverity, DocumentChangeOperation, DocumentChanges, Documentation,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//! FIXME: write short doc here
|
//! The main loop of `ra_lsp_server` responsible for dispatching LSP requests/replies and
|
||||||
|
//! notifications back to the client.
|
||||||
|
|
||||||
mod handlers;
|
mod handlers;
|
||||||
mod subscriptions;
|
mod subscriptions;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//! FIXME: write short doc here
|
//! This module is responsible for implementing handlers for Lanuage Server Protocol.
|
||||||
|
//! The majority of requests are fulfilled by calling into the `ra_ide` crate.
|
||||||
|
|
||||||
use std::{fmt::Write as _, io::Write as _};
|
use std::{fmt::Write as _, io::Write as _};
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//! FIXME: write short doc here
|
//! Datastructures that keep track of inflight requests.
|
||||||
|
|
||||||
use std::time::{Duration, Instant};
|
use std::time::{Duration, Instant};
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//! FIXME: write short doc here
|
//! Keeps track of file subscriptions.
|
||||||
|
|
||||||
use ra_ide::FileId;
|
use ra_ide::FileId;
|
||||||
use rustc_hash::FxHashSet;
|
use rustc_hash::FxHashSet;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//! FIXME: write short doc here
|
//! Transforms markdown
|
||||||
|
|
||||||
pub(crate) fn format_docs(src: &str) -> String {
|
pub(crate) fn format_docs(src: &str) -> String {
|
||||||
let mut processed_lines = Vec::new();
|
let mut processed_lines = Vec::new();
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//! FIXME: write short doc here
|
//! Defines `rust-analyzer` specific custom messages.
|
||||||
|
|
||||||
use lsp_types::{Location, Position, Range, TextDocumentIdentifier, Url};
|
use lsp_types::{Location, Position, Range, TextDocumentIdentifier, Url};
|
||||||
use rustc_hash::FxHashMap;
|
use rustc_hash::FxHashMap;
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
//! FIXME: write short doc here
|
//! The context or environment in which the language server functions.
|
||||||
|
//! In our server implementation this is know as the `WorldState`.
|
||||||
|
//!
|
||||||
|
//! Each tick provides an immutable snapshot of the state as `WorldSnapshot`.
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
path::{Path, PathBuf},
|
path::{Path, PathBuf},
|
||||||
|
Loading…
Reference in New Issue
Block a user