Skip to content

Commit ccf2776

Browse files
committed
fix(ci): align engines.vscode to ^1.104.0 to match @types/vscode; update README requirement
1 parent 7672ed2 commit ccf2776

2 files changed

Lines changed: 33 additions & 5 deletions

File tree

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
## Requirements
2020

21-
- Visual Studio Code 1.100.0 or higher
21+
- Visual Studio Code 1.104.0 or higher
2222
- Node.js (for extension development, if building from source)
2323

2424
## Installation
@@ -62,9 +62,23 @@
6262

6363
## Configuration
6464

65-
Right now, the extension offers limited customization. You can modify the code to:
65+
You can customize the comment prefix per file extension via Settings:
6666

67-
- **Adjust Supported File Types** by editing the `commentSyntaxMap` in [extension.ts](./src/extension.ts).
67+
- Setting: `autopathcomment.commentSyntaxMap`
68+
- Keys are file extensions (include the dot), values are single-line comment prefixes.
69+
70+
Examples:
71+
72+
```jsonc
73+
// settings.json
74+
{
75+
"autopathcomment.commentSyntaxMap": {
76+
".sh": "#",
77+
".kt": "//",
78+
".zig": "//"
79+
}
80+
}
81+
```
6882

6983
## Known Issues / Limitations
7084

package.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "https://github.com/icoretech/autopathcomment.git"
1111
},
1212
"engines": {
13-
"vscode": "^1.100.0"
13+
"vscode": "^1.104.0"
1414
},
1515
"categories": [
1616
"Other"
@@ -19,7 +19,21 @@
1919
"onStartupFinished"
2020
],
2121
"main": "./dist/extension.js",
22-
"contributes": {},
22+
"contributes": {
23+
"configuration": {
24+
"title": "AutoPathComment",
25+
"properties": {
26+
"autopathcomment.commentSyntaxMap": {
27+
"type": "object",
28+
"markdownDescription": "Custom mapping of file extensions to single-line comment prefixes. Keys must include the dot (e.g. `.ts`) and values are prefixes like `//` or `#`. User values override built-in defaults.",
29+
"default": {},
30+
"additionalProperties": {
31+
"type": "string"
32+
}
33+
}
34+
}
35+
}
36+
},
2337
"scripts": {
2438
"vscode:prepublish": "npm run package",
2539
"compile": "npm run check-types && npm run lint && node esbuild.js",

0 commit comments

Comments
 (0)