Merged code from private repo
Signed-off-by:
Miklos Magyari <miklos.magyari@sigmatechnology.com>
Showing
- .eslintrc.json 24 additions, 0 deletions.eslintrc.json
- .gitignore 6 additions, 0 deletions.gitignore
- .vscode/extensions.json 7 additions, 0 deletions.vscode/extensions.json
- .vscode/launch.json 34 additions, 0 deletions.vscode/launch.json
- .vscode/settings.json 11 additions, 0 deletions.vscode/settings.json
- .vscode/tasks.json 20 additions, 0 deletions.vscode/tasks.json
- .vscodeignore 10 additions, 0 deletions.vscodeignore
- CHANGELOG.md 9 additions, 0 deletionsCHANGELOG.md
- README.md 5 additions, 1 deletionREADME.md
- language-configuration.json 11 additions, 0 deletionslanguage-configuration.json
- package-lock.json 4311 additions, 0 deletionspackage-lock.json
- package.json 207 additions, 0 deletionspackage.json
- snippets/asn1.json 143 additions, 0 deletionssnippets/asn1.json
- snippets/cfg.json 67 additions, 0 deletionssnippets/cfg.json
- snippets/ttcn.json 7 additions, 0 deletionssnippets/ttcn.json
- src/extension.ts 263 additions, 0 deletionssrc/extension.ts
- src/test/runTest.ts 23 additions, 0 deletionssrc/test/runTest.ts
- src/test/suite/extension.test.ts 15 additions, 0 deletionssrc/test/suite/extension.test.ts
- src/test/suite/index.ts 38 additions, 0 deletionssrc/test/suite/index.ts
- src/tpd.ts 90 additions, 0 deletionssrc/tpd.ts
.eslintrc.json
0 → 100755
.gitignore
0 → 100755
.vscode/extensions.json
0 → 100755
.vscode/launch.json
0 → 100755
.vscode/settings.json
0 → 100755
.vscode/tasks.json
0 → 100755
.vscodeignore
0 → 100755
CHANGELOG.md
0 → 100755
language-configuration.json
0 → 100755
package-lock.json
0 → 100755
This diff is collapsed.
package.json
0 → 100755
{ | |||
"name": "titan", | |||
"displayName": "Titan", | |||
"description": "Titan ttcn3 extension", | |||
"repository": { | |||
"type": "git", | |||
"url": "https://github.com/MiklosMagyari/TitanExtension" | |||
}, | |||
"version": "0.1.6", | |||
"engines": { | |||
"vscode": "^1.71.0" | |||
}, | |||
"categories": [ | |||
"Snippets", | |||
"Other" | |||
], | |||
"activationEvents": [ | |||
"onLanguage:ttcn", | |||
"onLanguage:asn1", | |||
"onLanguage:cfg", | |||
"workspaceContains:**/^.*\\.(ttcn|ttcn3|asn|asn1|ttcnpp|ttcnpp3|tpd|cfg)$" | |||
], | |||
"main": "./out/extension.js", | |||
"contributes": { | |||
"languages": [ | |||
{ | |||
"id": "ttcn", | |||
"extensions": [ | |||
".ttcn", | |||
".ttcn3" | |||
], | |||
"aliases": [ | |||
"Ttcn3", "ttcn", "TTCN", "ttcn3", "TTCN3" | |||
], | |||
"configuration": "./language-configuration.json" | |||
}, | |||
{ | |||
"id": "asn1", | |||
"extensions": [ ".asn", ".asn1" ], | |||
"aliases": [ "ASN", "asn", "ASN1", "asn1", "ASN.1", "asn.1" ], | |||
"configuration": "./language-configuration.json" | |||
}, | |||
{ | |||
"id": "cfg", | |||
"extensions": [ ".cfg" ], | |||
"aliases": [ "cfg", "Cfg" ], | |||
"configuration": "./language-configuration.json" | |||
} | |||
], | |||
"grammars": [ | |||
{ | |||
"path": "./syntaxes/ttcn.tmLanguage.json", | |||
"scopeName": "source.ttcn", | |||
"language": "ttcn" | |||
}, | |||
{ | |||
"path": "./syntaxes/asn1.tmLanguage.json", | |||
"scopeName": "source.asn1", | |||
"language": "asn1" | |||
}, | |||
{ | |||
"path": "./syntaxes/cfg.tmLanguage.json", | |||
"scopeName": "source.cfg", | |||
"language": "cfg" | |||
} | |||
], | |||
"views": { | |||
"explorer": [ | |||
{ | |||
"id": "tpdview", | |||
"name": "TPD files" | |||
} | |||
] | |||
}, | |||
"commands":[ | |||
{ | |||
"command": "tpdview.addFile", | |||
"title": "Add TPD...", | |||
"icon": "$(search-new-editor)" | |||
} | |||
], | |||
"menus":{ | |||
"view/title":[ | |||
{ | |||
"command": "tpdview.addFile", | |||
"when": "view == tpdview", | |||
"group": "navigation" | |||
} | |||
] | |||
}, | |||
"snippets": [ | |||
{ | |||
"language": "ttcn", | |||
"path": "./snippets/ttcn.json" | |||
}, | |||
{ | |||
"language": "asn1", | |||
"path": "./snippets/asn1.json" | |||
}, | |||
{ | |||
"language": "cfg", | |||
"path": "./snippets/cfg.json" | |||
} | |||
], | |||
"configuration": { | |||
"type": "object", | |||
"title": "Titan configuration", | |||
"properties": { | |||
"titan.onTheFlyChecker.enableOop": { | |||
"type": "boolean", | |||
"default": true, | |||
"description": "Enable ttcn3 object oriented extension" | |||
}, | |||
"titan.onTheFlyChecker.enableRealtime": { | |||
"type": "boolean", | |||
"default": false, | |||
"description": "Enable ttcn3 realtime extension" | |||
}, | |||
"titan.onTheFlyChecker.enableDocComments": { | |||
"type": "boolean", | |||
"default": true, | |||
"description": "Enable parsing of document comments" | |||
}, | |||
"titan.onTheFlyChecker.enableNamingConventionCheck": { | |||
"type": "boolean", | |||
"default": true, | |||
"description": "Enable checking of naming conventions" | |||
}, | |||
"titan.onTheFlyChecker.namingConventionSeverity": { | |||
"type": "string", | |||
"default": "warning", | |||
"description": "Severity of naming convention violations" | |||
}, | |||
"titan.namingConvention.testcase": { | |||
"type": "string", | |||
"default": "tc_*", | |||
"description": "Naming convention for testcases" | |||
}, | |||
"titan.compiler.tpdFiles": { | |||
"type": "array", | |||
"description": "Tpd files" | |||
}, | |||
"titan.compiler.compilerBinaryPath": { | |||
"type": "string", | |||
"default": "/tmp", | |||
"description": "Path to titan.core compiler binary" | |||
}, | |||
"titan.outline.showFunctions": { | |||
"type": "boolean", | |||
"default": "true", | |||
"description": "Show function definitions in the outline" | |||
}, | |||
"titan.outline.showTestcases": { | |||
"type": "boolean", | |||
"default": "true", | |||
"description": "Show testcases in the outline" | |||
}, | |||
"titan.outline.showClasses": { | |||
"type": "boolean", | |||
"default": "true", | |||
"description": "Show class definitions in the outline" | |||
}, | |||
"titan.maxNumberOfProblems": { | |||
"type": "number", | |||
"default": 100, | |||
"description": "Controls the maximum number of problems produced by the server." | |||
}, | |||
"ttcnserver.trace.server": { | |||
"scope": "window", | |||
"type": "string", | |||
"enum": [ | |||
"off", | |||
"messages", | |||
"verbose" | |||
], | |||
"default": "verbose", | |||
"description": "Traces the communication between VSCode and the languageServerExample service." | |||
} | |||
} | |||
} | |||
}, | |||
"dependencies": { | |||
"fast-xml-parser": "^4.0.11", | |||
"vscode-languageclient": "^7.0.0" | |||
}, | |||
"scripts": { | |||
"vscode:prepublish": "npm run compile", | |||
"compile": "tsc -p ./", | |||
"watch": "tsc -watch -p ./", | |||
"pretest": "npm run compile && npm run lint", | |||
"lint": "eslint src --ext ts", | |||
"test": "node ./out/test/runTest.js" | |||
}, | |||
"devDependencies": { | |||
"@types/glob": "^7.2.0", | |||
"@types/mocha": "^9.1.1", | |||
"@types/node": "16.x", | |||
"@types/vscode": "^1.71.0", | |||
"@typescript-eslint/eslint-plugin": "^5.31.0", | |||
"@typescript-eslint/parser": "^5.31.0", | |||
"@vscode/test-electron": "^2.1.5", | |||
"eslint": "^8.20.0", | |||
"glob": "^8.0.3", | |||
"mocha": "^10.0.0", | |||
"typescript": "^4.7.4" | |||
} | |||
} |
snippets/asn1.json
0 → 100644
snippets/cfg.json
0 → 100644
snippets/ttcn.json
0 → 100755
src/extension.ts
0 → 100755
This diff is collapsed.
src/test/runTest.ts
0 → 100755
src/test/suite/extension.test.ts
0 → 100755
src/test/suite/index.ts
0 → 100755
src/tpd.ts
0 → 100755
This diff is collapsed.
Please register or sign in to comment