@danypops/lector 0.1.0 → 0.1.6
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
CHANGED
|
@@ -4,6 +4,15 @@ The capability core and daemon half of [Lector](../../README.md) -- domain,
|
|
|
4
4
|
ports, adapters, and the CLI/systemd service. See the repo root README for
|
|
5
5
|
the overall architecture and how `packages/pi-lector` fits in.
|
|
6
6
|
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
Requires Bun and systemd user services on Linux.
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
bun add --global @danypops/lector
|
|
13
|
+
lector service install
|
|
14
|
+
```
|
|
15
|
+
|
|
7
16
|
## Storage and service
|
|
8
17
|
|
|
9
18
|
```text
|
package/package.json
CHANGED
|
@@ -134,7 +134,7 @@ function isHierarchicalDocumentSymbol(item: LspDocumentSymbol | LspSymbolInforma
|
|
|
134
134
|
/** Resolves a descriptor's launch into a spawnable command + args. */
|
|
135
135
|
function resolveLanguageServerCommand(descriptor: LanguageServerDescriptor): { command: string; args: string[] } {
|
|
136
136
|
if (descriptor.launch.kind === "npm-module") {
|
|
137
|
-
return { command:
|
|
137
|
+
return { command: process.execPath, args: [fileURLToPath(import.meta.resolve(descriptor.launch.entryModule)), ...descriptor.args] };
|
|
138
138
|
}
|
|
139
139
|
return { command: descriptor.launch.command, args: [...descriptor.args] };
|
|
140
140
|
}
|
|
@@ -35,6 +35,7 @@ export const TYPESCRIPT_DESCRIPTOR: LanguageServerDescriptor = {
|
|
|
35
35
|
args: ["--stdio"],
|
|
36
36
|
rootMarkers: ["tsconfig.json", "jsconfig.json", "package.json"],
|
|
37
37
|
commonSeedCandidates: ["src/index.ts", "index.ts", "src/main.ts", "main.ts", "src/index.tsx", "index.tsx", "src/index.js", "index.js"],
|
|
38
|
+
settleMs: 2000,
|
|
38
39
|
// typescript-language-server gates its own diagnosticsSupport/callHierarchyProvider flags
|
|
39
40
|
// on these capabilities being present at all -- omitted, it silently withholds both.
|
|
40
41
|
extraCapabilities: { publishDiagnostics: {}, callHierarchy: {} },
|
|
@@ -67,8 +68,7 @@ export const RUST_DESCRIPTOR: LanguageServerDescriptor = {
|
|
|
67
68
|
args: [],
|
|
68
69
|
rootMarkers: ["Cargo.toml"],
|
|
69
70
|
commonSeedCandidates: ["src/main.rs", "src/lib.rs"],
|
|
70
|
-
|
|
71
|
-
settleMs: 2500,
|
|
71
|
+
settleMs: 5000,
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
export const CPP_DESCRIPTOR: LanguageServerDescriptor = {
|