@spyglassmc/language-server 0.4.58 → 0.4.60
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as core from '@spyglassmc/core';
|
|
2
|
-
import EventEmitter from 'events';
|
|
3
2
|
import * as ls from 'vscode-languageserver/node.js';
|
|
4
3
|
type Predicate = (uri: string) => boolean;
|
|
5
4
|
export interface LspFileWatcherOptions {
|
|
@@ -14,7 +13,7 @@ export interface LspFileWatcherOptions {
|
|
|
14
13
|
* A file watcher based on Language Server Protocol's `workspace/didChangeWatchedFiles`
|
|
15
14
|
* notification.
|
|
16
15
|
*/
|
|
17
|
-
export declare class LspFileWatcher extends
|
|
16
|
+
export declare class LspFileWatcher extends core.EventDispatcher<core.FileWatcherEventMap> implements core.FileWatcher {
|
|
18
17
|
#private;
|
|
19
18
|
get watchedFiles(): core.UriStore;
|
|
20
19
|
constructor({ capabilities, connection, externals, locations, logger, predicate }: LspFileWatcherOptions);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as core from '@spyglassmc/core';
|
|
2
|
-
import EventEmitter from 'events';
|
|
3
2
|
import * as ls from 'vscode-languageserver/node.js';
|
|
4
3
|
/**
|
|
5
4
|
* A file watcher based on Language Server Protocol's `workspace/didChangeWatchedFiles`
|
|
6
5
|
* notification.
|
|
7
6
|
*/
|
|
8
|
-
export class LspFileWatcher extends
|
|
7
|
+
export class LspFileWatcher extends core.EventDispatcher {
|
|
9
8
|
#ready = false;
|
|
10
9
|
#connection;
|
|
11
10
|
#externals;
|
|
@@ -49,7 +48,7 @@ export class LspFileWatcher extends EventEmitter {
|
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
50
|
this.#ready = true;
|
|
52
|
-
this.emit('ready');
|
|
51
|
+
this.emit('ready', undefined);
|
|
53
52
|
}
|
|
54
53
|
catch (e) {
|
|
55
54
|
this.emit('error', e);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spyglassmc/language-server",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.60",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/server.js",
|
|
6
6
|
"types": "lib/server.d.ts",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"env-paths": "^2.2.1",
|
|
36
36
|
"vscode-languageserver": "^9.0.1",
|
|
37
37
|
"vscode-languageserver-textdocument": "^1.0.11",
|
|
38
|
-
"@spyglassmc/core": "0.4.
|
|
39
|
-
"@spyglassmc/java-edition": "0.3.
|
|
38
|
+
"@spyglassmc/core": "0.4.47",
|
|
39
|
+
"@spyglassmc/java-edition": "0.3.60",
|
|
40
40
|
"@spyglassmc/locales": "0.3.24",
|
|
41
|
-
"@spyglassmc/mcdoc": "0.3.
|
|
41
|
+
"@spyglassmc/mcdoc": "0.3.51"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|