SampleApp marker fixes.

This commit is contained in:
Serdar Ciplak 2023-08-26 22:42:32 -04:00
parent ad3db43799
commit a96ad0f94d
3 changed files with 11 additions and 11 deletions

View file

@ -19,19 +19,19 @@
<button @onclick="GetValue">Get Value</button>
</div>
<div style="margin:10px 0;">
<button @onclick="AddCommand">Add Command (Ctrl+Enter)</button>
<button @onclick="AddCommand">Add Command</button> <span style="font-size:10px">Ctrl+Enter to trigger the command.</span>
</div>
<div style="margin:10px 0;">
<button @onclick="AddAction">Add Action (Ctrl+B)</button>
<button @onclick="AddAction">Add Action</button> <span style="font-size:10px">Ctrl+B to trigger the action.</span>
</div>
<div style="margin:10px 0;">
<button @onclick="RegisterCodeActionProvider">RegisterCodeActionProvider</button>
<button @onclick="RegisterCodeActionProvider">RegisterCodeActionProvider</button> <span style="font-size:10px">Hover over the "this" on line:4</span>
</div>
<div style="margin:10px 0;">
<button @onclick="RegisterCompletionItemProvider">RegisterCompletionItemProvider</button>
<button @onclick="RegisterCompletionItemProvider">RegisterCompletionItemProvider</button> <span style="font-size:10px">Ctrl+Space on the "this" on line:4</span>
</div>
<div style="margin:10px 0;">
See the console for results.
See the console for the button results.
</div>
</div>
@ -145,9 +145,9 @@
CodeAsObject = new MarkerCode
{
TargetUri = "https://www.google.com",
Value = "vlue"
Value = "my-value"
},
Message = "Marker sample",
Message = "Marker example",
Severity = MarkerSeverity.Warning,
StartLineNumber = 4,
StartColumn = 3,
@ -168,7 +168,7 @@
{
new CodeAction
{
Title = "Fix sample",
Title = "Fix example",
Kind = "quickfix",
Diagnostics = markers,
Edit = new WorkspaceEdit
@ -206,7 +206,7 @@
{
LabelAsString = "Replace by THIS",
Kind = CompletionItemKind.Variable,
Detail = "PRESS ENTER",
Detail = "this -> THIS",
InsertText = "THIS",
Preselect = true,
RangeAsObject = new BlazorMonaco.Range

View file

@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>

View file

@ -182,7 +182,7 @@ app {
}
.monaco-editor-container {
height: 200px;
height: 500px;
border: 1px solid gray;
}