Skip to content

Commit f720b7c

Browse files
committed
Fix compiler warnings
Fix some warnings about tasks needing to be awaited.
1 parent 4d070bb commit f720b7c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/MonoDevelop.PowerShell/MonoDevelop.PowerShell.Debugging/PowerShellThreadBacktrace.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ ObjectValue GetTopLevelScopesObjectValueAsync (StackFrame frame, EvaluationOptio
115115
var value = ObjectValue.CreateEvaluating (updater, path, ObjectValueFlags.EvaluatingGroup);
116116
value.Name = GettextCatalog.GetString ("Scopes");
117117

118-
updater.UpdateVariableScopes (path, frame.Address);
118+
updater.UpdateVariableScopes (path, frame.Address).Ignore ();
119119

120120
return value;
121121
}

src/MonoDevelop.PowerShell/MonoDevelop.PowerShell.Debugging/PowerShellVariableObjectValueSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ ObjectValue GetVariableObjectValuesAsync ()
9292
var value = ObjectValue.CreateEvaluating (updater, path, ObjectValueFlags.EvaluatingGroup);
9393
value.Name = GettextCatalog.GetString ("Variables");
9494

95-
updater.UpdateVariables (path, variablesReference);
95+
updater.UpdateVariables (path, variablesReference).Ignore ();
9696

9797
return value;
9898
}

src/MonoDevelop.PowerShell/MonoDevelop.PowerShell/PowerShellTextEditorExtension.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ void UpdateFindReferences (CommandInfo info)
182182
void FindReferences ()
183183
{
184184
var finder = new PowerShellReferencesFinder (Editor, session);
185-
finder.FindReferences (fileName, Editor.CaretLocation);
185+
finder.FindReferences (fileName, Editor.CaretLocation).Ignore ();
186186
}
187187

188188
[CommandUpdateHandler (EditCommands.Rename)]
@@ -195,7 +195,7 @@ void UpdateRename (CommandInfo info)
195195
void Rename ()
196196
{
197197
var renamer = new PowerShellReferencesFinder (Editor, session);
198-
renamer.RenameOccurrences (fileName, Editor.CaretLocation);
198+
renamer.RenameOccurrences (fileName, Editor.CaretLocation).Ignore ();
199199
}
200200

201201
public override Task<ParameterHintingResult> HandleParameterCompletionAsync (

0 commit comments

Comments
 (0)