@arcgis/arcade-languageservice 5.2.0-next.91 → 5.2.0-next.94

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.
@@ -0,0 +1,22 @@
1
+ import type { TextDocument } from "vscode-languageserver-textdocument";
2
+ import type { CompletionList, Position } from "vscode-languageserver-types";
3
+ import type { ArcadeApiContext } from "./services/api-context.js";
4
+ import type { Diagnostic } from "./services/api-diagnostic.js";
5
+ import type { LanguageServiceSettings } from "@arcgis/languages-api-utils";
6
+
7
+ export class ArcadeLanguageService {
8
+ constructor();
9
+ /** @param settings */
10
+ configure(settings: LanguageServiceSettings): void;
11
+ /**
12
+ * @param document
13
+ * @param position
14
+ * @param context
15
+ */
16
+ doComplete(document: TextDocument, position: Position, context: ArcadeApiContext): Promise<CompletionList>;
17
+ /**
18
+ * @param document
19
+ * @param context
20
+ */
21
+ doValidation(document: TextDocument, context: ArcadeApiContext): Promise<Diagnostic[]>;
22
+ }