Skip to content

Commit 2022de4

Browse files
save
Signed-off-by: Nikola Hristov <Nikola@PlayForm.Cloud>
1 parent 9669893 commit 2022de4

6 files changed

Lines changed: 29 additions & 15 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[[bin]]
22
name = "Mountain"
3-
path = "Source/Binary.rs"
3+
path = "Source/Library.rs"
44

55
[build-dependencies]
66
json5 = { workspace = true }
@@ -113,7 +113,7 @@ path = "Source/Library.rs"
113113
crate-type = ["lib", "staticlib"]
114114

115115
[package]
116-
authors = ["Source 🖋️🖋️ Open 👐🏻 <Source/Open@Editor.Land>"]
116+
authors = ["Source 🖋️ Open 👐🏻 <Source/Open@Editor.Land>"]
117117
autobenches = false
118118
autobins = false
119119
autoexamples = false

Source/Binary.rs

Lines changed: 0 additions & 9 deletions
This file was deleted.

Source/Environment/LanguageFeatureProvider/mod.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,20 @@ impl LanguageFeatureProviderRegistry for MountainEnvironment {
146146
async fn PrepareRename(&self, DocumentURI:Url, PositionDTO:PositionDTO) -> Result<Option<Value>, CommonError> {
147147
FeatureMethods::prepare_rename(self, DocumentURI, PositionDTO).await
148148
}
149+
150+
// Missing trait implementations - TODO: wire to actual providers
151+
async fn ProvideRenameEdits(&self, _:Url, _:PositionDTO, _:String) -> Result<Option<Value>, CommonError> { todo!() }
152+
async fn ProvideDocumentSymbols(&self, _:Url) -> Result<Option<Value>, CommonError> { todo!() }
153+
async fn ProvideWorkspaceSymbols(&self, _:String) -> Result<Option<Value>, CommonError> { todo!() }
154+
async fn ProvideSignatureHelp(&self, _:Url, _:PositionDTO, _:Value) -> Result<Option<Value>, CommonError> { todo!() }
155+
async fn ProvideFoldingRanges(&self, _:Url) -> Result<Option<Value>, CommonError> { todo!() }
156+
async fn ProvideSelectionRanges(&self, _:Url, _:Vec<PositionDTO>) -> Result<Option<Value>, CommonError> { todo!() }
157+
async fn ProvideSemanticTokensFull(&self, _:Url) -> Result<Option<Value>, CommonError> { todo!() }
158+
async fn ProvideInlayHints(&self, _:Url, _:Value) -> Result<Option<Value>, CommonError> { todo!() }
159+
async fn ProvideTypeHierarchySupertypes(&self, _:Value) -> Result<Option<Value>, CommonError> { todo!() }
160+
async fn ProvideTypeHierarchySubtypes(&self, _:Value) -> Result<Option<Value>, CommonError> { todo!() }
161+
async fn ProvideCallHierarchyIncomingCalls(&self, _:Value) -> Result<Option<Value>, CommonError> { todo!() }
162+
async fn ProvideCallHierarchyOutgoingCalls(&self, _:Value) -> Result<Option<Value>, CommonError> { todo!() }
163+
async fn ProvideLinkedEditingRanges(&self, _:Url, _:PositionDTO) -> Result<Option<Value>, CommonError> { todo!() }
164+
async fn ProvideOnTypeFormattingEdits(&self, _:Url, _:PositionDTO, _:String, _:Value) -> Result<Option<Vec<TextEditDTO>>, CommonError> { todo!() }
149165
}

Source/Environment/TreeViewProvider/Registration.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pub(super) async fn register_tree_data_provider(
3333
Message:None,
3434
Title:None,
3535
Description:None,
36+
Badge:None,
3637
};
3738

3839
env.ApplicationState

Source/Library.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ pub mod Track;
102102

103103
pub mod Workspace;
104104

105-
// Entry Point
105+
// Entry Point - binary and lib share this
106106
pub mod Binary;
107107

108+
/// Main entry point for desktop/mobile builds
109+
#[cfg_attr(mobile, tauri::mobile_entry_point)]
110+
pub fn main() {
111+
Binary::Main::Main();
112+
}
113+

Source/RPC/CocoonService.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ impl CocoonService for CocoonServiceImpl {
413413
// Register command in MountainEnvironment
414414
// This stub logs the command registration for debugging
415415
debug!(
416-
"[CocoonService] Command details: id={}, title={:?}, category={:?}",
417-
req.command_id, req.title, req.category
416+
"[CocoonService] Command details: id={}, title={:?}",
417+
req.command_id, req.title
418418
);
419419

420420
// TODO: When CommandRegistry is available in MountainEnvironment:
@@ -913,7 +913,7 @@ impl CocoonService for CocoonServiceImpl {
913913
debug!("[CocoonService] Received webview message for handle {}", req.handle);
914914

915915
// Forward to extension handler registered in MountainEnvironment
916-
debug!("[CocoonService] Message payload: {} bytes", req.message.len());
916+
debug!("[CocoonService] Message payload: {} bytes", req.message.as_ref().map_or(0, |m| m.len()));
917917

918918
// TODO: When WebviewHandlerRegistry is available in MountainEnvironment:
919919
// - Look up handler by handle

0 commit comments

Comments
 (0)