@coderline/alphatab-language-server 1.9.0-alpha.1883 → 1.9.0-alpha.1891

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,11 +37,6 @@ export { PropertyDefinition_2 as PropertyDefinition }
37
37
 
38
38
  export { SignatureDefinition }
39
39
 
40
- /**
41
- * Starts a new language server communicating from a Node.js process with a parent Node.js.
42
- */
43
- export declare function startNodeLanguageServer(): void;
44
-
45
40
  /**
46
41
  * Starts a new language server communicating via WebWorker.
47
42
  * @param readerPort The port used to reading incoming language server messages
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * alphaTab Language Server v1.9.0-alpha.1891 (develop, build 1891)
3
+ *
4
+ * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
+ *
6
+ * This Source Code Form is subject to the terms of the Mozilla Public
7
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+ *
10
+ * @preserve
11
+ * @license
12
+ */
13
+ import{n as r,r as s,t as m}from"./src.mjs";import{startWebWorkerLanguageServer as o}from"./server/browser.mjs";export{m as documentation,r as languageConfiguration,o as startWebWorkerLanguageServer,s as textMateGrammar};
@@ -0,0 +1,15 @@
1
+ /*!
2
+ * alphaTab Language Server v1.9.0-alpha.1891 (develop, build 1891)
3
+ *
4
+ * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
+ *
6
+ * This Source Code Form is subject to the terms of the Mozilla Public
7
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+ *
10
+ * @preserve
11
+ * @license
12
+ */
13
+ import { n as languageConfiguration, r as textMateGrammar, t as documentation } from "./src.mjs";
14
+ import { startWebWorkerLanguageServer } from "./server/browser.mjs";
15
+ export { documentation, languageConfiguration, startWebWorkerLanguageServer, textMateGrammar };
@@ -0,0 +1,52 @@
1
+ import type { AlphaTexExample } from './../../alphatex/src/types';
2
+ import type { MetadataTagDefinition } from './../../alphatex/src/types';
3
+ import type { ParameterDefinition } from './../../alphatex/src/types';
4
+ import type { ParameterValueDefinition } from './../../alphatex/src/types';
5
+ import type { PropertyDefinition as PropertyDefinition_2 } from './../../alphatex/src/types';
6
+ import type { SignatureDefinition } from './../../alphatex/src/types';
7
+ import type { WithDescription } from './../../alphatex/src/types';
8
+ import type { WithSignatures } from './../../alphatex/src/types';
9
+
10
+ export { AlphaTexExample }
11
+
12
+ export declare const documentation: {
13
+ structuralMetaData: Map<string, MetadataTagDefinition>;
14
+ scoreMetaData: Map<string, MetadataTagDefinition>;
15
+ staffMetaData: Map<string, MetadataTagDefinition>;
16
+ barMetaData: Map<string, MetadataTagDefinition>;
17
+ durationChangeProperties: Map<string, PropertyDefinition_2>;
18
+ beatProperties: Map<string, PropertyDefinition_2>;
19
+ noteProperties: Map<string, PropertyDefinition_2>;
20
+ };
21
+
22
+ /**
23
+ * The contents of a language-configuration.json to use in editors like VSCode.
24
+ */
25
+ export declare const languageConfiguration: any;
26
+
27
+ export { MetadataTagDefinition }
28
+
29
+ export { ParameterDefinition }
30
+
31
+ export { ParameterValueDefinition }
32
+
33
+ export { PropertyDefinition_2 as PropertyDefinition }
34
+
35
+ export { SignatureDefinition }
36
+
37
+ /**
38
+ * Starts a new language server communicating from a Node.js process with a parent Node.js.
39
+ */
40
+ export declare function startNodeLanguageServer(): void;
41
+
42
+ /**
43
+ * The TextMate grammar definition as JSON encoded.
44
+ * Write this to a local json (e.g. alphatex.tmLanguage.json ) or pass it to any supported parser for further use.
45
+ */
46
+ export declare const textMateGrammar: any;
47
+
48
+ export { WithDescription }
49
+
50
+ export { WithSignatures }
51
+
52
+ export { }
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * alphaTab Language Server v1.9.0-alpha.1891 (develop, build 1891)
3
+ *
4
+ * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
+ *
6
+ * This Source Code Form is subject to the terms of the Mozilla Public
7
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+ *
10
+ * @preserve
11
+ * @license
12
+ */
13
+ import{n as r,r as m,t as o}from"./src.mjs";import{startNodeLanguageServer as s}from"./server/node.mjs";import.meta.main&&s();export{o as documentation,r as languageConfiguration,s as startNodeLanguageServer,m as textMateGrammar};
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * alphaTab Language Server v1.9.0-alpha.1891 (develop, build 1891)
3
+ *
4
+ * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
+ *
6
+ * This Source Code Form is subject to the terms of the Mozilla Public
7
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+ *
10
+ * @preserve
11
+ * @license
12
+ */
13
+ import { n as languageConfiguration, r as textMateGrammar, t as documentation } from "./src.mjs";
14
+ import { startNodeLanguageServer } from "./server/node.mjs";
15
+ //#region src/index.node.ts
16
+ if (import.meta.main) startNodeLanguageServer();
17
+ //#endregion
18
+ export { documentation, languageConfiguration, startNodeLanguageServer, textMateGrammar };
19
+
20
+ //# sourceMappingURL=index.node.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.node.mjs","names":[],"sources":["../src/index.node.ts"],"sourcesContent":["export * from '@coderline/alphatab-language-server/index';\nimport { startNodeLanguageServer } from '@coderline/alphatab-language-server/server/node';\nexport { startNodeLanguageServer };\n\nif (import.meta.main) {\n startNodeLanguageServer();\n}\n"],"mappings":";;;;;;;;;;;;;;;AAIA,IAAI,YAAY,MACZ,wBAAwB"}
@@ -0,0 +1,12 @@
1
+ import { BrowserMessageReader } from 'vscode-languageserver/browser';
2
+
3
+ declare type Port = ConstructorParameters<typeof BrowserMessageReader>[0];
4
+
5
+ /**
6
+ * Starts a new language server communicating via WebWorker.
7
+ * @param readerPort The port used to reading incoming language server messages
8
+ * @param writerPort The port used to writer outgoing language server messages
9
+ */
10
+ export declare function startWebWorkerLanguageServer(readerPort: Port, writerPort: Port): void;
11
+
12
+ export { }
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * alphaTab Language Server v1.9.0-alpha.1891 (develop, build 1891)
3
+ *
4
+ * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
+ *
6
+ * This Source Code Form is subject to the terms of the Mozilla Public
7
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+ *
10
+ * @preserve
11
+ * @license
12
+ */
13
+ import{t as o}from"../common.mjs";import{BrowserMessageReader as r,BrowserMessageWriter as e,createConnection as m}from"vscode-languageserver/browser";function n(n,s){o(m(new r(n),new e(s)))}export{n as startWebWorkerLanguageServer};
@@ -0,0 +1,27 @@
1
+ /*!
2
+ * alphaTab Language Server v1.9.0-alpha.1891 (develop, build 1891)
3
+ *
4
+ * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
+ *
6
+ * This Source Code Form is subject to the terms of the Mozilla Public
7
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+ *
10
+ * @preserve
11
+ * @license
12
+ */
13
+ import { t as startLanguageServer } from "../common.mjs";
14
+ import { BrowserMessageReader, BrowserMessageWriter, createConnection } from "vscode-languageserver/browser";
15
+ //#region src/server/browser.ts
16
+ /**
17
+ * Starts a new language server communicating via WebWorker.
18
+ * @param readerPort The port used to reading incoming language server messages
19
+ * @param writerPort The port used to writer outgoing language server messages
20
+ */
21
+ function startWebWorkerLanguageServer(readerPort, writerPort) {
22
+ startLanguageServer(createConnection(new BrowserMessageReader(readerPort), new BrowserMessageWriter(writerPort)));
23
+ }
24
+ //#endregion
25
+ export { startWebWorkerLanguageServer };
26
+
27
+ //# sourceMappingURL=browser.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser.mjs","names":[],"sources":["../../src/server/browser.ts"],"sourcesContent":["import { BrowserMessageReader, BrowserMessageWriter, createConnection } from 'vscode-languageserver/browser';\nimport { startLanguageServer } from '@coderline/alphatab-language-server/server/common';\n\ntype Port = ConstructorParameters<typeof BrowserMessageReader>[0];\n\n/**\n * Starts a new language server communicating via WebWorker.\n * @param readerPort The port used to reading incoming language server messages\n * @param writerPort The port used to writer outgoing language server messages\n */\nexport function startWebWorkerLanguageServer(readerPort: Port, writerPort: Port) {\n startLanguageServer(\n createConnection(new BrowserMessageReader(readerPort), new BrowserMessageWriter(writerPort))\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAUA,SAAgB,6BAA6B,YAAkB,YAAkB;CAC7E,oBACI,iBAAiB,IAAI,qBAAqB,UAAU,GAAG,IAAI,qBAAqB,UAAU,CAAC,CAC/F;AACJ"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Starts a new language server communicating from a Node.js process with a parent Node.js.
3
+ */
4
+ export declare function startNodeLanguageServer(): void;
5
+
6
+ export { }
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * alphaTab Language Server v1.9.0-alpha.1891 (develop, build 1891)
3
+ *
4
+ * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
+ *
6
+ * This Source Code Form is subject to the terms of the Mozilla Public
7
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+ *
10
+ * @preserve
11
+ * @license
12
+ */
13
+ import{t as o}from"../common.mjs";import{ProposedFeatures as m,createConnection as r}from"vscode-languageserver/node";function e(){o(r(m.all))}export{e as startNodeLanguageServer};
@@ -0,0 +1,25 @@
1
+ /*!
2
+ * alphaTab Language Server v1.9.0-alpha.1891 (develop, build 1891)
3
+ *
4
+ * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
+ *
6
+ * This Source Code Form is subject to the terms of the Mozilla Public
7
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+ *
10
+ * @preserve
11
+ * @license
12
+ */
13
+ import { t as startLanguageServer } from "../common.mjs";
14
+ import { ProposedFeatures, createConnection } from "vscode-languageserver/node";
15
+ //#region src/server/node.ts
16
+ /**
17
+ * Starts a new language server communicating from a Node.js process with a parent Node.js.
18
+ */
19
+ function startNodeLanguageServer() {
20
+ startLanguageServer(createConnection(ProposedFeatures.all));
21
+ }
22
+ //#endregion
23
+ export { startNodeLanguageServer };
24
+
25
+ //# sourceMappingURL=node.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.mjs","names":[],"sources":["../../src/server/node.ts"],"sourcesContent":["import { createConnection, ProposedFeatures } from 'vscode-languageserver/node';\nimport { startLanguageServer } from '@coderline/alphatab-language-server/server/common';\n\n/**\n * Starts a new language server communicating from a Node.js process with a parent Node.js.\n */\nexport function startNodeLanguageServer() {\n startLanguageServer(createConnection(ProposedFeatures.all));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAMA,SAAgB,0BAA0B;CACtC,oBAAoB,iBAAiB,iBAAiB,GAAG,CAAC;AAC9D"}
package/dist/src.mjs ADDED
@@ -0,0 +1,230 @@
1
+ /*!
2
+ * alphaTab Language Server v1.9.0-alpha.1891 (develop, build 1891)
3
+ *
4
+ * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
+ *
6
+ * This Source Code Form is subject to the terms of the Mozilla Public
7
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+ *
10
+ * @preserve
11
+ * @license
12
+ */
13
+ import { a as noteProperties, c as structuralMetaData, i as durationChangeProperties, n as barMetaData, o as scoreMetaData, r as beatProperties, s as staffMetaData } from "./common.mjs";
14
+ var alphatex_tmLanguage_default = {
15
+ $schema: "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
16
+ name: "alphaTex",
17
+ scopeName: "source.alphatex",
18
+ uuid: "1ebe68ca-6558-428e-a6af-90831f41e88e",
19
+ patterns: [{ "include": "#statements" }],
20
+ repository: {
21
+ "statements": { "patterns": [
22
+ { "include": "#string" },
23
+ { "include": "#comment" },
24
+ { "include": "#metadata" },
25
+ { "include": "#literal" },
26
+ { "include": "#expression" },
27
+ { "include": "#punctuation-pipe" },
28
+ { "include": "#punctuation-dot" },
29
+ { "include": "#punctuation-at" }
30
+ ] },
31
+ "string": { "patterns": [{ "include": "#qstring-single" }, { "include": "#qstring-double" }] },
32
+ "qstring-single": {
33
+ "name": "string.quoted.single.alphatex",
34
+ "begin": "'",
35
+ "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.alphatex" } },
36
+ "end": "(\\')|((?:[^\\\\\\n])$)",
37
+ "endCaptures": {
38
+ "1": { "name": "punctuation.definition.string.end.alphatex" },
39
+ "2": { "name": "invalid.illegal.newline.alphatex" }
40
+ },
41
+ "patterns": [{ "include": "#string-character-escape" }]
42
+ },
43
+ "qstring-double": {
44
+ "name": "string.quoted.double.alphatex",
45
+ "begin": "\"",
46
+ "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.alphatex" } },
47
+ "end": "(\")|((?:[^\\\\\\n])$)",
48
+ "endCaptures": {
49
+ "1": { "name": "punctuation.definition.string.end.alphatex" },
50
+ "2": { "name": "invalid.illegal.newline.alphatex" }
51
+ },
52
+ "patterns": [{ "include": "#string-character-escape" }]
53
+ },
54
+ "string-character-escape": {
55
+ "name": "constant.character.escape.alphatex",
56
+ "match": "\\\\(u[0-9A-Fa-f]{4}|.|$)"
57
+ },
58
+ "comment": { "patterns": [{
59
+ "name": "comment.block.alphatex",
60
+ "begin": "/\\*",
61
+ "beginCaptures": { "0": { "name": "punctuation.definition.comment.alphatex" } },
62
+ "end": "\\*/",
63
+ "endCaptures": { "0": { "name": "punctuation.definition.comment.alphatex" } }
64
+ }, {
65
+ "begin": "(^[ \\t]+)?(?=//)",
66
+ "beginCaptures": { "1": { "name": "punctuation.whitespace.comment.leading.alphatex" } },
67
+ "end": "(?=$)",
68
+ "patterns": [{
69
+ "name": "comment.line.double-slash.alphatex",
70
+ "begin": "//",
71
+ "beginCaptures": { "0": { "name": "punctuation.definition.comment.alphatex" } },
72
+ "end": "(?=$)"
73
+ }]
74
+ }] },
75
+ "literal": { "patterns": [{ "include": "#numeric-literal" }] },
76
+ "numeric-literal": {
77
+ "name": "constant.numeric.decimal.alphatex",
78
+ "match": "[0-9]+",
79
+ "captures": { "0": { "name": "constant.numeric.decimal.alphatex" } }
80
+ },
81
+ "expression": { "patterns": [
82
+ { "include": "#string" },
83
+ { "include": "#comment" },
84
+ { "include": "#literal" },
85
+ { "include": "#identifier" },
86
+ { "include": "#valueList" },
87
+ { "include": "#properties" },
88
+ { "include": "#punctuation" }
89
+ ] },
90
+ "valueList": {
91
+ "begin": "\\(",
92
+ "beginCaptures": { "0": { "name": "punctuation.definition.value-list.begin.js" } },
93
+ "end": "\\)",
94
+ "endCaptures": { "0": { "name": "punctuation.definition.value-list.end.js" } },
95
+ "patterns": [
96
+ { "include": "#string" },
97
+ { "include": "#comment" },
98
+ { "include": "#literal" },
99
+ { "include": "#identifier" }
100
+ ]
101
+ },
102
+ "properties": {
103
+ "begin": "\\{",
104
+ "beginCaptures": { "0": { "name": "punctuation.definition.properties.begin.js" } },
105
+ "end": "\\}",
106
+ "endCaptures": { "0": { "name": "punctuation.definition.properties.end.js" } },
107
+ "patterns": [
108
+ { "include": "#string" },
109
+ { "include": "#comment" },
110
+ { "include": "#literal" },
111
+ { "include": "#identifier" },
112
+ { "include": "#valueList" }
113
+ ]
114
+ },
115
+ "metadata": {
116
+ "name": "keyword.metadata.alphatex",
117
+ "match": "\\\\{1,2}[^\\s]+",
118
+ "captures": { "0": { "name": "keyword.metadata.alphatex" } }
119
+ },
120
+ "identifier": {
121
+ "name": "variable.identifier.alphatex",
122
+ "match": "[^@/\"'-\\.:\\(\\)\\{\\}\\|\\*\\\\\\s][^@/\"'\\.:\\(\\)\\{\\}\\|\\*\\\\\\s]+",
123
+ "captures": { "0": { "name": "variable.identifier.alphatex" } }
124
+ },
125
+ "punctuation": { "patterns": [
126
+ { "include": "#punctuation-dot" },
127
+ { "include": "#punctuation-pipe" },
128
+ { "include": "#punctuation-asterisk" },
129
+ { "include": "#punctuation-at" }
130
+ ] },
131
+ "punctuation-pipe": {
132
+ "name": "punctuation.bar.alphatex",
133
+ "match": "\\|"
134
+ },
135
+ "punctuation-dot": {
136
+ "name": "punctuation.dot.alphatex",
137
+ "match": "\\."
138
+ },
139
+ "punctuation-asterisk": {
140
+ "name": "punctuation.asterisk.alphatex",
141
+ "match": "\\*"
142
+ },
143
+ "punctuation-at": {
144
+ "name": "punctuation.at.alphatex",
145
+ "match": "@"
146
+ }
147
+ }
148
+ };
149
+ var language_configuration_default = {
150
+ comments: {
151
+ "lineComment": {
152
+ "comment": "//",
153
+ "noIndent": false
154
+ },
155
+ "blockComment": ["/*", "*/"]
156
+ },
157
+ brackets: [
158
+ ["{", "}"],
159
+ ["[", "]"],
160
+ ["(", ")"]
161
+ ],
162
+ autoClosingPairs: [
163
+ {
164
+ "open": "{",
165
+ "close": "}"
166
+ },
167
+ {
168
+ "open": "[",
169
+ "close": "]"
170
+ },
171
+ {
172
+ "open": "(",
173
+ "close": ")"
174
+ },
175
+ {
176
+ "open": "\"",
177
+ "close": "\""
178
+ },
179
+ {
180
+ "open": "'",
181
+ "close": "'"
182
+ }
183
+ ],
184
+ surroundingPairs: [
185
+ {
186
+ "open": "{",
187
+ "close": "}"
188
+ },
189
+ {
190
+ "open": "[",
191
+ "close": "]"
192
+ },
193
+ {
194
+ "open": "(",
195
+ "close": ")"
196
+ },
197
+ {
198
+ "open": "\"",
199
+ "close": "\""
200
+ },
201
+ {
202
+ "open": "'",
203
+ "close": "'"
204
+ }
205
+ ]
206
+ };
207
+ //#endregion
208
+ //#region src/index.ts
209
+ var documentation = {
210
+ structuralMetaData,
211
+ scoreMetaData,
212
+ staffMetaData,
213
+ barMetaData,
214
+ durationChangeProperties,
215
+ beatProperties,
216
+ noteProperties
217
+ };
218
+ /**
219
+ * The TextMate grammar definition as JSON encoded.
220
+ * Write this to a local json (e.g. alphatex.tmLanguage.json ) or pass it to any supported parser for further use.
221
+ */
222
+ var textMateGrammar = alphatex_tmLanguage_default;
223
+ /**
224
+ * The contents of a language-configuration.json to use in editors like VSCode.
225
+ */
226
+ var languageConfiguration = language_configuration_default;
227
+ //#endregion
228
+ export { languageConfiguration as n, textMateGrammar as r, documentation as t };
229
+
230
+ //# sourceMappingURL=src.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"src.mjs","names":[],"sources":["../src/alphatex.tmLanguage.json","../src/language-configuration.json","../src/index.ts"],"sourcesContent":["{\n \"$schema\": \"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json\",\n \"name\": \"alphaTex\",\n \"scopeName\": \"source.alphatex\",\n \"uuid\": \"1ebe68ca-6558-428e-a6af-90831f41e88e\",\n \"patterns\": [\n { \"include\": \"#statements\" }\n ],\n \"repository\": {\n \"statements\": {\n \"patterns\": [\n { \"include\": \"#string\" },\n { \"include\": \"#comment\" },\n { \"include\": \"#metadata\" },\n { \"include\": \"#literal\" },\n { \"include\": \"#expression\" },\n { \"include\": \"#punctuation-pipe\" },\n { \"include\": \"#punctuation-dot\" },\n { \"include\": \"#punctuation-at\" }\n ]\n },\n \"string\": {\n \"patterns\": [\n { \"include\": \"#qstring-single\" },\n { \"include\": \"#qstring-double\" }\n ]\n },\n \"qstring-single\": {\n \"name\": \"string.quoted.single.alphatex\",\n \"begin\": \"'\",\n \"beginCaptures\": { \"0\": { \"name\": \"punctuation.definition.string.begin.alphatex\" } },\n \"end\": \"(\\\\')|((?:[^\\\\\\\\\\\\n])$)\",\n \"endCaptures\": {\n \"1\": { \"name\": \"punctuation.definition.string.end.alphatex\" },\n \"2\": { \"name\": \"invalid.illegal.newline.alphatex\" }\n },\n \"patterns\": [ { \"include\": \"#string-character-escape\" } ]\n },\n \"qstring-double\": {\n \"name\": \"string.quoted.double.alphatex\",\n \"begin\": \"\\\"\",\n \"beginCaptures\": { \"0\": { \"name\": \"punctuation.definition.string.begin.alphatex\" } },\n \"end\": \"(\\\")|((?:[^\\\\\\\\\\\\n])$)\",\n \"endCaptures\": {\n \"1\": { \"name\": \"punctuation.definition.string.end.alphatex\" },\n \"2\": { \"name\": \"invalid.illegal.newline.alphatex\" }\n },\n \"patterns\": [ { \"include\": \"#string-character-escape\" } ]\n },\n \"string-character-escape\": {\n \"name\": \"constant.character.escape.alphatex\",\n \"match\": \"\\\\\\\\(u[0-9A-Fa-f]{4}|.|$)\"\n },\n \"comment\": {\n \"patterns\": [\n {\n \"name\": \"comment.block.alphatex\",\n \"begin\": \"/\\\\*\",\n \"beginCaptures\": { \"0\": { \"name\": \"punctuation.definition.comment.alphatex\" } },\n \"end\": \"\\\\*/\",\n \"endCaptures\": { \"0\": { \"name\": \"punctuation.definition.comment.alphatex\" } }\n },\n {\n \"begin\": \"(^[ \\\\t]+)?(?=//)\",\n \"beginCaptures\": { \"1\": { \"name\": \"punctuation.whitespace.comment.leading.alphatex\" } },\n \"end\": \"(?=$)\",\n \"patterns\": [\n {\n \"name\": \"comment.line.double-slash.alphatex\",\n \"begin\": \"//\",\n \"beginCaptures\": { \"0\": { \"name\": \"punctuation.definition.comment.alphatex\" } },\n \"end\": \"(?=$)\"\n }\n ]\n }\n ]\n },\n \"literal\": {\n \"patterns\": [ { \"include\": \"#numeric-literal\" } ]\n },\n \"numeric-literal\": {\n \"name\": \"constant.numeric.decimal.alphatex\",\n \"match\": \"[0-9]+\",\n \"captures\": { \"0\": { \"name\": \"constant.numeric.decimal.alphatex\" } }\n },\n \"expression\": {\n \"patterns\": [\n { \"include\": \"#string\" },\n { \"include\": \"#comment\" },\n { \"include\": \"#literal\" },\n { \"include\": \"#identifier\" },\n { \"include\": \"#valueList\" },\n { \"include\": \"#properties\" },\n { \"include\": \"#punctuation\" }\n ]\n },\n \"valueList\": {\n \"begin\": \"\\\\(\",\n \"beginCaptures\": { \"0\": { \"name\": \"punctuation.definition.value-list.begin.js\" } },\n \"end\": \"\\\\)\",\n \"endCaptures\": { \"0\": { \"name\": \"punctuation.definition.value-list.end.js\" } },\n \"patterns\": [\n { \"include\": \"#string\" },\n { \"include\": \"#comment\" },\n { \"include\": \"#literal\" },\n { \"include\": \"#identifier\" }\n ]\n },\n \"properties\": {\n \"begin\": \"\\\\{\",\n \"beginCaptures\": { \"0\": { \"name\": \"punctuation.definition.properties.begin.js\" } },\n \"end\": \"\\\\}\",\n \"endCaptures\": { \"0\": { \"name\": \"punctuation.definition.properties.end.js\" } },\n \"patterns\": [\n { \"include\": \"#string\" },\n { \"include\": \"#comment\" },\n { \"include\": \"#literal\" },\n { \"include\": \"#identifier\" },\n { \"include\": \"#valueList\" }\n ]\n },\n \"metadata\": {\n \"name\": \"keyword.metadata.alphatex\",\n \"match\": \"\\\\\\\\{1,2}[^\\\\s]+\",\n \"captures\": { \"0\": { \"name\": \"keyword.metadata.alphatex\" } }\n },\n \"identifier\": {\n \"name\": \"variable.identifier.alphatex\",\n \"match\": \"[^@/\\\"'-\\\\.:\\\\(\\\\)\\\\{\\\\}\\\\|\\\\*\\\\\\\\\\\\s][^@/\\\"'\\\\.:\\\\(\\\\)\\\\{\\\\}\\\\|\\\\*\\\\\\\\\\\\s]+\",\n \"captures\": { \"0\": { \"name\": \"variable.identifier.alphatex\" } }\n },\n \"punctuation\": {\n \"patterns\": [\n { \"include\": \"#punctuation-dot\" },\n { \"include\": \"#punctuation-pipe\" },\n { \"include\": \"#punctuation-asterisk\" },\n { \"include\": \"#punctuation-at\" }\n ]\n },\n \"punctuation-pipe\": {\n \"name\": \"punctuation.bar.alphatex\",\n \"match\": \"\\\\|\"\n },\n \"punctuation-dot\": {\n \"name\": \"punctuation.dot.alphatex\",\n \"match\": \"\\\\.\"\n },\n \"punctuation-asterisk\": {\n \"name\": \"punctuation.asterisk.alphatex\",\n \"match\": \"\\\\*\"\n },\n \"punctuation-at\": {\n \"name\": \"punctuation.at.alphatex\",\n \"match\": \"@\"\n }\n }\n}","{\n \"comments\": {\n \"lineComment\": {\n \"comment\": \"//\",\n \"noIndent\": false\n },\n \"blockComment\": [\n \"/*\",\n \"*/\"\n ]\n },\n \"brackets\": [\n [\n \"{\",\n \"}\"\n ],\n [\n \"[\",\n \"]\"\n ],\n [\n \"(\",\n \")\"\n ]\n ],\n \"autoClosingPairs\": [\n {\n \"open\": \"{\",\n \"close\": \"}\"\n },\n {\n \"open\": \"[\",\n \"close\": \"]\"\n },\n {\n \"open\": \"(\",\n \"close\": \")\"\n },\n {\n \"open\": \"\\\"\",\n \"close\": \"\\\"\"\n },\n {\n \"open\": \"'\",\n \"close\": \"'\"\n }\n ],\n \"surroundingPairs\": [\n {\n \"open\": \"{\",\n \"close\": \"}\"\n },\n {\n \"open\": \"[\",\n \"close\": \"]\"\n },\n {\n \"open\": \"(\",\n \"close\": \")\"\n },\n {\n \"open\": \"\\\"\",\n \"close\": \"\\\"\"\n },\n {\n \"open\": \"'\",\n \"close\": \"'\"\n }\n ]\n}","import {\n barMetaData,\n beatProperties,\n durationChangeProperties,\n noteProperties,\n scoreMetaData,\n staffMetaData,\n structuralMetaData\n} from '@coderline/alphatab-alphatex/definitions';\n\nconst documentation = {\n structuralMetaData,\n scoreMetaData,\n staffMetaData,\n barMetaData,\n durationChangeProperties,\n beatProperties,\n noteProperties\n};\n\nimport type {\n AlphaTexExample,\n MetadataTagDefinition,\n ParameterDefinition,\n ParameterValueDefinition,\n PropertyDefinition,\n SignatureDefinition,\n WithDescription,\n WithSignatures\n} from '@coderline/alphatab-alphatex/types';\n\nimport textMateGrammarJson from './alphatex.tmLanguage.json';\nimport languageConfigurationJson from './language-configuration.json';\n\n// export jsons as untyped objects for further use\n\n/**\n * The TextMate grammar definition as JSON encoded.\n * Write this to a local json (e.g. alphatex.tmLanguage.json ) or pass it to any supported parser for further use.\n */\nconst textMateGrammar: any = textMateGrammarJson;\n/**\n * The contents of a language-configuration.json to use in editors like VSCode.\n */\nconst languageConfiguration: any = languageConfigurationJson;\n\nexport {\n documentation, languageConfiguration, textMateGrammar,\n type AlphaTexExample,\n type MetadataTagDefinition, type ParameterDefinition, type ParameterValueDefinition, type PropertyDefinition, type SignatureDefinition, type WithDescription, type WithSignatures\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEUA,IAAM,gBAAgB;CAClB;CACA;CACA;CACA;CACA;CACA;CACA;AACJ;;;;;AAsBA,IAAM,kBAAuB;;;;AAI7B,IAAM,wBAA6B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coderline/alphatab-language-server",
3
- "version": "1.9.0-alpha.1883",
3
+ "version": "1.9.0-alpha.1891",
4
4
  "description": "A language server for alphaTab providing coding assistance for alphaTex.",
