Skip to content

Commit

Permalink
Show pair to mac messages in the modal window
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneySprings committed Nov 14, 2024
1 parent 007400b commit 7f3b217
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/DotNet.Meteor.Debug/Agents/DebugLaunchAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private void LaunchAppleMobile(DebugSession debugSession) {
Disposables.Add(() => debugProxyProcess.Terminate());

IDeviceTool.Installer(Configuration.Device.Serial, Configuration.ProgramPath, debugSession);
debugSession.OnImportantDataReceived("Application installed on device. Please tap on the app icon to run it.");
debugSession.OnImportantDataReceived("Application installed on device. Tap the application icon on your device to run it.");
}
}
private void LaunchMacCatalyst(IProcessLogger logger) {
Expand Down
2 changes: 1 addition & 1 deletion src/DotNet.Meteor.Debug/Agents/NoDebugLaunchAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private void LaunchAppleMobile(DebugSession debugSession) {
var forwardingProcess = IDeviceTool.Proxy(Configuration.Device.Serial, Configuration.ReloadHostPort, debugSession);
Disposables.Add(() => forwardingProcess.Terminate());
IDeviceTool.Installer(Configuration.Device.Serial, Configuration.ProgramPath, debugSession);
debugSession.OnImportantDataReceived("Application installed on device. Please tap on the app icon to run it.");
debugSession.OnImportantDataReceived("Application installed on device. Tap the application icon on your device to run it.");
}
}
private void LaunchMacCatalyst(IProcessLogger logger) {
Expand Down
15 changes: 9 additions & 6 deletions src/VSCode.Extension/features/modulesView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,16 @@ export class ModulesView implements TreeDataProvider<any>, DebugAdapterTrackerFa
const treeView = this;
return {
onDidSendMessage(message: any) {
if (message.type != 'event' || message.event != 'module')
if (message.type != 'event')
return;
if (message.body.reason != 'new')
return;

treeView.loadedModules.push(message.body.module);
treeView.treeViewDataChangedEmitter.fire(null);

if (message.event == 'module' && message.body.reason == 'new') {
treeView.loadedModules.push(message.body.module);
treeView.treeViewDataChangedEmitter.fire(null);
}
if (message.event == 'output' && message.body.category == 'important') {
vscode.window.showInformationMessage(message.body.output, { modal: true });
}
},
onWillStopSession() {
treeView.loadedModules = [];
Expand Down

0 comments on commit 7f3b217

Please sign in to comment.