Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8785,8 +8785,8 @@ void goo()
var expectedDescription = $"""
({FeaturesResources.field}) int C.x

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""";
Expand Down Expand Up @@ -8825,9 +8825,9 @@ void goo()
var expectedDescription = $"""
({FeaturesResources.field}) int C.x

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""";
Expand Down Expand Up @@ -8869,8 +8869,8 @@ void goo()
var expectedDescription = $"""
({FeaturesResources.field}) int C.x

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""";
Expand Down Expand Up @@ -8916,9 +8916,9 @@ void goo()
var expectedDescription = $"""
void G.DoGStuff()

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""";
Expand Down Expand Up @@ -8981,8 +8981,8 @@ void M()
var expectedDescription = $"""
({FeaturesResources.local_variable}) int xyz

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6295,8 +6295,8 @@ void goo()
""";
var expectedDescription = Usage($"""

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", expectsWarningGlyph: true);
Expand Down Expand Up @@ -6331,8 +6331,8 @@ void goo()
""";
var expectedDescription = Usage($"""

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", expectsWarningGlyph: true);
Expand Down Expand Up @@ -6371,9 +6371,9 @@ void goo()
var expectedDescription = Usage(
$"""

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""",
Expand Down Expand Up @@ -6415,8 +6415,8 @@ void goo()
""";
var expectedDescription = Usage($"""

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", expectsWarningGlyph: true);
Expand Down Expand Up @@ -6507,8 +6507,8 @@ void M()

await VerifyWithReferenceWorkerAsync(markup, [MainDescription($"({FeaturesResources.local_variable}) int x"), Usage($"""

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", expectsWarningGlyph: true)]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,14 @@ void Goo()
</Project>
</Workspace>
""";
var expectedDescription = new SignatureHelpTestItem($"Secret()\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0);
var expectedDescription = new SignatureHelpTestItem($"""
Secret()

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", currentParameterIndex: 0);
await VerifyItemWithReferenceWorkerAsync(markup, [expectedDescription], false);
}

Expand Down Expand Up @@ -1036,7 +1043,14 @@ void Goo()
</Workspace>
""";

var expectedDescription = new SignatureHelpTestItem($"Secret()\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0);
var expectedDescription = new SignatureHelpTestItem($"""
Secret()

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", currentParameterIndex: 0);
await VerifyItemWithReferenceWorkerAsync(markup, [expectedDescription], false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,14 @@ public SuperSecret(int secret) : base($$
</Project>
</Workspace>
""";
var expectedDescription = new SignatureHelpTestItem($"Secret(int secret)\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0);
var expectedDescription = new SignatureHelpTestItem($"""
Secret(int secret)

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", currentParameterIndex: 0);
await VerifyItemWithReferenceWorkerAsync(markup, [expectedDescription], false);
}

Expand Down Expand Up @@ -638,7 +645,14 @@ public SuperSecret(int secret) : base($$
</Workspace>
""";

var expectedDescription = new SignatureHelpTestItem($"Secret(int secret)\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0);
var expectedDescription = new SignatureHelpTestItem($"""
Secret(int secret)

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", currentParameterIndex: 0);
await VerifyItemWithReferenceWorkerAsync(markup, [expectedDescription], false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,14 @@ void goo()
</Project>
</Workspace>
""";
var expectedDescription = new SignatureHelpTestItem($"int C[int z]\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0);
var expectedDescription = new SignatureHelpTestItem($"""
int C[int z]

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", currentParameterIndex: 0);
await VerifyItemWithReferenceWorkerAsync(markup, [expectedDescription], false);
}

Expand Down Expand Up @@ -858,7 +865,14 @@ void goo()
</Workspace>
""";

var expectedDescription = new SignatureHelpTestItem($"int C[int z]\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0);
var expectedDescription = new SignatureHelpTestItem($"""
int C[int z]

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", currentParameterIndex: 0);
await VerifyItemWithReferenceWorkerAsync(markup, [expectedDescription], false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,14 @@ void goo()
</Project>
</Workspace>
""";
var expectedDescription = new SignatureHelpTestItem($"D<T>\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0);
var expectedDescription = new SignatureHelpTestItem($"""
D<T>

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", currentParameterIndex: 0);
await VerifyItemWithReferenceWorkerAsync(markup, [expectedDescription], false);
}

Expand Down Expand Up @@ -820,7 +827,14 @@ void goo()
</Workspace>
""";

var expectedDescription = new SignatureHelpTestItem($"D<T>\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0);
var expectedDescription = new SignatureHelpTestItem($"""
D<T>

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", currentParameterIndex: 0);
await VerifyItemWithReferenceWorkerAsync(markup, [expectedDescription], false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2082,8 +2082,8 @@ void goo()
await VerifyItemWithReferenceWorkerAsync(markup, [new SignatureHelpTestItem($"""
void C.bar()

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", currentParameterIndex: 0)], hideAdvancedMembers: false);
Expand Down Expand Up @@ -2126,8 +2126,8 @@ void goo()
await VerifyItemWithReferenceWorkerAsync(markup, [new SignatureHelpTestItem($"""
void C.bar()

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", currentParameterIndex: 0)], hideAdvancedMembers: false);
Expand Down Expand Up @@ -2341,8 +2341,8 @@ void Shared()
await VerifyItemWithReferenceWorkerAsync(markup, [new SignatureHelpTestItem($"""
void C.Do(int x)

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", currentParameterIndex: 0)], hideAdvancedMembers: false);
Expand Down Expand Up @@ -2613,8 +2613,8 @@ void goo()
expectedItems.Add(new SignatureHelpTestItem($"""
void C.M<object>(Action<object> arg1, object arg2, bool flag)

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", currentParameterIndex: 0));
Expand All @@ -2625,8 +2625,8 @@ void C.M<object>(Action<object> arg1, object arg2, bool flag)
expectedItems.Add(new SignatureHelpTestItem($"""
void C.M<T>(Action<T> arg1, T arg2, bool flag)

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}
{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", currentParameterIndex: 0));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,14 @@ void goo()
""";

await VerifyItemWithReferenceWorkerAsync(
markup, [new($"D()\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0)], false);
markup, [new($"""
D()

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", currentParameterIndex: 0)], false);
}

[Fact]
Expand Down Expand Up @@ -653,7 +660,14 @@ void goo()
""";

await VerifyItemWithReferenceWorkerAsync(
markup, [new($"D()\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0)], false);
markup, [new($"""
D()

{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}
{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}

{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}
""", currentParameterIndex: 0)], false);
}

[Fact, WorkItem("http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1067933")]
Expand Down
Loading
Loading