Skip to content
Snippets Groups Projects
Commit 0d805ffc authored by Adam Knapp's avatar Adam Knapp
Browse files

File types fix (titan.language-server#7)


Signed-off-by: default avatarAdam Knapp <adam.knapp@ericsson.com>
parent 627b23fb
No related branches found
No related tags found
1 merge request!26File types fix (titan.language-server#7)
......@@ -38,7 +38,7 @@ Additional features:\
## Supported file types
The following file types are handled by the extension:
- TTCN-3: `.ttcn, .ttc3, .ttcnpp, .ttcnpp3`
- TTCN-3: `.ttcn, .ttc3, .ttcnpp, .ttcnin`
- ASN.1: `.asn, .asn1`
- Runtime configuration files: `.cfg`
- Titan project descriptor files: `.tpd`
......
......@@ -25,7 +25,7 @@
"url": "https://gitlab.eclipse.org/eclipse/titan/titan.vs-code-extension/-/issues"
},
"activationEvents": [
"workspaceContains:**/^.*\\.(ttcn|ttcn3|asn|asn1|ttcnpp|ttcnpp3|tpd|cfg)$"
"workspaceContains:**/^.*\\.(asn|asn1|cfg|tpd|ttcn|ttcn3||ttcnpp|ttcnin)$"
],
"main": "./out/extension.js",
"contributes": {
......
......@@ -32,7 +32,7 @@ const windowEventHandlers = {
sendRequestForDocumentComment: (event: TextEditorSelectionChangeEvent) => {
cursorTimer.clearTimer();
const { textEditor, selections, kind } = event;
const supportedFileTypes = ['ttcn', 'ttcnpp', 'asn1'];
const supportedFileTypes = ['asn', 'asn1', 'ttcn', 'ttcn3', 'ttcnpp', 'ttcnin'];
if(selections.length > 1 || !supportedFileTypes.includes(textEditor.document.languageId)) {return;}
const cursorPosition = selections[0].active;
const requestParams = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment