@knip/language-server 0.0.9 → 0.0.10
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 +2 -2
- package/src/server.js +2 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knip/language-server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"vscode-languageserver": "^9.0.1",
|
|
14
14
|
"vscode-languageserver-textdocument": "^1.0.12",
|
|
15
|
-
"knip": "^5.77.
|
|
15
|
+
"knip": "^5.77.4"
|
|
16
16
|
},
|
|
17
17
|
"engines": {
|
|
18
18
|
"node": ">=18.18.0"
|
package/src/server.js
CHANGED
|
@@ -181,10 +181,8 @@ export class LanguageServer {
|
|
|
181
181
|
: path.resolve(this.cwd ?? process.cwd(), config.configFilePath)
|
|
182
182
|
: undefined;
|
|
183
183
|
|
|
184
|
-
if (configFilePath)
|
|
185
|
-
|
|
186
|
-
process.chdir(this.cwd);
|
|
187
|
-
}
|
|
184
|
+
if (configFilePath) this.cwd = path.dirname(configFilePath);
|
|
185
|
+
if (this.cwd) process.chdir(this.cwd);
|
|
188
186
|
|
|
189
187
|
this.connection.console.log('Creating options');
|
|
190
188
|
const options = await createOptions({ cwd: this.cwd, isSession: true, args: { config: configFilePath } });
|