Skip to content

Commit 9ed021d

Browse files
authored
add show line numbers when watermarkLabel is collapsed (#10362)
1 parent eef2c52 commit 9ed021d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DynamoCoreWpf/Views/CodeCompletion/CodeCompletionEditor.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,10 @@ private IEnumerable<CodeCompletionInsightItem> GetFunctionSignatures(string code
184184
private void OnTextChanged(object sender, EventArgs e)
185185
{
186186
if (WatermarkLabel.Visibility == Visibility.Visible)
187+
{
187188
WatermarkLabel.Visibility = Visibility.Collapsed;
189+
InnerTextEditor.ShowLineNumbers = true;
190+
}
188191
}
189192

190193
private void OnTextAreaTextEntering(object sender, TextCompositionEventArgs e)

0 commit comments

Comments
 (0)