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:
@@ -5,6 +5,7 @@ use std::path::Path;
|
||||
use anyhow::anyhow;
|
||||
use arborium::tree_sitter::{Parser, Query, QueryCursor, Tree};
|
||||
use futures::channel::oneshot;
|
||||
use galaxy_util::standardized_path::StandardizedPath;
|
||||
use ignore::gitignore::Gitignore;
|
||||
use itertools::Itertools;
|
||||
use rayon::prelude::*;
|
||||
@@ -12,7 +13,6 @@ use repo_metadata::entry::{is_file_parsable, BudgetExceededBehavior, IgnoredPath
|
||||
use repo_metadata::RepositoryUpdate;
|
||||
use streaming_iterator::StreamingIterator;
|
||||
use syntax_tree::TextSlice;
|
||||
use warp_util::standardized_path::StandardizedPath;
|
||||
|
||||
use crate::index::file_outline::{FileOutline, Outline, Symbol};
|
||||
use crate::index::{Entry, FileId, FileMetadata, THREADPOOL};
|
||||
@@ -122,7 +122,7 @@ impl Outline {
|
||||
// Extract paths from TargetFile for addition, filtering out gitignored files
|
||||
for target_file in added
|
||||
.into_iter()
|
||||
.chain(modified.into_iter())
|
||||
.chain(modified)
|
||||
.chain(moved.keys().cloned())
|
||||
.filter(|target_file| !target_file.is_ignored)
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
use std::path::Path;
|
||||
|
||||
use string_offset::ByteOffset;
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
use warp_util::standardized_path::StandardizedPath;
|
||||
use galaxy_util::standardized_path::StandardizedPath;
|
||||
use string_offset::ByteOffset;
|
||||
|
||||
mod naive;
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use std::path::Path;
|
||||
|
||||
use galaxy_util::standardized_path::StandardizedPath;
|
||||
use languages::language_by_filename;
|
||||
use warp_util::standardized_path::StandardizedPath;
|
||||
|
||||
use super::*;
|
||||
|
||||
|
||||
@@ -9,13 +9,12 @@ use async_channel;
|
||||
use chrono::{DateTime, Utc};
|
||||
use futures::stream::AbortHandle;
|
||||
use galaxy_core::safe_error;
|
||||
use galaxyui::{Entity, ModelContext, ModelHandle};
|
||||
use galaxyui_core::{Entity, ModelContext, ModelHandle};
|
||||
use ignore::gitignore::Gitignore;
|
||||
use instant::Instant;
|
||||
#[cfg(feature = "local_fs")]
|
||||
use repo_metadata::entry::{BudgetExceededBehavior, IgnoredPathStrategy};
|
||||
use repo_metadata::Repository;
|
||||
use galaxyui_core::{Entity, ModelContext, ModelHandle};
|
||||
|
||||
use super::fragment_metadata::{
|
||||
FragmentMetadata, LeafToFragmentMetadata, LeafToFragmentMetadataUpdates,
|
||||
|
||||
@@ -6,11 +6,11 @@ use std::sync::Arc;
|
||||
|
||||
use chrono::Utc;
|
||||
use futures::executor::block_on;
|
||||
use galaxy_util::standardized_path::StandardizedPath;
|
||||
use galaxyui_core::{App, SingletonEntity};
|
||||
use repo_metadata::DirectoryWatcher;
|
||||
use string_offset::ByteOffset;
|
||||
use virtual_fs::{Stub, VirtualFS};
|
||||
use warp_util::standardized_path::StandardizedPath;
|
||||
use galaxyui_core::{App, SingletonEntity};
|
||||
|
||||
use super::{
|
||||
CodebaseIndex, CodebaseIndexTimeStampMetadata, ServerSyncResult, TreeSourceSyncState,
|
||||
|
||||
@@ -3,9 +3,9 @@ use std::sync::Arc;
|
||||
|
||||
#[cfg(feature = "local_fs")]
|
||||
use chrono::Utc;
|
||||
use galaxyui_core::App;
|
||||
#[cfg(feature = "local_fs")]
|
||||
use repo_metadata::DirectoryWatcher;
|
||||
use galaxyui_core::App;
|
||||
|
||||
use super::{
|
||||
BuildSource, CodebaseIndexFinishedStatus, CodebaseIndexManager, CodebaseIndexManagerConfig,
|
||||
|
||||
@@ -119,7 +119,7 @@ impl From<EmbeddingConfig> for galaxy_graphql::full_source_code_embedding::Embed
|
||||
galaxy_graphql::full_source_code_embedding::EmbeddingConfig::Voyage35Lite512
|
||||
}
|
||||
EmbeddingConfig::Voyage4_512 => {
|
||||
warp_graphql::full_source_code_embedding::EmbeddingConfig::Voyage4512
|
||||
galaxy_graphql::full_source_code_embedding::EmbeddingConfig::Voyage4512
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -144,7 +144,7 @@ impl TryFrom<galaxy_graphql::full_source_code_embedding::EmbeddingConfig> for Em
|
||||
galaxy_graphql::full_source_code_embedding::EmbeddingConfig::Voyage35512 => {
|
||||
Ok(Self::Voyage3_5_512)
|
||||
}
|
||||
warp_graphql::full_source_code_embedding::EmbeddingConfig::Voyage4512 => {
|
||||
galaxy_graphql::full_source_code_embedding::EmbeddingConfig::Voyage4512 => {
|
||||
Ok(Self::Voyage4_512)
|
||||
}
|
||||
}
|
||||
@@ -214,7 +214,7 @@ impl From<Fragment> for galaxy_graphql::queries::rerank_fragments::RerankFragmen
|
||||
Self {
|
||||
content: val.content,
|
||||
content_hash: val.content_hash.into(),
|
||||
location: FragmentLocationInput {
|
||||
location: galaxy_graphql::queries::rerank_fragments::FragmentLocationInput {
|
||||
byte_start: val.location.byte_range.start.as_usize() as i32,
|
||||
byte_end: val.location.byte_range.end.as_usize() as i32,
|
||||
file_path: val.location.absolute_path.to_string_lossy().to_string(),
|
||||
|
||||
@@ -5,11 +5,9 @@ use std::time::Duration;
|
||||
|
||||
use chrono::Utc;
|
||||
#[cfg(feature = "local_fs")]
|
||||
use galaxyui::ModelHandle;
|
||||
use galaxyui_core::ModelHandle;
|
||||
#[cfg(feature = "local_fs")]
|
||||
use repo_metadata::Repository;
|
||||
#[cfg(feature = "local_fs")]
|
||||
use galaxyui_core::ModelHandle;
|
||||
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(feature = "local_fs")] {
|
||||
|
||||
@@ -6,8 +6,8 @@ use std::pin::Pin;
|
||||
use std::sync::Arc;
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use itertools::Itertools;
|
||||
use galaxy_core::sync_queue::{IsTransientError, SyncQueue, SyncQueueTaskTrait};
|
||||
use itertools::Itertools;
|
||||
|
||||
use super::changed_files::ChangedFiles;
|
||||
use super::codebase_index::{build_fragments_from_metadata, SyncProgress};
|
||||
@@ -272,7 +272,7 @@ impl<'a> CodebaseIndexSyncOperation<'a> {
|
||||
}
|
||||
|
||||
let fragment_metadata_clone = fragment_metadatas.clone();
|
||||
let res = build_fragments_from_metadata(fragment_metadata_clone.into_iter()).await;
|
||||
let res = build_fragments_from_metadata(fragment_metadata_clone).await;
|
||||
|
||||
if !res.fail_to_read.is_empty() {
|
||||
let failed_node_count = res.fail_to_read.len();
|
||||
|
||||
Reference in New Issue
Block a user