5
5
  "keywords": [
6
6
  "guitar",
@@ -35,7 +35,7 @@
35
35
  "test-web": "npm run test"
36
36
  },
37
37
  "dependencies": {
38
- "@coderline/alphatab": "^1.9.0-alpha.1883",
38
+ "@coderline/alphatab": "^1.9.0-alpha.1891",
39
39
  "vscode-languageserver": "^10.1.0",
40
40
  "vscode-languageserver-textdocument": "^1.0.12"
41
41
  },
@@ -45,14 +45,34 @@
45
45
  "@types/node": "^26.0.0",
46
46
  "rimraf": "^6.1.3",
47
47
  "tslib": "^2.8.1",
48
- "tsx": "^4.23.1",
48
+ "tsx": "^4.23.5",
49
49
  "typescript": "^6.0.3",
50
50
  "vitest": "^4.1.10"
51
51
  },
52
- "bin": "./dist/server.mjs",
53
- "main": "./dist/server.mjs",
54
- "types": "./dist/server.d.ts",
52
+ "bin": "./dist/index.node.mjs",
53
+ "main": "./dist/index.node.mjs",
54
+ "types": "./dist/index.node.d.ts",
55
55
  "type": "module",
56
+ "exports": {
57
+ ".": {
58
+ "browser": {
59
+ "types": "./dist/index.browser.d.ts",
60
+ "import": "./dist/index.browser.mjs"
61
+ },
62
+ "default": {
63
+ "types": "./dist/index.node.d.ts",
64
+ "import": "./dist/index.node.mjs"
65
+ }
66
+ },
67
+ "./server/browser": {
68
+ "types": "./dist/server/browser.d.ts",
69
+ "import": "./dist/server/browser.mjs"
70
+ },
71
+ "./server/node": {
72
+ "types": "./dist/server/node.d.ts",
73
+ "import": "./dist/server/node.mjs"
74
+ }
75
+ },
56
76
  "files": [
57
77
  "dist/",
58
78
  "!dist/types/",