@codingame/monaco-languageclient-wrapper 4.1.1 → 4.1.2
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/dist/csharp.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index2.js +10 -39
- package/package.json +42 -42
- package/stats.html +59 -49
package/dist/csharp.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { workspace } from 'vscode';
|
|
2
2
|
import { E as ExtensionFeature } from './tools.js';
|
|
3
|
-
import { ProtocolRequestType } from 'vscode-languageserver-protocol/lib/common/api';
|
|
3
|
+
import { ProtocolRequestType } from 'vscode-languageserver-protocol/lib/common/api.js';
|
|
4
4
|
const OmnisharpMetadataRequestType = new ProtocolRequestType('o#/metadata');
|
|
5
5
|
class CsharpExtensionFeature extends ExtensionFeature {
|
|
6
6
|
constructor(languageClient) {
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { WorkspaceFolder } from 'vscode';
|
|
|
4
4
|
import * as ls from 'vscode-languageserver-protocol';
|
|
5
5
|
import { TextDocumentRegistrationOptions, DidOpenTextDocumentParams, DidCloseTextDocumentParams, TextDocumentChangeRegistrationOptions, DidChangeTextDocumentParams, DidSaveTextDocumentParams, CancellationToken, DocumentSelector, InitializeParams, ClientCapabilities, ServerCapabilities, RegistrationType, ProtocolRequestType0, ProtocolRequestType, RequestType0, RequestType, RequestHandler0, RequestHandler, GenericRequestHandler, ProtocolNotificationType0, ProtocolNotificationType, NotificationType0, NotificationType, NotificationHandler0, NotificationHandler, GenericNotificationHandler, ProgressType, MessageSignature, DidOpenTextDocumentNotification, DidChangeTextDocumentNotification, WillSaveTextDocumentNotification, WillSaveTextDocumentWaitUntilRequest, DidSaveTextDocumentNotification, DidCloseTextDocumentNotification, DidCreateFilesNotification, FileOperationRegistrationOptions, DidRenameFilesNotification, DidDeleteFilesNotification, WillCreateFilesRequest, WillRenameFilesRequest, WillDeleteFilesRequest, CompletionRequest, HoverRequest, SignatureHelpRequest, DefinitionRequest, ReferencesRequest, DocumentHighlightRequest, CodeActionRequest, CodeLensRequest, DocumentFormattingRequest, DocumentRangeFormattingRequest, DocumentOnTypeFormattingRequest, RenameRequest, DocumentSymbolRequest, DocumentLinkRequest, DocumentColorRequest, DeclarationRequest, FoldingRangeRequest, ImplementationRequest, SelectionRangeRequest, TypeDefinitionRequest, CallHierarchyPrepareRequest, SemanticTokensRegistrationType, LinkedEditingRangeRequest, TypeHierarchyPrepareRequest, InlineValueRequest, InlayHintRequest, WorkspaceSymbolRequest, DocumentDiagnosticRequest, NotebookDocumentSyncRegistrationType, NotebookDocumentSyncRegistrationOptions, ConfigurationRequest, WorkspaceFoldersRequest, MessageReader, MessageWriter, CancellationStrategy, ResponseError, InitializeError, Message, Event as Event$1, InitializeResult, Trace, ProgressToken, WorkDoneProgressBegin, WorkDoneProgressReport, WorkDoneProgressEnd, FileEvent, ShowDocumentParams, ShowDocumentRequest, ShowDocumentResult, Emitter, TextDocumentSaveReason } from 'vscode-languageserver-protocol';
|
|
6
6
|
import * as monaco from 'monaco-editor';
|
|
7
|
-
import { Disposable as Disposable$1 } from 'vscode-languageserver-protocol/lib/common/api';
|
|
7
|
+
import { Disposable as Disposable$1 } from 'vscode-languageserver-protocol/lib/common/api.js';
|
|
8
8
|
|
|
9
9
|
interface FileFormattingOptions {
|
|
10
10
|
trimTrailingWhitespace?: boolean;
|
package/dist/index2.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { toSocket, WebSocketMessageReader, WebSocketMessageWriter } from 'vscode-ws-jsonrpc';
|
|
2
2
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
3
|
-
import * as
|
|
4
|
-
import { ProtocolNotificationType, ProtocolRequestType, Emitter, TextDocumentSaveReason,
|
|
3
|
+
import * as vscodeLanguageserverProtocol from 'vscode-languageserver-protocol';
|
|
4
|
+
import { ProtocolNotificationType, ProtocolRequestType, Emitter, TextDocumentSaveReason, InitializeRequest, DidSaveTextDocumentNotification, LogMessageNotification } from 'vscode-languageserver-protocol';
|
|
5
5
|
import { loadConfigurationForExtension } from '@codingame/monaco-editor-wrapper/features/extensionConfigurations';
|
|
6
6
|
import * as browser from 'vscode-languageserver-protocol/browser';
|
|
7
7
|
import * as vscode$3 from 'vscode';
|
|
8
8
|
import { errorHandler } from 'vscode/monaco';
|
|
9
9
|
import { Services } from 'vscode/services';
|
|
10
|
-
import { Disposable } from 'vscode-languageserver-protocol/lib/common/api';
|
|
10
|
+
import { Disposable } from 'vscode-languageserver-protocol/lib/common/api.js';
|
|
11
11
|
import { registerTextModelContentProvider } from '@codingame/monaco-editor-wrapper';
|
|
12
12
|
function ownKeys(object, enumerableOnly) {
|
|
13
13
|
var keys = Object.keys(object);
|
|
@@ -160,7 +160,7 @@ function getAugmentedNamespace(n) {
|
|
|
160
160
|
}
|
|
161
161
|
var main$1 = {};
|
|
162
162
|
var api$1 = {};
|
|
163
|
-
var require$$0$2 = getAugmentedNamespace(
|
|
163
|
+
var require$$0$2 = getAugmentedNamespace(vscodeLanguageserverProtocol);
|
|
164
164
|
var features = {};
|
|
165
165
|
var require$$0$1 = getAugmentedNamespace(vscode$3);
|
|
166
166
|
var is$1 = {};
|
|
@@ -733,7 +733,7 @@ var _polyfillNode_path$1 = Object.freeze({
|
|
|
733
733
|
dirname: dirname,
|
|
734
734
|
basename: basename,
|
|
735
735
|
extname: extname,
|
|
736
|
-
|
|
736
|
+
default: _polyfillNode_path
|
|
737
737
|
});
|
|
738
738
|
var require$$0 = getAugmentedNamespace(_polyfillNode_path$1);
|
|
739
739
|
var concatMap$1 = function (xs, fn) {
|
|
@@ -2393,7 +2393,7 @@ class Delayer {
|
|
|
2393
2393
|
}
|
|
2394
2394
|
}
|
|
2395
2395
|
async$2.Delayer = Delayer;
|
|
2396
|
-
|
|
2396
|
+
let Semaphore$1 = class Semaphore {
|
|
2397
2397
|
constructor() {
|
|
2398
2398
|
let capacity = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
2399
2399
|
if (capacity <= 0) {
|
|
@@ -2454,7 +2454,7 @@ class Semaphore$1 {
|
|
|
2454
2454
|
this.runNext();
|
|
2455
2455
|
}
|
|
2456
2456
|
}
|
|
2457
|
-
}
|
|
2457
|
+
};
|
|
2458
2458
|
async$2.Semaphore = Semaphore$1;
|
|
2459
2459
|
let $test = false;
|
|
2460
2460
|
function setTestMode() {
|
|
@@ -2465,8 +2465,7 @@ function clearTestMode() {
|
|
|
2465
2465
|
$test = false;
|
|
2466
2466
|
}
|
|
2467
2467
|
async$2.clearTestMode = clearTestMode;
|
|
2468
|
-
const defaultYieldTimeout = 15
|
|
2469
|
-
;
|
|
2468
|
+
const defaultYieldTimeout = 15 ;
|
|
2470
2469
|
class Timer {
|
|
2471
2470
|
constructor() {
|
|
2472
2471
|
let yieldAfter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultYieldTimeout;
|
|
@@ -7322,8 +7321,8 @@ class FileSystemWatcherFeature {
|
|
|
7322
7321
|
continue;
|
|
7323
7322
|
}
|
|
7324
7323
|
let watchCreate = true,
|
|
7325
|
-
|
|
7326
|
-
|
|
7324
|
+
watchChange = true,
|
|
7325
|
+
watchDelete = true;
|
|
7327
7326
|
if (watcher.kind !== undefined && watcher.kind !== null) {
|
|
7328
7327
|
watchCreate = (watcher.kind & vscode_languageserver_protocol_1$d.WatchKind.Create) !== 0;
|
|
7329
7328
|
watchChange = (watcher.kind & vscode_languageserver_protocol_1$d.WatchKind.Change) !== 0;
|
|
@@ -13576,36 +13575,8 @@ class MiddlewareMessageReader {
|
|
|
13576
13575
|
}
|
|
13577
13576
|
}
|
|
13578
13577
|
function hackTransports(transports) {
|
|
13579
|
-
const existingRegistrations = new Set();
|
|
13580
13578
|
return {
|
|
13581
13579
|
reader: new MiddlewareMessageReader(transports.reader, message => {
|
|
13582
|
-
if (main.Message.isRequest(message)) {
|
|
13583
|
-
if (message.method === RegistrationRequest.type.method) {
|
|
13584
|
-
const registrationParams = message.params;
|
|
13585
|
-
const filteredRegistrations = registrationParams.registrations.filter(registration => {
|
|
13586
|
-
const alreadyExisting = existingRegistrations.has(registration.id);
|
|
13587
|
-
if (alreadyExisting) {
|
|
13588
|
-
console.warn('Registration already existing', registration.id, registration.method);
|
|
13589
|
-
}
|
|
13590
|
-
return !alreadyExisting;
|
|
13591
|
-
});
|
|
13592
|
-
registrationParams.registrations.forEach(registration => {
|
|
13593
|
-
existingRegistrations.add(registration.id);
|
|
13594
|
-
});
|
|
13595
|
-
const fixedParams = _objectSpread2(_objectSpread2({}, registrationParams), {}, {
|
|
13596
|
-
registrations: filteredRegistrations
|
|
13597
|
-
});
|
|
13598
|
-
return _objectSpread2(_objectSpread2({}, message), {}, {
|
|
13599
|
-
params: fixedParams
|
|
13600
|
-
});
|
|
13601
|
-
}
|
|
13602
|
-
if (message.method === UnregistrationRequest.type.method) {
|
|
13603
|
-
const unregistrationParams = message.params;
|
|
13604
|
-
for (const unregistration of unregistrationParams.unregisterations) {
|
|
13605
|
-
existingRegistrations.delete(unregistration.id);
|
|
13606
|
-
}
|
|
13607
|
-
}
|
|
13608
|
-
}
|
|
13609
13580
|
return message;
|
|
13610
13581
|
}),
|
|
13611
13582
|
writer: new MiddlewareMessageWriter(transports.writer, message => {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-languageclient-wrapper",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Enhanced Monaco editor with TextMate grammars and more",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "npx jest",
|
|
8
8
|
"test:watch": "jest --watch",
|
|
9
9
|
"build": "npm run test && npm run compile && npm run generate-types",
|
|
10
|
-
"compile": "rollup --config rollup.config.ts --configPlugin typescript",
|
|
11
|
-
"generate-types": "tsc --project tsconfig.types.json && rollup --config rollup.types.config.ts --configPlugin typescript && rm -rf ./dist/types",
|
|
10
|
+
"compile": "node --experimental-json-modules ./node_modules/.bin/rollup --config rollup.config.ts --configPlugin typescript",
|
|
11
|
+
"generate-types": "tsc --project tsconfig.types.json && node --experimental-json-modules ./node_modules/.bin/rollup --config rollup.types.config.ts --configPlugin typescript && rm -rf ./dist/types",
|
|
12
12
|
"preprepare": "./scripts/install-extensions"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
@@ -23,65 +23,64 @@
|
|
|
23
23
|
],
|
|
24
24
|
"types": "./dist/index.d.ts",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@codingame/monaco-editor-wrapper": "^3.
|
|
27
|
-
"
|
|
26
|
+
"@codingame/monaco-editor-wrapper": "^3.5.2",
|
|
27
|
+
"monaco-editor": "npm:@codingame/monaco-editor@0.34.0",
|
|
28
|
+
"vscode": "npm:@codingame/monaco-vscode-api@~1.69.12",
|
|
28
29
|
"vscode-languageserver-protocol": "^3.17.2",
|
|
29
|
-
"vscode-ws-jsonrpc": "^
|
|
30
|
-
"monaco-editor": "npm:@codingame/monaco-editor@0.34.0"
|
|
30
|
+
"vscode-ws-jsonrpc": "^2.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@babel/core": "7.
|
|
33
|
+
"@babel/core": "7.20.2",
|
|
34
34
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
35
35
|
"@babel/plugin-proposal-optional-chaining": "7.18.9",
|
|
36
|
-
"@babel/plugin-transform-modules-commonjs": "^7.
|
|
37
|
-
"@babel/preset-env": "7.
|
|
36
|
+
"@babel/plugin-transform-modules-commonjs": "^7.19.6",
|
|
37
|
+
"@babel/preset-env": "7.20.2",
|
|
38
38
|
"@babel/preset-typescript": "7.18.6",
|
|
39
|
-
"@babel/runtime": "7.
|
|
39
|
+
"@babel/runtime": "7.20.1",
|
|
40
40
|
"@codingame/eslint-config": "^1.1.6",
|
|
41
|
-
"@codingame/tsconfig": "^1.1.
|
|
42
|
-
"@rollup/plugin-alias": "
|
|
43
|
-
"@rollup/plugin-babel": "
|
|
44
|
-
"@rollup/plugin-commonjs": "
|
|
45
|
-
"@rollup/plugin-eslint": "
|
|
46
|
-
"@rollup/plugin-json": "
|
|
47
|
-
"@rollup/plugin-node-resolve": "
|
|
48
|
-
"@rollup/plugin-typescript": "^
|
|
49
|
-
"@types/jest": "^
|
|
41
|
+
"@codingame/tsconfig": "^1.1.1",
|
|
42
|
+
"@rollup/plugin-alias": "4.0.2",
|
|
43
|
+
"@rollup/plugin-babel": "6.0.2",
|
|
44
|
+
"@rollup/plugin-commonjs": "23.0.2",
|
|
45
|
+
"@rollup/plugin-eslint": "9.0.1",
|
|
46
|
+
"@rollup/plugin-json": "5.0.1",
|
|
47
|
+
"@rollup/plugin-node-resolve": "15.0.1",
|
|
48
|
+
"@rollup/plugin-typescript": "^9.0.2",
|
|
49
|
+
"@types/jest": "^29.2.2",
|
|
50
50
|
"@types/once": "^1.4.0",
|
|
51
51
|
"@types/vscode": "~1.69.1",
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
53
|
-
"@typescript-eslint/parser": "5.
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "5.42.1",
|
|
53
|
+
"@typescript-eslint/parser": "5.42.1",
|
|
54
54
|
"browser-resolve": "^2.0.0",
|
|
55
|
-
"canvas": "^2.
|
|
55
|
+
"canvas": "^2.10.2",
|
|
56
56
|
"conventional-changelog-conventionalcommits": "^5.0.0",
|
|
57
57
|
"delay": "^5.0.0",
|
|
58
|
-
"eslint": "8.
|
|
58
|
+
"eslint": "8.27.0",
|
|
59
59
|
"eslint-config-standard": "17.0.0",
|
|
60
60
|
"eslint-plugin-import": "2.26.0",
|
|
61
|
-
"eslint-plugin-jest": "^
|
|
62
|
-
"eslint-plugin-n": "^15.
|
|
63
|
-
"eslint-plugin-promise": "6.
|
|
61
|
+
"eslint-plugin-jest": "^27.1.4",
|
|
62
|
+
"eslint-plugin-n": "^15.5.0",
|
|
63
|
+
"eslint-plugin-promise": "6.1.1",
|
|
64
64
|
"eslint-plugin-unused-imports": "^2.0.0",
|
|
65
|
-
"jest": "^
|
|
66
|
-
"jest-environment-jsdom": "^
|
|
65
|
+
"jest": "^29.3.0",
|
|
66
|
+
"jest-environment-jsdom": "^29.3.0",
|
|
67
67
|
"js-cleanup": "^1.2.0",
|
|
68
|
-
"monaco-languageclient": "^
|
|
68
|
+
"monaco-languageclient": "^4.0.1",
|
|
69
69
|
"once": "^1.4.0",
|
|
70
70
|
"proxy-polyfill": "^0.3.2",
|
|
71
|
-
"recast": "^0.21.
|
|
72
|
-
"rollup": "2.
|
|
73
|
-
"rollup-plugin-dts": "^
|
|
74
|
-
"rollup-plugin-polyfill-node": "^0.
|
|
71
|
+
"recast": "^0.21.5",
|
|
72
|
+
"rollup": "3.2.5",
|
|
73
|
+
"rollup-plugin-dts": "^5.0.0",
|
|
74
|
+
"rollup-plugin-polyfill-node": "^0.11.0",
|
|
75
75
|
"rollup-plugin-postcss": "4.0.2",
|
|
76
|
-
"rollup-plugin-visualizer": "5.
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"typescript": "4.7.4",
|
|
76
|
+
"rollup-plugin-visualizer": "5.8.3",
|
|
77
|
+
"tslib": "^2.4.1",
|
|
78
|
+
"typescript": "4.8.4",
|
|
80
79
|
"vscode-languageserver": "^8.0.2",
|
|
81
80
|
"vscode-languageserver-protocol": "^3.17.2"
|
|
82
81
|
},
|
|
83
82
|
"resolutions": {
|
|
84
|
-
"eslint": "8.
|
|
83
|
+
"eslint": "8.27.0"
|
|
85
84
|
},
|
|
86
85
|
"browserslist": [
|
|
87
86
|
"defaults",
|
|
@@ -115,11 +114,12 @@
|
|
|
115
114
|
},
|
|
116
115
|
"moduleNameMapper": {
|
|
117
116
|
"^monaco-editor$": "monaco-editor/esm/vs/editor/editor.api",
|
|
118
|
-
"^monaco-editor-core$": "monaco-editor/esm/vs/editor/editor.api"
|
|
117
|
+
"^monaco-editor-core$": "monaco-editor/esm/vs/editor/editor.api",
|
|
118
|
+
"^vscode-oniguruma/release/onig.wasm$": "<rootDir>/jest/onig.js"
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
"volta": {
|
|
122
|
-
"node": "16.
|
|
123
|
-
"npm": "8.
|
|
122
|
+
"node": "16.17.0",
|
|
123
|
+
"npm": "8.19.0"
|
|
124
124
|
}
|
|
125
125
|
}
|