From 875b2812e0f0d84ce04ee25b689daaa2330fa226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Thu, 14 Dec 2023 21:30:17 +0100 Subject: [PATCH] Scaffold a VS extension project based on the new VS extensibility model. Part of #63. --- Directory.Packages.props | 4 + celerity.sln | 190 +++++++++++++----------- src/extensions/vs/CelerityExtension.cs | 17 +++ src/extensions/vs/nuget.config | 16 ++ src/extensions/vs/vs.cs | 2 + src/extensions/vs/vs.csproj | 57 +++++++ src/extensions/vscode/package-lock.json | 4 +- src/extensions/vscode/package.json | 2 +- 8 files changed, 199 insertions(+), 93 deletions(-) create mode 100644 src/extensions/vs/CelerityExtension.cs create mode 100644 src/extensions/vs/nuget.config create mode 100644 src/extensions/vs/vs.cs create mode 100644 src/extensions/vs/vs.csproj diff --git a/Directory.Packages.props b/Directory.Packages.props index 2379f7b8..27976345 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -34,6 +34,10 @@ Version="4.7.0" /> + + + + + + + + + + + + + + + + + diff --git a/src/extensions/vs/vs.cs b/src/extensions/vs/vs.cs new file mode 100644 index 00000000..ae5cefba --- /dev/null +++ b/src/extensions/vs/vs.cs @@ -0,0 +1,2 @@ +[assembly: DisableRuntimeMarshalling] +[module: SkipLocalsInit] diff --git a/src/extensions/vs/vs.csproj b/src/extensions/vs/vs.csproj new file mode 100644 index 00000000..1bd60adc --- /dev/null +++ b/src/extensions/vs/vs.csproj @@ -0,0 +1,57 @@ + + + Vezel.Celerity.VisualStudio + _PackVsixContainer + true + false + Vezel.Celerity.VisualStudio + + + + + + + + + + + + + + + + + + + + + + + + + <_VsixOutputPath>$(ArtifactsPath)/pkg/vs/$(Configuration.ToLowerInvariant()) + + + + + + + + + + + + diff --git a/src/extensions/vscode/package-lock.json b/src/extensions/vscode/package-lock.json index 134ee228..f8c8e493 100644 --- a/src/extensions/vscode/package-lock.json +++ b/src/extensions/vscode/package-lock.json @@ -1,10 +1,10 @@ { - "name": "celerity", + "name": "vscode-celerity", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "celerity", + "name": "vscode-celerity", "license": "0BSD", "dependencies": { "vscode-languageclient": "9.0.1" diff --git a/src/extensions/vscode/package.json b/src/extensions/vscode/package.json index d9129e93..cd93f3b0 100644 --- a/src/extensions/vscode/package.json +++ b/src/extensions/vscode/package.json @@ -1,5 +1,5 @@ { - "name": "celerity", + "name": "vscode-celerity", "displayName": "Celerity", "description": "Celerity programming language support for Visual Studio Code.", "publisher": "vezel",