-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
203 lines (203 loc) 路 5.21 KB
/
Copy pathpackage.json
File metadata and controls
203 lines (203 loc) 路 5.21 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
{
"name": "patto-language-server",
"description": "Patto Note language server with preview support",
"license": "MIT",
"version": "0.6.0",
"publisher": "ompugao",
"displayName": "Patto Language Server",
"categories": [
"Programming Languages"
],
"keywords": [
"patto",
"note-taking",
"wiki",
"language-server"
],
"repository": {
"url": "https://github.com/ompugao/patto"
},
"engines": {
"vscode": "^1.66.0"
},
"enabledApiProposals": [],
"activationEvents": [
"onLanguage:patto"
],
"main": "./dist/extension.js",
"icon": "assets/patto-icon_notext.png",
"contributes": {
"languages": [
{
"id": "patto",
"extensions": [
".pn"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "patto",
"scopeName": "source.patto",
"path": "./syntaxes/patto.tmLanguage.json"
}
],
"commands": [
{
"command": "patto.tasks",
"title": "Patto: Aggregate tasks in the workspace"
},
{
"command": "patto.scanWorkspace",
"title": "Patto: Scan workspace for notes"
},
{
"command": "patto.twoHopLinks",
"title": "Patto: Show two-hop links"
},
{
"command": "patto.openPreview",
"title": "Patto: Open preview"
},
{
"command": "patto.snapshotPapers",
"title": "Patto: Snapshot Papers (refresh cache)"
},
{
"command": "patto.copyAsMarkdown",
"title": "Patto: Copy as Markdown"
},
{
"command": "patto.taskReview",
"title": "Patto: Review Completed Tasks"
}
],
"views": {
"explorer": [
{
"id": "pattoTasks",
"name": "Patto Note Tasks"
}
]
},
"configuration": {
"type": "object",
"title": "patto-language-server",
"properties": {
"patto-language-server.trace.server": {
"type": "string",
"scope": "window",
"enum": [
"off",
"messages",
"verbose"
],
"enumDescriptions": [
"No traces",
"Error only",
"Full log"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"patto.autoOpenPreview": {
"type": "boolean",
"default": false,
"description": "Automatically open preview when opening a .pn file"
},
"patto.lspPath": {
"type": "string",
"default": "patto-lsp",
"description": "Path to patto-lsp binary. If not in PATH, specify full path here."
},
"patto.previewPath": {
"type": "string",
"default": "patto-preview",
"description": "Path to patto-preview binary. If not in PATH, specify full path here."
},
"patto.markdown.defaultFlavor": {
"type": "string",
"enum": ["standard", "obsidian", "github"],
"default": "standard",
"description": "Default markdown flavor for 'Copy as Markdown' command"
},
"editor.semanticHighlighting.enabled": {
"type": "boolean",
"default": true,
"description": "Enable semantic highlighting for Patto files"
}
}
},
"semanticTokenScopes": [
{
"scopes": {
"function": [
"entity.name.function"
],
"variable": [
"variable.other"
],
"string": [
"string.quoted"
],
"comment": [
"comment.line"
],
"keyword": [
"keyword.control"
],
"operator": [
"keyword.operator"
],
"property": [
"variable.other.property"
],
"type": [
"entity.name.type"
],
"enum": [
"constant.language"
],
"modifier": [
"storage.modifier"
]
}
}
]
},
"scripts": {
"postinstall": "cd client && pnpm i --ignore-scripts",
"test-compile": "tsc -p ./",
"compile": "cross-env NODE_ENV=production tsc -b",
"watch": "rm -rf dist && tsc -b -w",
"lint": "eslint ./client --ext ts",
"pretest": "npm run compile && npm run lint",
"test": "node ./dist/test/runTest.js",
"build": "webpack --config webpack.config.js",
"package": "npm run build && vsce package --no-dependencies",
"publish": "vsce publish --no-dependencies"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^8.2.3",
"@types/node": "^12.20.55",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"cross-env": "^7.0.3",
"electron-rebuild": "^3.2.9",
"eslint": "^9.26.0",
"glob": "^7.2.3",
"mocha": "^11.7.5",
"ts-loader": "^9.5.4",
"typescript": "5.4.5",
"vscode-test": "^1.6.1",
"vscode-uri": "^3.1.0",
"webpack": "^5.104.1",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@vscode/vsce": "^3.7.0",
"vscode-languageclient": "9.0.1"
}
}