@ripple-ts/language-server 0.2.212 → 0.2.214
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 +28 -0
- package/package.json +3 -3
- package/src/server.js +24 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @ripple-ts/language-server
|
|
2
2
|
|
|
3
|
+
## 0.2.214
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @ripple-ts/typescript-plugin@0.2.214
|
|
9
|
+
|
|
10
|
+
## 0.2.213
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#717](https://github.com/Ripple-TS/ripple/pull/717)
|
|
15
|
+
[`6c1c21c`](https://github.com/Ripple-TS/ripple/commit/6c1c21ce8225ea7e9820be16626e68b5156c8f5e)
|
|
16
|
+
Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Fix
|
|
17
|
+
language server not recognizing changes to `.ts` files
|
|
18
|
+
|
|
19
|
+
The language server now watches TypeScript and JavaScript files for changes on
|
|
20
|
+
disk. Previously, modifications to `.ts` files imported by `.ripple` files would
|
|
21
|
+
not be picked up by the language server until it was restarted, causing stale
|
|
22
|
+
diagnostics. This was because the `workspace/didChangeWatchedFiles` connection
|
|
23
|
+
handler was never registered (it requires calling
|
|
24
|
+
`server.fileWatcher.watchFiles()`). The fix adds explicit file watcher
|
|
25
|
+
registration for all TypeScript/JavaScript file extensions in the server's
|
|
26
|
+
`onInitialized` callback.
|
|
27
|
+
|
|
28
|
+
- Updated dependencies []:
|
|
29
|
+
- @ripple-ts/typescript-plugin@0.2.213
|
|
30
|
+
|
|
3
31
|
## 0.2.212
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ripple-ts/language-server",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.214",
|
|
4
4
|
"description": "Language Server Protocol implementation for Ripple",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"volar-service-typescript": "0.0.68",
|
|
20
20
|
"vscode-languageserver-textdocument": "^1.0.12",
|
|
21
21
|
"vscode-uri": "^3.1.0",
|
|
22
|
-
"@ripple-ts/typescript-plugin": "0.2.
|
|
22
|
+
"@ripple-ts/typescript-plugin": "0.2.214"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"ripple": "0.2.
|
|
25
|
+
"ripple": "0.2.214"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"typescript": "^5.9.2"
|
package/src/server.js
CHANGED
|
@@ -118,9 +118,32 @@ function createRippleLanguageServer() {
|
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
connection.onInitialized(() => {
|
|
121
|
+
connection.onInitialized(async () => {
|
|
122
122
|
log('Server initialized.');
|
|
123
123
|
server.initialized();
|
|
124
|
+
|
|
125
|
+
// Register file watchers for TypeScript/JavaScript files so the language
|
|
126
|
+
// server is notified when they change on disk. Without this, changes to
|
|
127
|
+
// .ts files that are imported by .ripple files are not detected, causing
|
|
128
|
+
// stale diagnostics until the server is restarted.
|
|
129
|
+
try {
|
|
130
|
+
await server.fileWatcher.watchFiles([
|
|
131
|
+
'**/*.ts',
|
|
132
|
+
'**/*.tsx',
|
|
133
|
+
'**/*.cts',
|
|
134
|
+
'**/*.mts',
|
|
135
|
+
'**/*.js',
|
|
136
|
+
'**/*.jsx',
|
|
137
|
+
'**/*.cjs',
|
|
138
|
+
'**/*.mjs',
|
|
139
|
+
'**/*.d.ts',
|
|
140
|
+
'**/tsconfig.json',
|
|
141
|
+
'**/jsconfig.json',
|
|
142
|
+
]);
|
|
143
|
+
log('File watchers registered for TypeScript/JavaScript files.');
|
|
144
|
+
} catch (err) {
|
|
145
|
+
logError('Failed to register file watchers:', err);
|
|
146
|
+
}
|
|
124
147
|
});
|
|
125
148
|
|
|
126
149
|
process.on('uncaughtException', (err) => {
|