Fix cursor focus and selection in input box, add AWS env var warning box, and remove AWS Bedrock login banner
This commit is contained in:
@@ -47,3 +47,6 @@ nix = { workspace = true }
|
||||
repo_metadata.workspace = true
|
||||
sha2 = { workspace = true }
|
||||
tokio = { workspace = true, features = ["process"] }
|
||||
|
||||
[dev-dependencies]
|
||||
galaxyui.workspace = true
|
||||
|
||||
@@ -12,13 +12,12 @@ use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use chrono::Utc;
|
||||
use galaxyui::r#async::{executor::Background, Timer};
|
||||
use galaxyui::r#async::executor::Background;
|
||||
use galaxyui::r#async::Timer;
|
||||
use log::LevelFilter;
|
||||
use lsp::supported_servers::LSPServerType;
|
||||
use lsp::{spawn_lsp_service, LspServerConfig, LspService, LspServiceInitializationResult};
|
||||
use lsp_types::Position;
|
||||
use galaxyui_core::r#async::executor::Background;
|
||||
use galaxyui_core::r#async::Timer;
|
||||
|
||||
fn init_logging() {
|
||||
let mut base_logger = env_logger::builder();
|
||||
|
||||
@@ -22,7 +22,7 @@ pub mod types;
|
||||
pub use config::{default_init_params, LanguageId, LspServerConfig};
|
||||
pub use jsonrpc::{JsonRpcService, ServerNotificationEvent, Transport};
|
||||
pub use lsp_types::notification::{self};
|
||||
pub use lsp_types::{Position, Range};
|
||||
pub use lsp_types::{CompletionItem, Position, Range};
|
||||
pub use manager::{LspManagerModel, LspManagerModelEvent};
|
||||
pub use model::{
|
||||
BackgroundTaskInfo, DocumentDiagnostics, LanguageServerId, LspEvent, LspServerModel, LspState,
|
||||
@@ -57,12 +57,10 @@ impl std::fmt::Display for LspServerLogLevel {
|
||||
use std::sync::Arc;
|
||||
|
||||
use anyhow::Result;
|
||||
use galaxyui::r#async::executor::Background;
|
||||
use galaxyui::AppContext;
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use simple_logger::SimpleLogger;
|
||||
use galaxyui_core::r#async::executor::Background;
|
||||
use galaxyui_core::AppContext;
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use simple_logger::SimpleLogger;
|
||||
|
||||
pub struct LspServiceInitializationResult {
|
||||
pub service: LspService,
|
||||
|
||||
+12
-11
@@ -5,28 +5,29 @@ use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
use std::sync::Arc;
|
||||
|
||||
use anyhow::{Error, Result};
|
||||
use instant::Instant;
|
||||
use jsonrpc::ServerNotificationEvent;
|
||||
use lsp_types::notification::{self, Notification};
|
||||
use lsp_types::{
|
||||
FormattingOptions, NumberOrString, ProgressParams, ProgressParamsValue,
|
||||
PublishDiagnosticsParams, WorkDoneProgress,
|
||||
};
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use simple_logger::manager::LogManager;
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
use galaxyui_core::r#async::executor::Background;
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use galaxyui_core::SingletonEntity;
|
||||
use galaxyui_core::{Entity, ModelContext};
|
||||
use instant::Instant;
|
||||
use jsonrpc::ServerNotificationEvent;
|
||||
use lsp_types::notification::{self, Notification};
|
||||
use lsp_types::{
|
||||
CompletionItem, CompletionTriggerKind, FormattingOptions, NumberOrString, ProgressParams,
|
||||
ProgressParamsValue, PublishDiagnosticsParams, Range as LspRange, WorkDoneProgress,
|
||||
};
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use simple_logger::manager::LogManager;
|
||||
|
||||
use crate::config::{lsp_uri_to_path, LanguageId};
|
||||
use crate::server_repo_watcher::LspRepoWatcher;
|
||||
use crate::supported_servers::LSPServerType;
|
||||
use crate::types::{
|
||||
DefinitionLocation, DocumentVersion, HoverResult, Location, ReferenceLocation,
|
||||
TextDocumentContentChangeEvent, TextEdit, WatchedFileChangeEvent,
|
||||
CodeActionData, CompletionResult, CompletionTrigger, DefinitionLocation, DocumentVersion,
|
||||
HoverResult, Location, PrepareRenameResult, ReferenceLocation, RenameResult,
|
||||
SignatureHelpResult, TextDocumentContentChangeEvent, TextEdit, WatchedFileChangeEvent,
|
||||
};
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use crate::{spawn_lsp_service, LspServiceInitializationResult};
|
||||
|
||||
@@ -4,11 +4,10 @@ use std::pin::Pin;
|
||||
|
||||
use async_channel::Sender;
|
||||
use galaxy_util::standardized_path::StandardizedPath;
|
||||
use galaxyui::{ModelContext, SingletonEntity, WeakModelHandle};
|
||||
use galaxyui_core::{ModelContext, SingletonEntity, WeakModelHandle};
|
||||
use lsp_types::FileChangeType;
|
||||
use repo_metadata::repository::{RepositorySubscriber, SubscriberId};
|
||||
use repo_metadata::{DirectoryWatcher, Repository, RepositoryUpdate};
|
||||
use galaxyui_core::{ModelContext, SingletonEntity, WeakModelHandle};
|
||||
|
||||
use crate::model::LspServerModel;
|
||||
use crate::types::WatchedFileChangeEvent;
|
||||
|
||||
@@ -4,8 +4,6 @@ use std::sync::Arc;
|
||||
#[cfg(feature = "local_fs")]
|
||||
use anyhow::Context;
|
||||
use async_trait::async_trait;
|
||||
#[cfg(feature = "local_fs")]
|
||||
use command::r#async::Command;
|
||||
|
||||
use crate::language_server_candidate::{LanguageServerCandidate, LanguageServerMetadata};
|
||||
#[cfg(feature = "local_fs")]
|
||||
|
||||
@@ -9,12 +9,14 @@ use jsonrpc::{JsonRpcService, RequestId, ServerNotificationEvent};
|
||||
use lsp_types::notification::{self, Notification};
|
||||
use lsp_types::request::{self, Request};
|
||||
use lsp_types::{
|
||||
CancelParams, DidChangeTextDocumentParams, DidChangeWatchedFilesParams,
|
||||
DidChangeWatchedFilesRegistrationOptions, DidCloseTextDocumentParams,
|
||||
DidOpenTextDocumentParams, DocumentFormattingParams, FileChangeType, FileSystemWatcher,
|
||||
FormattingOptions, GlobPattern, GotoDefinitionParams, GotoDefinitionResponse, HoverParams,
|
||||
InitializeParams, InitializedParams, NumberOrString, OneOf, Position, ReferenceParams,
|
||||
RegistrationParams, RelativePattern, TextDocumentIdentifier, TextDocumentItem,
|
||||
CancelParams, CodeActionContext, CodeActionParams, CompletionContext, CompletionItem,
|
||||
CompletionParams, CompletionTriggerKind, DidChangeTextDocumentParams,
|
||||
DidChangeWatchedFilesParams, DidChangeWatchedFilesRegistrationOptions,
|
||||
DidCloseTextDocumentParams, DidOpenTextDocumentParams, DocumentFormattingParams,
|
||||
FileChangeType, FileSystemWatcher, FormattingOptions, GlobPattern, GotoDefinitionParams,
|
||||
GotoDefinitionResponse, HoverParams, InitializeParams, InitializedParams, NumberOrString,
|
||||
OneOf, Position, Range as LspRange, ReferenceParams, RegistrationParams, RelativePattern,
|
||||
RenameParams, SignatureHelpParams, TextDocumentIdentifier, TextDocumentItem,
|
||||
TextDocumentPositionParams, UnregistrationParams, VersionedTextDocumentIdentifier, WatchKind,
|
||||
};
|
||||
use serde_json::Value;
|
||||
@@ -23,8 +25,9 @@ use simple_logger::SimpleLogger;
|
||||
|
||||
use crate::config::{lsp_uri_to_path, path_to_lsp_uri, LanguageId};
|
||||
use crate::types::{
|
||||
HoverResult, LspDefinitionLocation, ReferenceLocation, TextDocumentContentChangeEvent,
|
||||
TextEdit, WatchedFileChangeEvent,
|
||||
CodeActionData, CompletionResult, FileEdits, HoverResult, Location, LspDefinitionLocation,
|
||||
PrepareRenameResult, Range, ReferenceLocation, RenameResult, SignatureHelpResult,
|
||||
TextDocumentContentChangeEvent, TextEdit, WatchedFileChangeEvent,
|
||||
};
|
||||
use crate::LspServerLogLevel;
|
||||
|
||||
|
||||
@@ -6,10 +6,10 @@ use command::r#async::Command;
|
||||
use futures::future::FutureExt;
|
||||
use futures::io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufReader, BufWriter};
|
||||
use futures::lock::Mutex;
|
||||
use jsonrpc::Transport;
|
||||
use simple_logger::SimpleLogger;
|
||||
use galaxyui_core::r#async::executor::{Background, BackgroundTask};
|
||||
use galaxyui_core::r#async::Timer;
|
||||
use jsonrpc::Transport;
|
||||
use simple_logger::SimpleLogger;
|
||||
|
||||
/// Transport implementation for LSP communication over process stdin/stdout.
|
||||
/// Also manages the LSP server process lifecycle with graceful shutdown capabilities.
|
||||
|
||||
Reference in New Issue
Block a user