diff --git a/src/Uno.Playground.Shared/Samples/Playground.xaml.cs b/src/Uno.Playground.Shared/Samples/Playground.xaml.cs index 7aa5181..3bbd4f0 100644 --- a/src/Uno.Playground.Shared/Samples/Playground.xaml.cs +++ b/src/Uno.Playground.Shared/Samples/Playground.xaml.cs @@ -832,7 +832,7 @@ public IAsyncOperation ProvideCompletionItemsAsync(IModel docume { var textUntilPosition = await document.GetValueInRangeAsync(new Monaco.Range(1, 1, position.LineNumber, position.Column)); - if (textUntilPosition.EndsWith("boo")) + if (textUntilPosition is not null && textUntilPosition.EndsWith("boo")) { return new CompletionList() { @@ -859,13 +859,7 @@ public IAsyncOperation ProvideCompletionItemsAsync(IModel docume return new CompletionList() { - Suggestions = new[] - { - new CompletionItem("foreach", "foreach (var ${2:element} in ${1:array}) {\n\t$0\n}", CompletionItemKind.Snippet) - { - InsertTextRules = CompletionItemInsertTextRule.InsertAsSnippet - } - } + Suggestions = new CompletionItem[0] }; }); } diff --git a/src/Uno.Playground.WASM/Uno.Playground.WASM.csproj b/src/Uno.Playground.WASM/Uno.Playground.WASM.csproj index 9d9c4fa..e691af6 100644 --- a/src/Uno.Playground.WASM/Uno.Playground.WASM.csproj +++ b/src/Uno.Playground.WASM/Uno.Playground.WASM.csproj @@ -88,26 +88,26 @@ - + - - - + + + - - + + - - + + - - - - - + + + + + diff --git a/src/nuget.config b/src/nuget.config index 4116ae5..08b5129 100644 --- a/src/nuget.config +++ b/src/nuget.config @@ -1,9 +1,10 @@ - - - - - - + + + + + + +