@knip/language-server 3.0.1 → 3.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knip/language-server",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/webpro-nl/knip.git",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "vscode-languageserver": "^9.0.1",
22
22
  "vscode-languageserver-textdocument": "^1.0.12",
23
- "knip": "^6.0.6"
23
+ "knip": "^6.16.0"
24
24
  },
25
25
  "engines": {
26
26
  "node": "^20.19.0 || >=22.12.0"
package/src/server.js CHANGED
@@ -132,7 +132,7 @@ export class LanguageServer {
132
132
 
133
133
  if (!uri) return { capabilities: {} };
134
134
 
135
- this.cwd = fileURLToPath(uri);
135
+ this.cwd = params.initializationOptions?.cwd ?? fileURLToPath(uri);
136
136
 
137
137
  this.initConfig = params.initializationOptions?.config;
138
138
 
File without changes