Skip to content

Commit b3a7e3b

Browse files
committed
initial commit
0 parents  commit b3a7e3b

File tree

9 files changed

+165
-0
lines changed

9 files changed

+165
-0
lines changed

.github/workflows/publish.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish
2+
3+
on:
4+
workflow_dispatch: # Allows manual triggering of the workflow
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v3
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: '20' # Adjust the Node.js version if necessary
18+
19+
- name: Install dependencies
20+
run: npm install
21+
22+
- name: Publish VS Code extension
23+
env:
24+
VSCE_PAT: ${{ secrets.VSCE_TOKEN }} # Use the PAT stored as a secret
25+
run: npm run deploy

.github/workflows/release.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*' # Triggers the workflow when pushing a tag that matches the pattern, e.g., v1.0.0
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '20' # Or any other Node.js version your project requires
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Build VS Code extension package
25+
run: npm run package
26+
27+
- name: Create GitHub release
28+
id: create_release
29+
uses: actions/create-release@v1
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
tag_name: ${{ github.ref }}
34+
release_name: Release ${{ github.ref }}
35+
draft: false
36+
prerelease: false
37+
38+
- name: Get version from package.json
39+
id: get_version
40+
run: echo "VERSION=$(jq -r '.version' package.json)" >> $GITHUB_ENV
41+
42+
- name: Upload VS Code extension package to release
43+
uses: actions/upload-release-asset@v1
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
with:
47+
upload_url: ${{ steps.create_release.outputs.upload_url }}
48+
asset_path: ./omnetpp-ned-${{ env.VERSION }}.vsix
49+
asset_name: omnetpp-ned-${{ env.VERSION }}.vsix
50+
asset_content_type: application/vsix

.vscode/launch.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// A launch configuration that launches the extension 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": "Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"args": [
13+
"--extensionDevelopmentPath=${workspaceFolder}"
14+
]
15+
}
16+
]
17+
}

.vscodeignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.vscode/**
2+
.vscode-test/**
3+
.gitignore
4+
vsc-extension-quickstart.md

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Change Log
2+
3+
All notable changes to the "omnetpp-ned" extension will be documented in this file.
4+
5+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6+
7+
## [Unreleased]
8+
9+
- Initial release

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 OpenSim Ltd.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
TextMate grammar and Visual Studio Code extension for the OMNeT++ NED language.
2+
3+
## Features
4+
5+
Syntax highlighting of .ned files.
6+
7+
## Requirements
8+
9+
VS Code version 1.92 or higher.

language-configuration.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"comments": {
3+
// symbol used for single line comment. Remove this entry if your language does not support line comments
4+
"lineComment": "//",
5+
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
6+
"blockComment": [ "/*", "*/" ]
7+
},
8+
// symbols used as brackets
9+
// "brackets": [
10+
// ["{", "}"],
11+
// ["[", "]"],
12+
// ["(", ")"]
13+
// ],
14+
// symbols that are auto closed when typing
15+
// "autoClosingPairs": [
16+
// ["{", "}"],
17+
// ["[", "]"],
18+
// ["(", ")"],
19+
// ["\"", "\""],
20+
// ["'", "'"]
21+
// ],
22+
// symbols that can be used to surround a selection
23+
// "surroundingPairs": [
24+
// ["{", "}"],
25+
// ["[", "]"],
26+
// ["(", ")"],
27+
// ["\"", "\""],
28+
// ["'", "'"]
29+
]
30+
}

logo128.png

3.45 KB
Loading

0 commit comments

Comments
 (0)