Skip to content

Commit

Permalink
List works + Delete button works
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinyZero0 committed Dec 29, 2022
0 parents commit f1202e8
Show file tree
Hide file tree
Showing 23 changed files with 4,416 additions and 0 deletions.
454 changes: 454 additions & 0 deletions .gitignore

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": "0.2.0",
"configurations": [
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/bin/Debug/net6.0/ToDo.dll",
"args": [],
"cwd": "${workspaceFolder}",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}
41 changes: 41 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/ToDo.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/ToDo.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/ToDo.csproj"
],
"problemMatcher": "$msCompile"
}
]
}
12 changes: 12 additions & 0 deletions App.axaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ToDo"
x:Class="ToDo.App">
<Application.DataTemplates>
<local:ViewLocator/>
</Application.DataTemplates>

<Application.Styles>
<FluentTheme Mode="Light"/>
</Application.Styles>
</Application>
31 changes: 31 additions & 0 deletions App.axaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml;
using ToDo.ViewModels;
using ToDo.Views;
using ToDo.Models;

namespace ToDo
{
public partial class App : Application
{
public override void Initialize()
{
AvaloniaXamlLoader.Load(this);
}

public override void OnFrameworkInitializationCompleted()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
var db = new DataBase();
desktop.MainWindow = new MainWindow
{
DataContext = new MainWindowViewModel(db),
};
}

base.OnFrameworkInitializationCompleted();
}
}
}
Binary file added Assets/avalonia-logo.ico
Binary file not shown.
110 changes: 110 additions & 0 deletions Avalonia.AXAML.LanguageServer.Log20221228.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
2022-12-28 20:43:47.639 +03:00 [INF] Starting log...
2022-12-28 20:43:48.425 +03:00 [DBG] Finding descriptors for initialize
2022-12-28 20:43:48.614 +03:00 [DBG] Queueing "Serial":initialize:0 request for processing
2022-12-28 20:43:48.635 +03:00 [DBG] Starting: Processing request initialize 0
2022-12-28 20:43:48.642 +03:00 [DBG] Starting: Routing Request (0) initialize
2022-12-28 20:43:48.652 +03:00 [VRB] Converting params for Request (0) initialize to OmniSharp.Extensions.LanguageServer.Protocol.Models.InternalInitializeParams
2022-12-28 20:43:48.653 +03:00 [VRB] Converting params for Notification initialize to OmniSharp.Extensions.LanguageServer.Protocol.Models.InternalInitializeParams
2022-12-28 20:43:48.903 +03:00 [INF] GetRegistrationOptions method
2022-12-28 20:43:48.995 +03:00 [VRB] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult
2022-12-28 20:43:48.998 +03:00 [DBG] Finished: Routing Request (0) initialize in 355ms
2022-12-28 20:43:48.998 +03:00 [DBG] Finished: Processing request initialize 0 in 360ms
2022-12-28 20:43:49.047 +03:00 [DBG] Finding descriptors for initialized
2022-12-28 20:43:49.048 +03:00 [DBG] Queueing "Serial":initialized request for processing
2022-12-28 20:43:49.053 +03:00 [DBG] Starting: Processing notification initialized
2022-12-28 20:43:49.055 +03:00 [DBG] Starting: Routing Notification initialized
2022-12-28 20:43:49.055 +03:00 [VRB] Converting params for Notification initialized to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializedParams
2022-12-28 20:43:49.122 +03:00 [WRN] No ConfigurationItems have been defined, configuration won't surface any configuration from the client!
2022-12-28 20:43:49.146 +03:00 [DBG] Finished: Routing Notification initialized in 90ms
2022-12-28 20:43:49.146 +03:00 [DBG] Finished: Processing notification initialized in 92ms
2022-12-28 20:43:49.147 +03:00 [DBG] Finding descriptors for textDocument/didOpen
2022-12-28 20:43:49.154 +03:00 [VRB] Created attribute xml::file:///home/zero/dev/CSharp/Avalonia/ToDoMVVM/ToDo/Views/NewItemView.axaml
2022-12-28 20:43:49.157 +03:00 [VRB] Looking for handler for descriptors textDocument/didOpen
2022-12-28 20:43:49.157 +03:00 [VRB] Checking handler textDocument/didOpen:Avalonia.AXAML.LanguageServer.Handlers.TextDocumentHandler
2022-12-28 20:43:49.157 +03:00 [VRB] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentOpenRegistrationOptions
2022-12-28 20:43:49.157 +03:00 [VRB] Document Selector [**/*.xaml], [**/*.axaml]
2022-12-28 20:43:49.161 +03:00 [VRB] Handler Selected: Avalonia.AXAML.LanguageServer.Handlers.TextDocumentHandler via [**/*.xaml], [**/*.axaml] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcNotificationHandler`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.DidOpenTextDocumentParams, OmniSharp.Extensions.LanguageProtocol, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])
2022-12-28 20:43:49.162 +03:00 [DBG] Queueing "Serial":textDocument/didOpen request for processing
2022-12-28 20:43:49.162 +03:00 [DBG] Starting: Processing notification textDocument/didOpen
2022-12-28 20:43:49.162 +03:00 [DBG] Starting: Routing Notification textDocument/didOpen
2022-12-28 20:43:49.162 +03:00 [VRB] Converting params for Notification textDocument/didOpen to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidOpenTextDocumentParams
2022-12-28 20:43:49.165 +03:00 [DBG] Finished: Routing Notification textDocument/didOpen in 2ms
2022-12-28 20:43:49.165 +03:00 [DBG] Finished: Processing notification textDocument/didOpen in 2ms
2022-12-28 20:43:56.458 +03:00 [DBG] Finding descriptors for textDocument/didChange
2022-12-28 20:43:56.471 +03:00 [VRB] Found attributes 1, ["xml::file:///home/zero/dev/CSharp/Avalonia/ToDoMVVM/ToDo/Views/NewItemView.axaml"]
2022-12-28 20:43:56.472 +03:00 [VRB] Looking for handler for descriptors textDocument/didChange
2022-12-28 20:43:56.472 +03:00 [VRB] Checking handler textDocument/didChange:Avalonia.AXAML.LanguageServer.Handlers.TextDocumentHandler
2022-12-28 20:43:56.472 +03:00 [VRB] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentChangeRegistrationOptions
2022-12-28 20:43:56.472 +03:00 [VRB] Document Selector [**/*.xaml], [**/*.axaml]
2022-12-28 20:43:56.472 +03:00 [VRB] Handler Selected: Avalonia.AXAML.LanguageServer.Handlers.TextDocumentHandler via [**/*.xaml], [**/*.axaml] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcNotificationHandler`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.DidChangeTextDocumentParams, OmniSharp.Extensions.LanguageProtocol, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])
2022-12-28 20:43:56.473 +03:00 [DBG] Queueing "Serial":textDocument/didChange request for processing
2022-12-28 20:43:56.473 +03:00 [DBG] Starting: Processing notification textDocument/didChange
2022-12-28 20:43:56.473 +03:00 [DBG] Starting: Routing Notification textDocument/didChange
2022-12-28 20:43:56.473 +03:00 [VRB] Converting params for Notification textDocument/didChange to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidChangeTextDocumentParams
2022-12-28 20:43:56.484 +03:00 [DBG] Finished: Routing Notification textDocument/didChange in 10ms
2022-12-28 20:43:56.484 +03:00 [DBG] Finished: Processing notification textDocument/didChange in 10ms
2022-12-28 20:43:57.458 +03:00 [DBG] Finding descriptors for textDocument/didSave
2022-12-28 20:43:57.462 +03:00 [VRB] Found attributes 1, ["xml::file:///home/zero/dev/CSharp/Avalonia/ToDoMVVM/ToDo/Views/NewItemView.axaml"]
2022-12-28 20:43:57.462 +03:00 [VRB] Looking for handler for descriptors textDocument/didSave
2022-12-28 20:43:57.462 +03:00 [VRB] Checking handler textDocument/didSave:Avalonia.AXAML.LanguageServer.Handlers.TextDocumentHandler
2022-12-28 20:43:57.462 +03:00 [VRB] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentSaveRegistrationOptions
2022-12-28 20:43:57.462 +03:00 [VRB] Document Selector [**/*.xaml], [**/*.axaml]
2022-12-28 20:43:57.463 +03:00 [VRB] Handler Selected: Avalonia.AXAML.LanguageServer.Handlers.TextDocumentHandler via [**/*.xaml], [**/*.axaml] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcNotificationHandler`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.DidSaveTextDocumentParams, OmniSharp.Extensions.LanguageProtocol, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])
2022-12-28 20:43:57.463 +03:00 [DBG] Queueing "Serial":textDocument/didSave request for processing
2022-12-28 20:43:57.463 +03:00 [DBG] Starting: Processing notification textDocument/didSave
2022-12-28 20:43:57.463 +03:00 [DBG] Starting: Routing Notification textDocument/didSave
2022-12-28 20:43:57.463 +03:00 [VRB] Converting params for Notification textDocument/didSave to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidSaveTextDocumentParams
2022-12-28 20:43:57.465 +03:00 [DBG] Finished: Routing Notification textDocument/didSave in 1ms
2022-12-28 20:43:57.465 +03:00 [DBG] Finished: Processing notification textDocument/didSave in 1ms
2022-12-28 20:44:00.594 +03:00 [DBG] Finding descriptors for textDocument/didChange
2022-12-28 20:44:00.594 +03:00 [VRB] Found attributes 1, ["xml::file:///home/zero/dev/CSharp/Avalonia/ToDoMVVM/ToDo/Views/NewItemView.axaml"]
2022-12-28 20:44:00.594 +03:00 [VRB] Looking for handler for descriptors textDocument/didChange
2022-12-28 20:44:00.594 +03:00 [VRB] Checking handler textDocument/didChange:Avalonia.AXAML.LanguageServer.Handlers.TextDocumentHandler
2022-12-28 20:44:00.594 +03:00 [VRB] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentChangeRegistrationOptions
2022-12-28 20:44:00.594 +03:00 [VRB] Document Selector [**/*.xaml], [**/*.axaml]
2022-12-28 20:44:00.595 +03:00 [VRB] Handler Selected: Avalonia.AXAML.LanguageServer.Handlers.TextDocumentHandler via [**/*.xaml], [**/*.axaml] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcNotificationHandler`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.DidChangeTextDocumentParams, OmniSharp.Extensions.LanguageProtocol, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])
2022-12-28 20:44:00.595 +03:00 [DBG] Queueing "Serial":textDocument/didChange request for processing
2022-12-28 20:44:00.595 +03:00 [DBG] Starting: Processing notification textDocument/didChange
2022-12-28 20:44:00.595 +03:00 [DBG] Starting: Routing Notification textDocument/didChange
2022-12-28 20:44:00.595 +03:00 [VRB] Converting params for Notification textDocument/didChange to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidChangeTextDocumentParams
2022-12-28 20:44:00.601 +03:00 [DBG] Finished: Routing Notification textDocument/didChange in 6ms
2022-12-28 20:44:00.602 +03:00 [DBG] Finished: Processing notification textDocument/didChange in 6ms
2022-12-28 20:44:00.814 +03:00 [DBG] Finding descriptors for textDocument/didChange
2022-12-28 20:44:00.814 +03:00 [VRB] Found attributes 1, ["xml::file:///home/zero/dev/CSharp/Avalonia/ToDoMVVM/ToDo/Views/NewItemView.axaml"]
2022-12-28 20:44:00.814 +03:00 [VRB] Looking for handler for descriptors textDocument/didChange
2022-12-28 20:44:00.814 +03:00 [VRB] Checking handler textDocument/didChange:Avalonia.AXAML.LanguageServer.Handlers.TextDocumentHandler
2022-12-28 20:44:00.814 +03:00 [VRB] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentChangeRegistrationOptions
2022-12-28 20:44:00.814 +03:00 [VRB] Document Selector [**/*.xaml], [**/*.axaml]
2022-12-28 20:44:00.814 +03:00 [VRB] Handler Selected: Avalonia.AXAML.LanguageServer.Handlers.TextDocumentHandler via [**/*.xaml], [**/*.axaml] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcNotificationHandler`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.DidChangeTextDocumentParams, OmniSharp.Extensions.LanguageProtocol, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])
2022-12-28 20:44:00.814 +03:00 [DBG] Queueing "Serial":textDocument/didChange request for processing
2022-12-28 20:44:00.815 +03:00 [DBG] Starting: Processing notification textDocument/didChange
2022-12-28 20:44:00.815 +03:00 [DBG] Starting: Routing Notification textDocument/didChange
2022-12-28 20:44:00.815 +03:00 [VRB] Converting params for Notification textDocument/didChange to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidChangeTextDocumentParams
2022-12-28 20:44:00.815 +03:00 [DBG] Finished: Routing Notification textDocument/didChange in 0ms
2022-12-28 20:44:00.815 +03:00 [DBG] Finished: Processing notification textDocument/didChange in 0ms
2022-12-28 20:44:01.264 +03:00 [DBG] Finding descriptors for textDocument/didChange
2022-12-28 20:44:01.264 +03:00 [VRB] Found attributes 1, ["xml::file:///home/zero/dev/CSharp/Avalonia/ToDoMVVM/ToDo/Views/NewItemView.axaml"]
2022-12-28 20:44:01.264 +03:00 [VRB] Looking for handler for descriptors textDocument/didChange
2022-12-28 20:44:01.264 +03:00 [VRB] Checking handler textDocument/didChange:Avalonia.AXAML.LanguageServer.Handlers.TextDocumentHandler
2022-12-28 20:44:01.264 +03:00 [VRB] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentChangeRegistrationOptions
2022-12-28 20:44:01.264 +03:00 [VRB] Document Selector [**/*.xaml], [**/*.axaml]
2022-12-28 20:44:01.264 +03:00 [VRB] Handler Selected: Avalonia.AXAML.LanguageServer.Handlers.TextDocumentHandler via [**/*.xaml], [**/*.axaml] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcNotificationHandler`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.DidChangeTextDocumentParams, OmniSharp.Extensions.LanguageProtocol, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])
2022-12-28 20:44:01.264 +03:00 [DBG] Queueing "Serial":textDocument/didChange request for processing
2022-12-28 20:44:01.265 +03:00 [DBG] Starting: Processing notification textDocument/didChange
2022-12-28 20:44:01.265 +03:00 [DBG] Starting: Routing Notification textDocument/didChange
2022-12-28 20:44:01.265 +03:00 [VRB] Converting params for Notification textDocument/didChange to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidChangeTextDocumentParams
2022-12-28 20:44:01.265 +03:00 [DBG] Finished: Routing Notification textDocument/didChange in 0ms
2022-12-28 20:44:01.265 +03:00 [DBG] Finished: Processing notification textDocument/didChange in 0ms
2022-12-28 20:44:02.267 +03:00 [DBG] Finding descriptors for textDocument/didSave
2022-12-28 20:44:02.267 +03:00 [VRB] Found attributes 1, ["xml::file:///home/zero/dev/CSharp/Avalonia/ToDoMVVM/ToDo/Views/NewItemView.axaml"]
2022-12-28 20:44:02.267 +03:00 [VRB] Looking for handler for descriptors textDocument/didSave
2022-12-28 20:44:02.267 +03:00 [VRB] Checking handler textDocument/didSave:Avalonia.AXAML.LanguageServer.Handlers.TextDocumentHandler
2022-12-28 20:44:02.267 +03:00 [VRB] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentSaveRegistrationOptions
2022-12-28 20:44:02.267 +03:00 [VRB] Document Selector [**/*.xaml], [**/*.axaml]
2022-12-28 20:44:02.267 +03:00 [VRB] Handler Selected: Avalonia.AXAML.LanguageServer.Handlers.TextDocumentHandler via [**/*.xaml], [**/*.axaml] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcNotificationHandler`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.DidSaveTextDocumentParams, OmniSharp.Extensions.LanguageProtocol, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])
2022-12-28 20:44:02.267 +03:00 [DBG] Queueing "Serial":textDocument/didSave request for processing
2022-12-28 20:44:02.267 +03:00 [DBG] Starting: Processing notification textDocument/didSave
2022-12-28 20:44:02.267 +03:00 [DBG] Starting: Routing Notification textDocument/didSave
2022-12-28 20:44:02.267 +03:00 [VRB] Converting params for Notification textDocument/didSave to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidSaveTextDocumentParams
2022-12-28 20:44:02.269 +03:00 [DBG] Finished: Routing Notification textDocument/didSave in 1ms
2022-12-28 20:44:02.269 +03:00 [DBG] Finished: Processing notification textDocument/didSave in 1ms
Loading

0 comments on commit f1202e8

Please sign in to comment.