Skip to content

Commit f2b5c34

Browse files
1 parent 9515b2f commit f2b5c34

3 files changed

Lines changed: 28 additions & 12 deletions

File tree

Cargo.toml

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

55
[build-dependencies]
@@ -149,7 +149,7 @@ TierOpenExternalLayer4 = []
149149
TierExtensionScanParallel = []
150150

151151
[lib]
152-
name = "Mountain"
152+
name = "DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain"
153153
path = "Source/Library.rs"
154154
crate-type = ["lib", "staticlib"]
155155

@@ -159,11 +159,11 @@ autobenches = false
159159
autobins = false
160160
autoexamples = false
161161
autotests = false
162-
default-run = "Mountain"
162+
default-run = "DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain"
163163
description = "Mountain ⛰️"
164164
edition = "2024"
165165
license-file = "LICENSE"
166-
name = "Mountain"
166+
name = "DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain"
167167
publish = false
168168
include = [
169169
"build.rs",

Source/Track/Effect/CreateEffectForRequest/Webview.rs

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use serde_json::{Value, json};
77
use tauri::Runtime;
88
use url::Url;
99

10-
use crate::{RunTime::ApplicationRunTime::ApplicationRunTime, Track::Effect::MappedEffectType::MappedEffect, dev_log};
10+
use crate::{IPC::SkyEmit::LogSkyEmit, RunTime::ApplicationRunTime::ApplicationRunTime, Track::Effect::MappedEffectType::MappedEffect, dev_log};
1111

1212
pub fn CreateEffect<R:Runtime>(
1313
MethodName:&str,
@@ -25,12 +25,18 @@ pub fn CreateEffect<R:Runtime>(
2525
| "webview.unregisterView"
2626
| "webview.registerCustomEditor"
2727
| "webview.unregisterCustomEditor" => {
28+
// Per-dispatch entry line - parity with TreeView.rs's
29+
// `tree-latency` log. Without this we cannot tell from
30+
// `Mountain.dev.log` whether Cocoon's
31+
// `MountainClient.sendRequest("webview.registerView", ...)`
32+
// even reached `DispatchSideCarRequest` - silent gRPC drops
33+
// look identical to "extension never called the shim".
34+
dev_log!("ipc", "[WebviewEffect] dispatch-enter method={}", MethodName);
2835
let Method = MethodName.to_string();
2936
let effect =
3037
move |run_time:Arc<ApplicationRunTime>| -> Pin<Box<dyn Future<Output = Result<Value, String>> + Send>> {
3138
let Method = Method.clone();
3239
Box::pin(async move {
33-
use tauri::Emitter;
3440
let Handle = Parameters.get(0).cloned().unwrap_or(Value::Null);
3541
let Payload = json!({
3642
"method": Method,
@@ -40,9 +46,18 @@ pub fn CreateEffect<R:Runtime>(
4046
let Suffix =
4147
Method.trim_start_matches("$webview:").trim_start_matches("webview.");
4248
let EventName = format!("sky://webview/{}", Suffix);
43-
if let Err(Error) =
44-
run_time.Environment.ApplicationHandle.emit(&EventName, &Payload)
45-
{
49+
// `LogSkyEmit` wraps `.emit()` and tags every
50+
// success/failure under `[DEV:SKY-EMIT]`, so
51+
// the webview channel becomes visible in the
52+
// SkyEmit histogram alongside SCM and tree-view.
53+
// The bare `.emit()` was invisible, so a silent
54+
// listener-side drop in Sky was indistinguishable
55+
// from "Mountain never received the request".
56+
if let Err(Error) = LogSkyEmit(
57+
&run_time.Environment.ApplicationHandle,
58+
&EventName,
59+
&Payload,
60+
) {
4661
dev_log!(
4762
"ipc",
4863
"warn: [WebviewEffect] emit {} failed: {}",

tauri.conf.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"copyright": "PlayForm",
7171
"createUpdaterArtifacts": false,
7272
"externalBin": [
73+
"Binary/node",
7374
"Binary/node"
7475
],
7576
"fileAssociations": [],
@@ -143,7 +144,7 @@
143144
}
144145
}
145146
},
146-
"identifier": "land.editor.binary",
147-
"productName": "Mountain",
147+
"identifier": "land.editor.binary.development.node.environment.microsoft.vscode.dependency.node.22.bundle.clean.debug.electron.profile.esbuild.compiler.mountain",
148+
"productName": "DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain",
148149
"version": "0.0.1"
149-
}
150+
}

0 commit comments

Comments
 (0)