Skip to content

Commit 984558f

Browse files
1 parent b10f9c0 commit 984558f

6 files changed

Lines changed: 24 additions & 24 deletions

File tree

Source/Binary.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ pub async fn Fn() {
5050
let Scheduler = SchedulerBuilder::New().WithWorkerCount(NumberOfWorker).Build();
5151

5252
// We need an Arc<Mutex<>> to safely share the scheduler for shutdown handling.
53-
let SchedulerForShutdown = Arc::new(tokio::sync::Mutex::new(Scheduler));
54-
let SchedulerForRunTime = SchedulerForShutdown.clone();
53+
let SchedulerForShutDown = Arc::new(tokio::sync::Mutex::new(Scheduler));
54+
let SchedulerForRunTime = SchedulerForShutDown.clone();
5555

5656
let mut Builder = tauri::Builder::default();
5757

@@ -117,7 +117,7 @@ pub async fn Fn() {
117117
if let RunEvent::ExitRequested { api, .. } = Event {
118118
info!("[RunEvent] Exit requested. Initiating graceful shutdown...");
119119
api.prevent_exit();
120-
let SchedulerHandle = SchedulerForShutdown.clone();
120+
let SchedulerHandle = SchedulerForShutDown.clone();
121121

122122
// Spawn a new blocking thread to run the async shutdown logic.
123123
// This avoids deadlocks when shutting down the tokio RunTime from within
@@ -126,7 +126,7 @@ pub async fn Fn() {
126126
let RunTime = tokio::RunTime::Builder::new_current_thread().enable_all().build().unwrap();
127127
RunTime.block_on(async move {
128128
let mut Scheduler = SchedulerHandle.lock().await;
129-
Scheduler.Shutdown().await;
129+
Scheduler.ShutDown().await;
130130
});
131131
});
132132

Source/Environment/StatusBarProvider.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ use crate::{Handler::status_bar as StatusBarHandler, vine::client as VineClient}
1717

1818
#[async_trait]
1919
impl StatusBarProvider for MountainEnvironment {
20-
// Handles a request to create or update a status bar entry by delegating
20+
// Handle a request to create or update a status bar entry by delegating
2121
// to the `StatusBarHandler`.
2222
async fn SetEntry(&self, Entry:StatusBarEntryDto) -> Result<(), CommonError> {
2323
StatusBarHandler::SetEntryLogic(&self.ApplicationHandle, Entry).await
2424
}
2525

26-
// Handles a request to dispose of a status bar entry by delegating to the
26+
// Handle a request to dispose of a status bar entry by delegating to the
2727
// `StatusBarHandler`.
2828
async fn DisposeEntry(&self, EntryId:String) -> Result<(), CommonError> {
2929
StatusBarHandler::DisposeEntryLogic(&self.ApplicationHandle, EntryId).await
3030
}
3131

32-
// Handles a request to resolve a dynamic tooltip.
32+
// Handle a request to resolve a dynamic tooltip.
3333
//
3434
// This is a "reverse" call, where the host (`Mountain`) needs to get data
3535
// from the extension host (`Cocoon`). It makes a gRPC call to the

Source/Environment/TerminalProvider.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::Handler::terminal as TerminalHandler;
1313

1414
#[async_trait]
1515
impl TerminalProvider for MountainEnvironment {
16-
// Handles the creation of a new terminal by delegating to the
16+
// Handle the creation of a new terminal by delegating to the
1717
// `TerminalHandler`.
1818
async fn CreateTerminal(&self, OptionsValue:Value) -> Result<Value, CommonError> {
1919
// The handler logic returns a Result<Value, String>, so we map the error
@@ -23,15 +23,15 @@ impl TerminalProvider for MountainEnvironment {
2323
.map_err(|e_str| CommonError::IpcError { Description:e_str })
2424
}
2525

26-
// Handles sending text to a terminal by delegating to the
26+
// Handle sending text to a terminal by delegating to the
2727
// `TerminalHandler`.
2828
async fn SendTextToTerminal(&self, TerminalId:u64, Text:String) -> Result<(), CommonError> {
2929
TerminalHandler::SendTextToTerminalLogic(&self.ApplicationHandle, TerminalId, Text)
3030
.await
3131
.map_err(|e_str| CommonError::IpcError { Description:e_str })
3232
}
3333

34-
// Handles disposing of a terminal by delegating to the `TerminalHandler`.
34+
// Handle disposing of a terminal by delegating to the `TerminalHandler`.
3535
async fn DisposeTerminal(&self, TerminalId:u64) -> Result<(), CommonError> {
3636
TerminalHandler::DisposeTerminalLogic(&self.ApplicationHandle, TerminalId)
3737
.await

Source/Environment/TreeViewProvider.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ use crate::Handler::tree_view as TreeViewHandler;
1717

1818
#[async_trait]
1919
impl TreeViewProvider for MountainEnvironment {
20-
// Handles registering a new tree data provider by delegating to the
20+
// Handle registering a new tree data provider by delegating to the
2121
// `TreeViewHandler`.
2222
async fn RegisterTreeDataProvider(&self, ViewId:String, Options:TreeViewOptionsDto) -> Result<(), CommonError> {
2323
TreeViewHandler::RegisterTreeDataProviderLogic(&self.ApplicationHandle, ViewId, Options).await
2424
}
2525

26-
// Handles unregistering a tree data provider by delegating to the
26+
// Handle unregistering a tree data provider by delegating to the
2727
// `TreeViewHandler`.
2828
async fn UnregisterTreeDataProvider(&self, ViewId:String) -> Result<(), CommonError> {
2929
TreeViewHandler::UnregisterTreeDataProviderLogic(&self.ApplicationHandle, ViewId).await
3030
}
3131

32-
// Handles revealing a tree item by delegating to the `TreeViewHandler`.
32+
// Handle revealing a tree item by delegating to the `TreeViewHandler`.
3333
async fn RevealTreeItem(
3434
&self,
3535
ViewId:String,
@@ -40,20 +40,20 @@ impl TreeViewProvider for MountainEnvironment {
4040
TreeViewHandler::RevealTreeItemLogic(&self.ApplicationHandle, ViewId, Item, ParentChain, Options).await
4141
}
4242

43-
// Handles refreshing a tree view by delegating to the `TreeViewHandler`.
43+
// Handle refreshing a tree view by delegating to the `TreeViewHandler`.
4444
async fn RefreshTreeView(&self, ViewId:String, ItemsToRefresh:Option<Value>) -> Result<(), CommonError> {
4545
TreeViewHandler::RefreshTreeViewLogic(&self.ApplicationHandle, ViewId, ItemsToRefresh).await
4646
}
4747

48-
// Handles setting a tree view's message by delegating to the
48+
// Handle setting a tree view's message by delegating to the
4949
// `TreeViewHandler`.
5050
async fn SetTreeViewMessage(&self, ViewId:String, Message:Value) -> Result<(), CommonError> {
5151
// A real implementation would delegate to a handler.
5252
// For now, this remains a no-op stub.
5353
Ok(())
5454
}
5555

56-
// Handles setting a tree view's title by delegating to the
56+
// Handle setting a tree view's title by delegating to the
5757
// `TreeViewHandler`.
5858
async fn SetTreeViewTitle(
5959
&self,
@@ -65,7 +65,7 @@ impl TreeViewProvider for MountainEnvironment {
6565
Ok(())
6666
}
6767

68-
// Handles setting a tree view's badge by delegating to the
68+
// Handle setting a tree view's badge by delegating to the
6969
// `TreeViewHandler`.
7070
async fn SetTreeViewBadge(&self, ViewId:String, Badge:Option<TreeViewBadgeDto>) -> Result<(), CommonError> {
7171
// A real implementation would delegate to a handler.

Source/Environment/UserInterfaceProvider.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use crate::Handler::ui as UiHandler;
2626

2727
#[async_trait]
2828
impl UiProvider for MountainEnvironment {
29-
// Handles showing a message by delegating to the `UiHandler`.
29+
// Handle showing a message by delegating to the `UiHandler`.
3030
async fn ShowMessage(
3131
&self,
3232
Severity:MessageSeverity,
@@ -36,17 +36,17 @@ impl UiProvider for MountainEnvironment {
3636
UiHandler::ShowMessageInteractiveLogic(&self.ApplicationHandle, Severity, Message, Options).await
3737
}
3838

39-
// Handles showing an open dialog by delegating to the `UiHandler`.
39+
// Handle showing an open dialog by delegating to the `UiHandler`.
4040
async fn ShowOpenDialog(&self, Options:Option<OpenDialogOptionsDto>) -> Result<Option<Vec<PathBuf>>, CommonError> {
4141
UiHandler::ShowOpenDialogInteractiveLogic(&self.ApplicationHandle, Options).await
4242
}
4343

44-
// Handles showing a save dialog by delegating to the `UiHandler`.
44+
// Handle showing a save dialog by delegating to the `UiHandler`.
4545
async fn ShowSaveDialog(&self, Options:Option<SaveDialogOptionsDto>) -> Result<Option<PathBuf>, CommonError> {
4646
UiHandler::ShowSaveDialogInteractiveLogic(&self.ApplicationHandle, Options).await
4747
}
4848

49-
// Handles showing a quick pick by delegating to the `UiHandler`.
49+
// Handle showing a quick pick by delegating to the `UiHandler`.
5050
async fn ShowQuickPick(
5151
&self,
5252
Items:Vec<QuickPickItemDto>,
@@ -55,7 +55,7 @@ impl UiProvider for MountainEnvironment {
5555
UiHandler::ShowQuickPickInteractiveLogic(&self.ApplicationHandle, Items, Options).await
5656
}
5757

58-
// Handles showing an input box by delegating to the `UiHandler`.
58+
// Handle showing an input box by delegating to the `UiHandler`.
5959
async fn ShowInputBox(&self, Options:Option<InputBoxOptionsDto>) -> Result<Option<String>, CommonError> {
6060
UiHandler::ShowInputBoxInteractiveLogic(&self.ApplicationHandle, Options).await
6161
}

Source/Vine/Server/MountainVinegRPCService.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ impl MountainVinegRPCService {
2525

2626
#[tonic::async_trait]
2727
impl MountainService for MountainVinegRPCService {
28-
// Handles generic request-response RPCs from Cocoon.
28+
// Handle generic request-response RPCs from Cocoon.
2929
async fn ProcessCocoonRequest(&self, Request:Request<GenericRequest>) -> Result<Response<GenericResponse>, Status> {
3030
let RequestData = Request.into_inner();
3131
let MethodName = RequestData.method;
@@ -69,7 +69,7 @@ impl MountainService for MountainVinegRPCService {
6969
}
7070
}
7171

72-
// Handles generic fire-and-forget notifications from Cocoon.
72+
// Handle generic fire-and-forget notifications from Cocoon.
7373
async fn SendCocoonNotification(&self, Request:Request<GenericNotification>) -> Result<Response<Empty>, Status> {
7474
let NotificationData = Request.into_inner();
7575
let MethodName = NotificationData.method;

0 commit comments

Comments
 (0)