Skip to content

Commit

Permalink
Build VSIX package
Browse files Browse the repository at this point in the history
  • Loading branch information
AnHeuermann committed Dec 19, 2023
1 parent b31bb34 commit a4d9502
Show file tree
Hide file tree
Showing 6 changed files with 149 additions and 78 deletions.
40 changes: 38 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Test Modelica Language Server
name: Build

on: [push, pull_request]
on:
push:
branches:
tags:
- "v*.*.*"
pull_request:
branches:
- main

jobs:
build:
Expand All @@ -23,3 +30,32 @@ jobs:

- name: Test language server
run: npm run test:server

- name: Package Extension
run: npx vsce package

- name: Archive vsix package
uses: actions/upload-artifact@v4
with:
name: language-server-modelica.vsix
path: language-server-modelica-*.vsix

release:
if: startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: language-server-modelica.vsix

- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
language-server-modelica-*.vsix
fail_on_unmatched_files: true
generate_release_notes: true
append_body: true
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
out
node_modules
client/server
.vscode-test
client/server
language-server-modelica*.vsix
node_modules
out
19 changes: 19 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# The MIT License (MIT)

Copyright (C) 2023 Andreas Heuermann, Osman Karabel

Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the “Software”), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,13 @@ It also includes an End-to-End test.
- In the [Extension Development Host](https://code.visualstudio.com/api/get-started/your-first-extension#:~:text=Then%2C%20inside%20the%20editor%2C%20press%20F5.%20This%20will%20compile%20and%20run%20the%20extension%20in%20a%20new%20Extension%20Development%20Host%20window.)
instance of VSCode, open a document in 'modelica' language mode.
- Check the console output of `Language Server Modelica` to see the parsed tree of the opened file.

## Build and Install Extension

```
npx vsce package
```

## License

See [License.md](./LICENSE.md).
130 changes: 65 additions & 65 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 13 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
{
"name": "lsp-sample",
"description": "A language server Modelica",
"author": "Microsoft Corporation",
"name": "language-server-modelica",
"displayName": "[Experimental] Language Server Modelica",
"description": "[Experimental] A Modelica language server",
"version": "0.1.0",
"author": "Andreas Heuermann, Osman Karabel",
"license": "MIT",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-extension-samples"
"url": "https://github.com/AnHeuermann/modelica-language-server"
},
"publisher": "vscode-samples",
"categories": [],
"publisher": "AnHeuermann",
"categories": [
"Programming Languages"
],
"keywords": [
"multi-root ready"
"modelica",
"language",
"language-server"
],
"engines": {
"vscode": "^1.75.0"
Expand Down

0 comments on commit a4d9502

Please sign in to comment.