gpui: Further docs refinement & moved some reexports into 'private' module (#3935)

This commit mostly fixes invalid URLs in docstrings. It also
encapsulates crates we reexport (serde stuff + linkme) into a public
module named "private" in order to reduce the API surfaced through docs.
Moreover, I fixed up a bunch of crates that were pulling serde_json in
through gpui explicitly instead of using Cargo manifest.

Release Notes:
- N/A
This commit is contained in:
Piotr Osiewicz
2024-01-07 14:14:21 +01:00
committed by GitHub
parent eb9ddef083
commit d475f1373a
34 changed files with 91 additions and 72 deletions
+2 -5
View File
@@ -9,11 +9,7 @@ use crate::{
};
use futures::StreamExt;
use gpui::{
div,
serde_json::{self, json},
TestAppContext, VisualTestContext, WindowBounds, WindowOptions,
};
use gpui::{div, TestAppContext, VisualTestContext, WindowBounds, WindowOptions};
use indoc::indoc;
use language::{
language_settings::{AllLanguageSettings, AllLanguageSettingsContent, LanguageSettingsContent},
@@ -24,6 +20,7 @@ use language::{
use parking_lot::Mutex;
use project::project_settings::{LspSettings, ProjectSettings};
use project::FakeFs;
use serde_json::{self, json};
use std::sync::atomic;
use std::sync::atomic::AtomicUsize;
use std::{cell::RefCell, future::Future, rc::Rc, time::Instant};
@@ -39,7 +39,7 @@ impl EditorTestContext {
// fs.insert_file("/file", "".to_owned()).await;
fs.insert_tree(
"/root",
gpui::serde_json::json!({
serde_json::json!({
"file": "",
}),
)