Skip to content

Commit 41f24d6

Browse files
committed
change default case for addCetegory for #56
1 parent 119ea47 commit 41f24d6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-objectscript",
33
"displayName": "InterSystems ObjectScript",
44
"description": "InterSystems ObjectScript language support for Visual Studio Code",
5-
"version": "0.7.13-SNAPSHOT",
5+
"version": "0.7.14-SNAPSHOT",
66
"icon": "images/logo.png",
77
"categories": [
88
"Programming Languages",
@@ -474,7 +474,7 @@
474474
"default": ""
475475
},
476476
"objectscript.export.category": {
477-
"description": "Specifies a category: CLS = classes; RTN = routines; CSP = csp files; OTH = other. Default is *",
477+
"description": "Specifies a category to export: CLS = classes; RTN = routines; CSP = csp files; OTH = other. Default is *",
478478
"type": ["string", "object"],
479479
"default": "*"
480480
},

src/commands/export.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,12 @@ const getCategory = (fileName: string, addCategory: {} | boolean): string => {
3333
}
3434
switch (fileExt) {
3535
case "cls":
36-
return "CLS";
3736
case "int":
3837
case "inc":
3938
case "mac":
40-
return "RTN";
39+
return fileExt;
4140
default:
42-
return "OTH";
41+
return "oth";
4342
}
4443
};
4544

0 commit comments

Comments
 (0)