stan-language-server 0.2.0-beta.1 → 0.3.0
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/README.md +109 -23
- package/dist/constants/index.d.ts +1 -0
- package/dist/handlers/compilation/compilation.d.ts +9 -3
- package/dist/handlers/compilation/includes.d.ts +9 -2
- package/dist/handlers/diagnostics.d.ts +3 -1
- package/dist/handlers/formatting.d.ts +5 -2
- package/dist/handlers/hover.d.ts +4 -6
- package/dist/handlers/index.d.ts +1 -1
- package/dist/language/diagnostics/provider.d.ts +7 -3
- package/dist/server/index.d.ts +2 -1
- package/dist/server/index.js +407 -89319
- package/dist/types/common.d.ts +2 -13
- package/dist/types/index.d.ts +0 -2
- package/package.json +6 -5
- package/dist/__tests__/handlers/formatting.test.d.ts +0 -1
- package/dist/__tests__/includes.test.d.ts +0 -1
- package/dist/__tests__/language/diagnostics/linter.test.d.ts +0 -1
- package/dist/__tests__/language/formatting/integration.test.d.ts +0 -1
- package/dist/language/diagnostics/index.d.ts +0 -2
- package/dist/language/diagnostics/linter.d.ts +0 -5
- package/dist/language/formatting/index.d.ts +0 -1
- package/dist/language/formatting/provider.d.ts +0 -2
- package/dist/server/cli.js +0 -89754
- package/dist/stanc/compiler.d.ts +0 -9
- package/dist/stanc/includes.d.ts +0 -10
- package/dist/stanc/provider.d.ts +0 -2
- package/dist/stanc/stanc.d.ts +0 -2
- package/dist/types/diagnostics.d.ts +0 -18
- package/dist/types/formatting.d.ts +0 -26
- package/dist/types/index.js +0 -11
- /package/dist/__tests__/{compiler.test.d.ts → language/diagnostics/provider.test.d.ts} +0 -0
package/dist/types/common.d.ts
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
|
+
import type { FileContent, Filename } from "../handlers/compilation/includes";
|
|
1
2
|
export interface Position {
|
|
2
3
|
line: number;
|
|
3
4
|
character: number;
|
|
4
5
|
}
|
|
5
|
-
type
|
|
6
|
-
errors: undefined;
|
|
7
|
-
result: string;
|
|
8
|
-
warnings?: string[];
|
|
9
|
-
};
|
|
10
|
-
type StancFailure = {
|
|
11
|
-
errors: string[];
|
|
12
|
-
result: undefined;
|
|
13
|
-
warnings?: string[];
|
|
14
|
-
};
|
|
15
|
-
export type StancReturn = StancSuccess | StancFailure;
|
|
16
|
-
export type StancFunction = (filename: string, code: string, options: string[], includes?: Record<string, string>) => StancReturn;
|
|
17
|
-
export {};
|
|
6
|
+
export type FileSystemReader = (filename: Filename) => Promise<FileContent>;
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stan-language-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Language Server Protocol implementation for the Stan probabilistic programming language",
|
|
5
5
|
"main": "dist/server/index.js",
|
|
6
6
|
"module": "src/server/index.ts",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"node": ">=18.0.0"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
|
-
"build": "bun build src/server/
|
|
50
|
-
"build:binary": "bun build src/server/cli.ts --compile --outfile bin/stan-language-server",
|
|
49
|
+
"build": "bun build src/server/index.ts --outdir dist/server --packages external --target browser --format esm && tsc --emitDeclarationOnly --outDir dist",
|
|
50
|
+
"build:binary": "bun build src/server/cli.ts --drop=console --compile --outfile bin/stan-language-server",
|
|
51
51
|
"prepublishOnly": "bun run build",
|
|
52
52
|
"version:set": "bun run scripts/set-version.ts",
|
|
53
53
|
"publish:npm": "npm publish --access public --provenance",
|
|
@@ -64,13 +64,14 @@
|
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@types/bun": "latest",
|
|
67
|
-
"@types/node": "24.
|
|
67
|
+
"@types/node": "24.7.0",
|
|
68
68
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
69
69
|
"@typescript-eslint/parser": "^8.0.0",
|
|
70
70
|
"eslint": "^9.0.0",
|
|
71
|
-
"typescript": "5.9.
|
|
71
|
+
"typescript": "5.9.3"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
+
"stanc3": "^2.37.0",
|
|
74
75
|
"trie-search": "2.2.0",
|
|
75
76
|
"vscode-languageserver": "9.0.1",
|
|
76
77
|
"vscode-languageserver-textdocument": "1.0.12",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Range } from "../../types/diagnostics";
|
|
2
|
-
declare function rangeFromMessage(message: string): Range | undefined;
|
|
3
|
-
declare function getWarningMessage(message: string): string;
|
|
4
|
-
declare function getErrorMessage(message: string): string;
|
|
5
|
-
export { rangeFromMessage, getWarningMessage, getErrorMessage };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { provideFormatting } from "./provider";
|