forked from iliazeus/vscode-ansi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
151 lines (151 loc) · 4.11 KB
/
package.json
File metadata and controls
151 lines (151 loc) · 4.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"name": "ansi-viewer",
"publisher": "HNRobert",
"displayName": "ANSI Viewer",
"description": "ANSI color styling and previewer for text documents",
"version": "0.1.0",
"license": "MIT",
"repository": {
"url": "https://github.com/hnrobert/ansi-viewer"
},
"bugs": {
"url": "https://github.com/hnrobert/ansi-viewer/issues",
"email": "hnrobert@qq.com"
},
"packageManager": "pnpm@10.13.1",
"icon": "images/icon.png",
"engines": {
"vscode": "^1.104.0"
},
"categories": [
"Themes",
"Visualization"
],
"keywords": [
"ansi",
"escapes",
"colors",
"logs"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "HNRobert.ansi-viewer.showPreview",
"title": "Open Preview",
"category": "ANSI Text",
"icon": "$(open-preview)"
},
{
"command": "HNRobert.ansi-viewer.showPreviewToSide",
"title": "Open Preview to the Side",
"category": "ANSI Text",
"icon": "$(open-preview)"
},
{
"command": "HNRobert.ansi-viewer.toggleEnable",
"title": "Toggle ANSI Viewer",
"category": "ANSI Text"
}
],
"menus": {
"editor/title": [
{
"command": "HNRobert.ansi-viewer.showPreviewToSide",
"alt": "HNRobert.ansi-viewer.showPreview",
"when": "editorLangId == ansi",
"group": "navigation"
}
]
},
"keybindings": [
{
"command": "HNRobert.ansi-viewer.showPreview",
"key": "shift+ctrl+v",
"mac": "shift+cmd+v",
"when": "editorLangId == ansi"
},
{
"command": "HNRobert.ansi-viewer.showPreviewToSide",
"key": "ctrl+k v",
"mac": "cmd+k v",
"when": "editorLangId == ansi"
}
],
"languages": [
{
"id": "ansi",
"aliases": [
"ANSI Text"
],
"extensions": [
".ans",
".ansi"
],
"configuration": "./ansi.language-configuration.json"
}
],
"configuration": {
"title": "ANSI Viewer",
"properties": {
"ansiViewer.enable": {
"type": "boolean",
"default": true,
"description": "Enable ANSI Viewer extension functionality"
},
"ansiViewer.autoLanguageModeFiles": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"**/*.ans",
"**/*.ansi"
],
"description": "File glob patterns for files that should automatically be set to ANSI language mode when opened. This enables ANSI escape sequence highlighting. Supports gitignore-style patterns: '*.log' matches log files in any directory, 'logs/*.txt' matches txt files in logs folder."
},
"ansiViewer.escapeSequenceDisplay": {
"type": "string",
"enum": [
"normal",
"dimmed",
"hidden"
],
"default": "dimmed",
"description": "How to display ANSI escape sequences in the editor. 'normal' shows them normally, 'dimmed' shows them with reduced opacity, 'hidden' makes them invisible."
}
}
}
},
"scripts": {
"build": "tsup",
"lint": "eslint src --ext ts",
"watch": "tsup --watch",
"test": "node ./out/test/runTest.js",
"test:stable": "VSCODE_TEST_VERSION=stable node ./out/test/runTest.js",
"test:insiders": "VSCODE_TEST_VERSION=insiders node ./out/test/runTest.js"
},
"devDependencies": {
"@types/micromatch": "^4.0.9",
"@types/mocha": "^10.0.10",
"@types/node": "^24.5.2",
"@types/vscode": "^1.104.0",
"@typescript-eslint/eslint-plugin": "^8.44.0",
"@typescript-eslint/parser": "^8.44.0",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.6.0",
"eslint": "^9.36.0",
"glob": "^11.0.3",
"mocha": "^11.7.2",
"prettier": "^3.6.2",
"tsup": "^8.5.0",
"typescript": "~5.9.2",
"vscode-test": "npm:@vscode/test-electron@^2.5.2"
},
"dependencies": {
"micromatch": "^4.0.8"
}
}