Skip to content

Commit

Permalink
Merge pull request #2 from PauliusKu/v2
Browse files Browse the repository at this point in the history
V2
  • Loading branch information
PauliusKu authored May 27, 2020
2 parents f233900 + 9696da8 commit 9b96b02
Show file tree
Hide file tree
Showing 474 changed files with 8,626 additions and 12,895 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

*.tar

# User-specific files
*.rsuser
*.suo
Expand Down
36 changes: 36 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
// 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
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/FlightSystem2/bin/Debug/netcoreapp3.0/FlightSystem.Api.dll",
"args": [],
"cwd": "${workspaceFolder}/FlightSystem2",
"stopAtEntry": false,
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
"serverReadyAction": {
"action": "openExternally",
"pattern": "^\\s*Now listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
8 changes: 8 additions & 0 deletions .vscode/solution-explorer/class.cs-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;

namespace {{namespace}}
{
public class {{name}}
{
}
}
3 changes: 3 additions & 0 deletions .vscode/solution-explorer/class.ts-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export class {{name}} {

}
9 changes: 9 additions & 0 deletions .vscode/solution-explorer/class.vb-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Imports System

Namespace {{namespace}}

Public Class {{name}}

End Class

End Namespace
3 changes: 3 additions & 0 deletions .vscode/solution-explorer/default.ts-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {{name}} {

}
8 changes: 8 additions & 0 deletions .vscode/solution-explorer/enum.cs-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;

namespace {{namespace}}
{
public enum {{name}}
{
}
}
8 changes: 8 additions & 0 deletions .vscode/solution-explorer/interface.cs-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;

namespace {{namespace}}
{
public interface {{name}}
{
}
}
3 changes: 3 additions & 0 deletions .vscode/solution-explorer/interface.ts-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export interface {{name}} {

}
46 changes: 46 additions & 0 deletions .vscode/solution-explorer/template-list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"templates": [
{
"name": "Class",
"extension": "cs",
"file": "./class.cs-template",
"parameters": "./template-parameters.js"
},
{
"name": "Interface",
"extension": "cs",
"file": "./interface.cs-template",
"parameters": "./template-parameters.js"
},
{
"name": "Enum",
"extension": "cs",
"file": "./enum.cs-template",
"parameters": "./template-parameters.js"
},
{
"name": "Class",
"extension": "ts",
"file": "./class.ts-template",
"parameters": "./template-parameters.js"
},
{
"name": "Interface",
"extension": "ts",
"file": "./interface.ts-template",
"parameters": "./template-parameters.js"
},
{
"name": "Default",
"extension": "ts",
"file": "./default.ts-template",
"parameters": "./template-parameters.js"
},
{
"name": "Class",
"extension": "vb",
"file": "./class.vb-template",
"parameters": "./template-parameters.js"
}
]
}
17 changes: 17 additions & 0 deletions .vscode/solution-explorer/template-parameters.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
var path = require("path");

module.exports = function(filename, projectPath, folderPath) {
var namespace = "Unknown";
if (projectPath) {
namespace = path.basename(projectPath, path.extname(projectPath));
if (folderPath) {
namespace += "." + folderPath.replace(path.dirname(projectPath), "").substring(1).replace(/[\\\/]/g, ".");
}
namespace = namespace.replace(/[\\\-]/g, "_");
}

return {
namespace: namespace,
name: path.basename(filename, path.extname(filename))
}
};
42 changes: 42 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/FlightSystem2/FlightSystem.Api.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/FlightSystem2/FlightSystem.Api.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"${workspaceFolder}/FlightSystem2/FlightSystem.Api.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
}
]
}
Loading

0 comments on commit 9b96b02

Please sign in to comment.