@dreki-gg/pi-lsp 0.4.0 → 0.4.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @dreki-gg/pi-lsp
2
2
 
3
+ ## 0.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 6f7034b: Cross-platform fixes for Windows. PR Canvas now opens the browser via the
8
+ Windows `start` command instead of running `xdg-open` (which does not exist on
9
+ Windows), so `/pr-canvas start` and `/pr-canvas open` work there. The LSP client
10
+ derives the workspace folder name with `path.basename` instead of splitting on
11
+ `/`, fixing the name on Windows-style paths.
12
+
3
13
  ## 0.4.0
4
14
 
5
15
  ### Minor Changes
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import { readFile } from 'node:fs/promises';
9
- import { resolve } from 'node:path';
9
+ import { basename, resolve } from 'node:path';
10
10
 
11
11
  import { LspConnection } from './protocol';
12
12
  import type {
@@ -246,7 +246,7 @@ export class LspClient {
246
246
  symbol: {},
247
247
  },
248
248
  },
249
- workspaceFolders: [{ uri: rootUri, name: this.rootPath.split('/').pop() || 'workspace' }],
249
+ workspaceFolders: [{ uri: rootUri, name: basename(this.rootPath) || 'workspace' }],
250
250
  initializationOptions: this.config.initializationOptions,
251
251
  })) as { capabilities?: Record<string, unknown> } | null;
252
252
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreki-gg/pi-lsp",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Language-agnostic LSP code intelligence for pi — diagnostics, hover, definitions, references, symbols, and call hierarchy",
5
5
  "keywords": [
6
6
  "pi-package"