@coderline/alphatab-language-server 1.9.0-alpha.1853 → 1.9.0-alpha.1883
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.
- package/dist/server.d.ts +1 -1
- package/dist/server.min.mjs +2 -2
- package/dist/server.mjs +7 -14
- package/dist/server.mjs.map +1 -1
- package/package.json +5 -5
package/dist/server.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* alphaTab Language Server v1.9.0-alpha.
|
|
2
|
+
* alphaTab Language Server v1.9.0-alpha.1883 (develop, build 1883)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -15,8 +15,8 @@ import { TextDocuments } from "vscode-languageserver";
|
|
|
15
15
|
import { DocumentDiagnosticReportKind, PositionEncodingKind, TextDocumentSyncKind } from "vscode-languageserver-protocol";
|
|
16
16
|
import { TextDocument } from "vscode-languageserver-textdocument";
|
|
17
17
|
import { CompletionItemKind, DiagnosticSeverity, InsertTextFormat, ParameterInformation, SignatureInformation, TextEdit, uinteger } from "vscode-languageserver-types";
|
|
18
|
-
import { BrowserMessageReader, BrowserMessageWriter, createConnection } from "vscode-languageserver/
|
|
19
|
-
import { ProposedFeatures, createConnection as createConnection$1 } from "vscode-languageserver/
|
|
18
|
+
import { BrowserMessageReader, BrowserMessageWriter, createConnection } from "vscode-languageserver/browser";
|
|
19
|
+
import { ProposedFeatures, createConnection as createConnection$1 } from "vscode-languageserver/node";
|
|
20
20
|
//#region ../alphatex/src/metadata/bar/ac.ts
|
|
21
21
|
var ac = {
|
|
22
22
|
tag: "\\ac",
|
|
@@ -2217,8 +2217,7 @@ var articulation = {
|
|
|
2217
2217
|
shortDescription: "The numeric value of the built-in articulation"
|
|
2218
2218
|
}] }],
|
|
2219
2219
|
examples: `
|
|
2220
|
-
\\track "Drums"
|
|
2221
|
-
\\instrument percussion
|
|
2220
|
+
\\track "Drums" { instrument percussion }
|
|
2222
2221
|
\\tempo 120
|
|
2223
2222
|
\\clef neutral
|
|
2224
2223
|
\\articulation defaults
|
|
@@ -5354,9 +5353,7 @@ function parameterToSyntax(parameter, onlyParameterNames) {
|
|
|
5354
5353
|
if (!onlyParameterNames) {
|
|
5355
5354
|
switch (parameter.parseMode) {
|
|
5356
5355
|
case alphaTab.importer.alphaTex.ArgumentListParseTypesMode.Optional:
|
|
5357
|
-
case alphaTab.importer.alphaTex.ArgumentListParseTypesMode.OptionalAsFloat:
|
|
5358
|
-
p += "?";
|
|
5359
|
-
break;
|
|
5356
|
+
case alphaTab.importer.alphaTex.ArgumentListParseTypesMode.OptionalAsFloat: p += "?";
|
|
5360
5357
|
}
|
|
5361
5358
|
p += `: ${nodeTypesToTypeDocs(parameter)}`;
|
|
5362
5359
|
if (parameter.defaultValue) p += ` = ${parameter.defaultValue}`;
|
|
@@ -5372,9 +5369,7 @@ function nodeTypesToTypeDocs(parameter) {
|
|
|
5372
5369
|
case alphaTab.importer.alphaTex.AlphaTexNodeType.String:
|
|
5373
5370
|
p = valueArray.map((v) => `"${v}"`).join("|");
|
|
5374
5371
|
break;
|
|
5375
|
-
default:
|
|
5376
|
-
p = valueArray.join("|");
|
|
5377
|
-
break;
|
|
5372
|
+
default: p = valueArray.join("|");
|
|
5378
5373
|
}
|
|
5379
5374
|
} else p = typeArray.map((t) => alphaTab.importer.alphaTex.AlphaTexNodeType[t]).join("|");
|
|
5380
5375
|
switch (parameter.parseMode) {
|
|
@@ -5699,9 +5694,7 @@ function mapDiagnostics(atDiag) {
|
|
|
5699
5694
|
case alphaTab.importer.alphaTex.AlphaTexDiagnosticsSeverity.Warning:
|
|
5700
5695
|
diagnostic.severity = DiagnosticSeverity.Warning;
|
|
5701
5696
|
break;
|
|
5702
|
-
case alphaTab.importer.alphaTex.AlphaTexDiagnosticsSeverity.Error:
|
|
5703
|
-
diagnostic.severity = DiagnosticSeverity.Error;
|
|
5704
|
-
break;
|
|
5697
|
+
case alphaTab.importer.alphaTex.AlphaTexDiagnosticsSeverity.Error: diagnostic.severity = DiagnosticSeverity.Error;
|
|
5705
5698
|
}
|
|
5706
5699
|
diagnostics.push(diagnostic);
|
|
5707
5700
|
}
|