-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
152 lines (152 loc) · 4.16 KB
/
Copy pathpackage.json
File metadata and controls
152 lines (152 loc) · 4.16 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
{
"name": "affinescript",
"displayName": "AffineScript",
"description": "Language support for AffineScript - affine types, effects, and dependent types",
"version": "0.1.0",
"publisher": "hyperpolymath",
"license": "MIT OR AGPL-3.0-or-later",
"repository": {
"type": "git",
"url": "https://github.com/hyperpolymath/affinescript"
},
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Programming Languages",
"Linters",
"Formatters"
],
"keywords": [
"affinescript",
"affine-types",
"linear-types",
"effects",
"dependent-types",
"webassembly"
],
"activationEvents": [
"onLanguage:affinescript"
],
"main": "./out/extension.cjs",
"contributes": {
"languages": [
{
"id": "affinescript",
"aliases": [
"AffineScript",
"affinescript"
],
"extensions": [
".affine"
],
"configuration": "./language-configuration.json",
"icon": {
"light": "./images/icon-light.png",
"dark": "./images/icon-dark.png"
}
}
],
"grammars": [
{
"language": "affinescript",
"scopeName": "source.affinescript",
"path": "./syntaxes/affinescript.tmLanguage.json"
}
],
"configuration": {
"title": "AffineScript",
"properties": {
"affinescript.lsp.enabled": {
"type": "boolean",
"default": true,
"description": "Enable AffineScript Language Server"
},
"affinescript.lsp.serverPath": {
"type": "string",
"default": "affinescript-lsp",
"description": "Path to affinescript-lsp executable"
},
"affinescript.format.indentSize": {
"type": "number",
"default": 2,
"description": "Number of spaces per indentation level"
},
"affinescript.format.maxLineLength": {
"type": "number",
"default": 100,
"description": "Maximum line length before wrapping"
},
"affinescript.lint.enabled": {
"type": "boolean",
"default": true,
"description": "Enable linting"
},
"affinescript.lint.unusedVariables": {
"type": "string",
"enum": ["error", "warning", "hint", "off"],
"default": "warning",
"description": "Diagnostic level for unused variables"
},
"affinescript.lint.missingEffectAnnotations": {
"type": "string",
"enum": ["error", "warning", "hint", "off"],
"default": "error",
"description": "Diagnostic level for missing effect annotations"
}
}
},
"commands": [
{
"command": "affinescript.check",
"title": "AffineScript: Type Check Current File"
},
{
"command": "affinescript.eval",
"title": "AffineScript: Evaluate Current File"
},
{
"command": "affinescript.compile",
"title": "AffineScript: Compile to WebAssembly"
},
{
"command": "affinescript.format",
"title": "AffineScript: Format Document"
},
{
"command": "affinescript.restartLsp",
"title": "AffineScript: Restart Language Server"
}
],
"keybindings": [
{
"command": "affinescript.check",
"key": "ctrl+shift+c",
"mac": "cmd+shift+c",
"when": "editorLangId == affinescript"
},
{
"command": "affinescript.eval",
"key": "ctrl+shift+r",
"mac": "cmd+shift+r",
"when": "editorLangId == affinescript"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "affinescript compile src/extension.affine -o out/extension.cjs --vscode-extension",
"watch": "echo 'watch mode not implemented for AffineScript source — re-run npm run compile'",
"guard": "../../tools/check-no-extension-ts.sh",
"package": "vsce package",
"publish": "vsce publish"
},
"devDependencies": {
"@types/vscode": "^1.80.0",
"vsce": "^2.15.0"
},
"dependencies": {
"@hyperpolymath/affine-vscode": "^0.1.0",
"vscode-languageclient": "^9.0.0"
}
}