Skip to content

Commit 43cdebd

Browse files
authored
Merge pull request #7 from idexus/vscode
VS code support
2 parents 92b2d5f + 9aadd0a commit 43cdebd

38 files changed

+4006
-46
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
##
44
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
55

6+
src/HotReloadKit.VSCode/hotreloadkit-0.5.0.vsix
7+
src/HotReloadKit.VSCode/service
8+
src/HotReloadKit.VSCode/out
9+
src/HotReloadKit.VSCodeService/published
10+
611
.DS_Store
712
*.HotReloadSupport.g.cs
813
Assembly.cs

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# HotReloadKit
22

3-
Hot Reload Kit for VS2022 for Mac and Windows
3+
HotReloadKit is an extension tailored for C# .NET Core projects, delivering efficient hot reloading capabilities. Compatible with Visual Studio Code and Visual Studio 2022 for Mac and Windows, as well as .NET MAUI projects, it's a crucial tool utilized by Sharp.UI, a library simplifying .NET MAUI development with fluent methods solely in C# code.
4+
5+
- [Sharp.UI GitHub Repository](https://github.com/idexus/Sharp.UI)
46

57
# Usage
68

@@ -24,10 +26,11 @@ class Program
2426
}
2527
```
2628

27-
# VS2022 extensions
29+
# VS extensions
2830

29-
- [mpack package for VS for Mac](https://github.com/idexus/HotReloadKit/releases)
30-
- [vsix package for VS for Windows](https://github.com/idexus/HotReloadKit/releases)
31+
- [vsix package for VS Code](https://github.com/idexus/HotReloadKit/releases)
32+
- [vsix package for VS2022 for Windows](https://github.com/idexus/HotReloadKit/releases)
33+
- [mpack package for VS2022 for Mac](https://github.com/idexus/HotReloadKit/releases)
3134

3235
# Nuget package
3336

@@ -41,4 +44,6 @@ There is no official support. Use at your own risk.
4144

4245
# License
4346

44-
License MIT, Copyright (c) 2023 Pawel Krzywdzinski
47+
Licensed under the MIT License. © 2023 Pawel Krzywdzinski
48+
49+
**Enjoy!**
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.5.002.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HotReloadExample", "HotReloadExample.csproj", "{C45E56DC-68B6-45C6-BFD1-BA354D4CF6C2}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotReloadKit", "..\HotReloadKit\HotReloadKit.csproj", "{2B7318B8-44CE-4BD0-9E61-5A542418C057}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotReloadKit.Generator", "..\HotReloadKit.Generator\HotReloadKit.Generator.csproj", "{EC718C57-3E6D-4B5F-88F8-E7F9C15176D2}"
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SlimTcpServer", "..\..\libs\SlimTcpServer\src\SlimTcpServer\SlimTcpServer.csproj", "{2813D46A-7216-4FEA-8139-4C6BB87F5BAA}"
13+
EndProject
14+
Global
15+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
16+
Debug|Any CPU = Debug|Any CPU
17+
Release|Any CPU = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
20+
{C45E56DC-68B6-45C6-BFD1-BA354D4CF6C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{C45E56DC-68B6-45C6-BFD1-BA354D4CF6C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{C45E56DC-68B6-45C6-BFD1-BA354D4CF6C2}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{C45E56DC-68B6-45C6-BFD1-BA354D4CF6C2}.Release|Any CPU.Build.0 = Release|Any CPU
24+
{2B7318B8-44CE-4BD0-9E61-5A542418C057}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25+
{2B7318B8-44CE-4BD0-9E61-5A542418C057}.Debug|Any CPU.Build.0 = Debug|Any CPU
26+
{2B7318B8-44CE-4BD0-9E61-5A542418C057}.Release|Any CPU.ActiveCfg = Release|Any CPU
27+
{2B7318B8-44CE-4BD0-9E61-5A542418C057}.Release|Any CPU.Build.0 = Release|Any CPU
28+
{EC718C57-3E6D-4B5F-88F8-E7F9C15176D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29+
{EC718C57-3E6D-4B5F-88F8-E7F9C15176D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
30+
{EC718C57-3E6D-4B5F-88F8-E7F9C15176D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
31+
{EC718C57-3E6D-4B5F-88F8-E7F9C15176D2}.Release|Any CPU.Build.0 = Release|Any CPU
32+
{2813D46A-7216-4FEA-8139-4C6BB87F5BAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33+
{2813D46A-7216-4FEA-8139-4C6BB87F5BAA}.Debug|Any CPU.Build.0 = Debug|Any CPU
34+
{2813D46A-7216-4FEA-8139-4C6BB87F5BAA}.Release|Any CPU.ActiveCfg = Release|Any CPU
35+
{2813D46A-7216-4FEA-8139-4C6BB87F5BAA}.Release|Any CPU.Build.0 = Release|Any CPU
36+
EndGlobalSection
37+
GlobalSection(SolutionProperties) = preSolution
38+
HideSolutionNode = FALSE
39+
EndGlobalSection
40+
GlobalSection(ExtensibilityGlobals) = postSolution
41+
SolutionGuid = {A2D7F823-8DE7-4218-8148-4D628017FEF7}
42+
EndGlobalSection
43+
EndGlobal

src/HotReloadExample/MyClass.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace HotReloadExample
33
{
44
public class MyClass
55
{
6-
6+
77
}
88

99
public class SecondClass

src/HotReloadExample/OtherClass.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
public class OtherClass
44
{
5-
5+
66
}
77
}
88

src/HotReloadExample/Program.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using HotReloadKit;
33

44
namespace HotReloadExample;
@@ -20,16 +20,16 @@ static void Main(string[] args)
2020
}
2121

2222
class A
23-
{
24-
23+
{
24+
2525
}
26-
26+
2727
class B
28-
{
29-
28+
{
29+
3030
}
31-
31+
3232
class C
3333
{
3434

35-
}
35+
}

src/HotReloadKit.VSCode.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.5.002.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HotReloadKit.VSCodeService", "HotReloadKit.VSCodeService\HotReloadKit.VSCodeService.csproj", "{C7ED8401-5663-4A16-8F11-6AE5FECBD902}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{C7ED8401-5663-4A16-8F11-6AE5FECBD902}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{C7ED8401-5663-4A16-8F11-6AE5FECBD902}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{C7ED8401-5663-4A16-8F11-6AE5FECBD902}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{C7ED8401-5663-4A16-8F11-6AE5FECBD902}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {9CABF58A-D60D-4E8B-B33B-4994323329E2}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"sourceType": "module"
7+
},
8+
"plugins": [
9+
"@typescript-eslint"
10+
],
11+
"rules": {
12+
"@typescript-eslint/naming-convention": "warn",
13+
"@typescript-eslint/semi": "warn",
14+
"curly": "warn",
15+
"eqeqeq": "warn",
16+
"no-throw-literal": "warn",
17+
"semi": "off"
18+
},
19+
"ignorePatterns": [
20+
"out",
21+
"dist",
22+
"**/*.d.ts"
23+
]
24+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"dbaeumer.vscode-eslint"
6+
]
7+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// A launch configuration that compiles the extension and then opens it inside a new window
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
{
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"args": [
13+
"--extensionDevelopmentPath=${workspaceFolder}"
14+
],
15+
"outFiles": [
16+
"${workspaceFolder}/out/**/*.js"
17+
],
18+
"preLaunchTask": "${defaultBuildTask}"
19+
},
20+
{
21+
"name": "Extension Tests",
22+
"type": "extensionHost",
23+
"request": "launch",
24+
"args": [
25+
"--extensionDevelopmentPath=${workspaceFolder}",
26+
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
27+
],
28+
"outFiles": [
29+
"${workspaceFolder}/out/test/**/*.js"
30+
],
31+
"preLaunchTask": "${defaultBuildTask}"
32+
}
33+
]
34+
}

0 commit comments

Comments
 (0)