@codingame/monaco-languageclient-wrapper 1.1.3 → 1.1.7
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/createLanguageClient.d.ts +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/languageClient.d.ts +3 -3
- package/dist/main.js +9 -6
- package/dist/staticOptions.d.ts +3 -1
- package/package.json +15 -15
- package/stats.html +1 -1
- package/dist/BSV.tmLanguage.js +0 -299
- package/dist/COBOL Copybook.js +0 -2017
- package/dist/COBOL.js +0 -2017
- package/dist/COBOL.tmLanguage.js +0 -149
- package/dist/CodinGameMonacoWorkspace.d.ts +0 -13
- package/dist/Configuration.d.ts +0 -15
- package/dist/Erlang.plist.js +0 -1752
- package/dist/JSON.tmLanguage.js +0 -221
- package/dist/JSONC.tmLanguage.js +0 -221
- package/dist/JavaScript.tmLanguage.js +0 -5894
- package/dist/Kotlin.tmLanguage.js +0 -724
- package/dist/MagicPython.tmLanguage.js +0 -5340
- package/dist/MagicRegExp.tmLanguage.js +0 -505
- package/dist/Regular Expressions (JavaScript).tmLanguage.js +0 -166
- package/dist/SQL.plist.js +0 -482
- package/dist/Scala.tmLanguage.js +0 -1255
- package/dist/TypeScript.tmLanguage.js +0 -5641
- package/dist/WatchableConsoleWindow.d.ts +0 -22
- package/dist/_rollupPluginBabelHelpers.js +0 -54
- package/dist/asp-vb-net.tmlanguage.js +0 -247
- package/dist/bsv.js +0 -49
- package/dist/c.js +0 -18
- package/dist/c.tmLanguage.js +0 -3347
- package/dist/cabal.tmLanguage.js +0 -66
- package/dist/clojure.tmLanguage.js +0 -443
- package/dist/codeblock-cabal.js +0 -42
- package/dist/codeblock-haskell.js +0 -42
- package/dist/codeblock-literate-haskell.js +0 -42
- package/dist/codeblock.js +0 -36
- package/dist/codeblock2.js +0 -95
- package/dist/coffeescript.js +0 -18
- package/dist/coffeescript.tmLanguage.js +0 -1324
- package/dist/configuration/index.d.ts +0 -5
- package/dist/cpp.js +0 -18
- package/dist/cpp.tmLanguage.js +0 -19996
- package/dist/csharp.js +0 -18
- package/dist/csharp.tmLanguage.js +0 -4750
- package/dist/css.tmLanguage.js +0 -1873
- package/dist/css.worker.js +0 -6
- package/dist/cssContribution.js +0 -10
- package/dist/cuda-cpp.tmLanguage.js +0 -19993
- package/dist/d.js +0 -3159
- package/dist/dart.js +0 -530
- package/dist/diet.js +0 -758
- package/dist/diet2.js +0 -92
- package/dist/dml.js +0 -169
- package/dist/eex.js +0 -55
- package/dist/elixir.js +0 -2341
- package/dist/elixir2.js +0 -184
- package/dist/erlang.js +0 -195
- package/dist/expression.js +0 -846
- package/dist/extensions/autofold.d.ts +0 -2
- package/dist/extensions/cobol.d.ts +0 -2
- package/dist/extensions/index.d.ts +0 -2
- package/dist/features/cssContribution.d.ts +0 -1
- package/dist/features/htmlContribution.d.ts +0 -1
- package/dist/features/jsonContribution.d.ts +0 -1
- package/dist/features/typescriptContribution.d.ts +0 -1
- package/dist/fsharp.js +0 -18
- package/dist/fsharp.tmLanguage.js +0 -1811
- package/dist/go.tmLanguage.js +0 -1025
- package/dist/groovy.js +0 -229
- package/dist/groovy.tmLanguage.js +0 -1391
- package/dist/haskell.tmLanguage.js +0 -629
- package/dist/html (eex).js +0 -31
- package/dist/html-derivative.tmLanguage.js +0 -57
- package/dist/html.tmLanguage.js +0 -2652
- package/dist/html.tmLanguage2.js +0 -97
- package/dist/html.worker.js +0 -6
- package/dist/htmlContribution.js +0 -10
- package/dist/inline-styles.js +0 -104
- package/dist/inline-template.js +0 -88
- package/dist/java.js +0 -18
- package/dist/java.tmLanguage.js +0 -1863
- package/dist/javascript.js +0 -196
- package/dist/javascriptreact.js +0 -196
- package/dist/jsdoc.js.injection.tmLanguage.js +0 -32
- package/dist/jsdoc.ts.injection.tmLanguage.js +0 -32
- package/dist/json.worker.js +0 -6
- package/dist/jsonContribution.js +0 -78
- package/dist/keybindings/index.d.ts +0 -2
- package/dist/keybindings/keybindingHelper.d.ts +0 -2
- package/dist/keybindings/vim.d.ts +0 -3
- package/dist/kotlin.js +0 -117
- package/dist/kotlinscript.js +0 -117
- package/dist/languages/extensions/grammarLoader.d.ts +0 -91037
- package/dist/languages/extensions/snippetLoader.d.ts +0 -4578
- package/dist/languages/index.d.ts +0 -3
- package/dist/languages/monarch/index.d.ts +0 -7
- package/dist/languages/monarch/list.d.ts +0 -7
- package/dist/languages/monarch/stub-generator.d.ts +0 -2
- package/dist/languages/snippets/index.d.ts +0 -1
- package/dist/languages/textMate/CGTMGrammarFactory.d.ts +0 -5
- package/dist/languages/textMate/TextMateTokensProvider.d.ts +0 -11
- package/dist/languages/textMate/index.d.ts +0 -2
- package/dist/literateHaskell.tmLanguage.js +0 -70
- package/dist/lua.tmLanguage.js +0 -289
- package/dist/markdown.js +0 -103
- package/dist/markdown.tmLanguage.js +0 -2784
- package/dist/merlin.js +0 -111
- package/dist/monaco.d.ts +0 -8
- package/dist/objective-c.tmLanguage.js +0 -3618
- package/dist/ocaml-hover-info.js +0 -34
- package/dist/ocaml-hover-type.js +0 -24
- package/dist/ocaml-markdown-codeblock.js +0 -42
- package/dist/ocaml.js +0 -2979
- package/dist/ocamlbuild.js +0 -239
- package/dist/opam.js +0 -149
- package/dist/pascal.js +0 -382
- package/dist/pascal.tmLanguage.js +0 -169
- package/dist/perl.tmLanguage.js +0 -2986
- package/dist/perl6.tmLanguage.js +0 -323
- package/dist/pgsql.tmLanguage.js +0 -284
- package/dist/php.js +0 -265
- package/dist/php.tmLanguage.js +0 -3791
- package/dist/platform.tmLanguage.js +0 -1135
- package/dist/powershell.js +0 -18
- package/dist/powershell.tmLanguage.js +0 -1037
- package/dist/r.tmLanguage.js +0 -551
- package/dist/reason-hover-info.js +0 -34
- package/dist/reason-hover-signature.js +0 -21
- package/dist/reason-hover-type.js +0 -21
- package/dist/reason-markdown-codeblock.js +0 -42
- package/dist/reason.js +0 -100
- package/dist/ruby.tmLanguage.js +0 -2784
- package/dist/rust.tmLanguage.js +0 -1178
- package/dist/sassdoc.tmLanguage.js +0 -362
- package/dist/scss.tmLanguage.js +0 -1887
- package/dist/sdc.tmLanguage.js +0 -712
- package/dist/sdl.js +0 -162
- package/dist/services/EditorModelResolverService.d.ts +0 -8
- package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +0 -7
- package/dist/shell-unix-bash.tmLanguage.js +0 -1291
- package/dist/sql.js +0 -21
- package/dist/stub-generator.js +0 -15
- package/dist/swift.js +0 -183
- package/dist/swift.tmLanguage.js +0 -3288
- package/dist/systemverilog.js +0 -208
- package/dist/systemverilog.tmLanguage.js +0 -1067
- package/dist/tcl.js +0 -151
- package/dist/tcl.tmlanguage.yaml.js +0 -5484
- package/dist/template.js +0 -207
- package/dist/theme/index.d.ts +0 -3
- package/dist/theme/registry.d.ts +0 -4
- package/dist/theme/semanticHighlight.d.ts +0 -1
- package/dist/theme/tools.d.ts +0 -13
- package/dist/tools.d.ts +0 -3
- package/dist/ts.worker.js +0 -6
- package/dist/typescript.js +0 -312
- package/dist/typescriptContribution.js +0 -36
- package/dist/typescriptreact.js +0 -312
- package/dist/ucf.tmLanguage.js +0 -36
- package/dist/vb.js +0 -88
- package/dist/verilog.js +0 -432
- package/dist/verilog.tmLanguage.js +0 -321
- package/dist/worker.d.ts +0 -6
- package/dist/worker.js +0 -54
- package/dist/xml.tmLanguage.js +0 -395
- package/dist/xsl.tmLanguage.js +0 -102
- package/dist/yaml.tmLanguage.js +0 -629
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MonacoLanguageClient, Middleware, ErrorHandler } from '@codingame/monaco-languageclient';
|
|
2
|
-
import { StaticLanguageClientOptions } from './staticOptions';
|
|
3
|
-
declare function createLanguageClient(id:
|
|
2
|
+
import { LanguageClientId, StaticLanguageClientOptions } from './staticOptions';
|
|
3
|
+
declare function createLanguageClient(id: LanguageClientId, sessionId: string | undefined, { documentSelector, synchronize, initializationOptions }: StaticLanguageClientOptions, languageServerAddress: string, getSecurityToken: () => Promise<string>, libraryUrls: string[], errorHandler: ErrorHandler, middleware?: Middleware): MonacoLanguageClient;
|
|
4
4
|
export default createLanguageClient;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import 'proxy-polyfill';
|
|
2
2
|
import './hacks';
|
|
3
|
-
import '@codingame/monaco-editor-wrapper/dist/extensionConfigurations';
|
|
4
3
|
import { createLanguageClientManager, StatusChangeEvent } from './languageClient';
|
|
5
4
|
export { createLanguageClientManager };
|
|
6
5
|
export type { StatusChangeEvent };
|
package/dist/languageClient.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MonacoLanguageClient, Emitter, Event, TextDocument } from '@codingame/monaco-languageclient';
|
|
2
|
-
import { StaticLanguageClientOptions } from './staticOptions';
|
|
2
|
+
import { LanguageClientId, StaticLanguageClientOptions } from './staticOptions';
|
|
3
3
|
declare type Status = {
|
|
4
4
|
type: string;
|
|
5
5
|
message: string;
|
|
@@ -23,7 +23,7 @@ export declare class LanguageClientManager implements LanguageClient {
|
|
|
23
23
|
protected readonly onErrorEmitter: Emitter<Error>;
|
|
24
24
|
protected readonly onWillCloseEmitter: Emitter<void>;
|
|
25
25
|
protected currentStatus?: Status;
|
|
26
|
-
constructor(id:
|
|
26
|
+
constructor(id: LanguageClientId, sessionId: string | undefined, languageServerAddress: string, getSecurityToken: () => Promise<string>, languageServerOptions: StaticLanguageClientOptions, libraryUrls: string[]);
|
|
27
27
|
private updateStatus;
|
|
28
28
|
private notifyStatusChanged;
|
|
29
29
|
isReady(): boolean;
|
|
@@ -39,7 +39,7 @@ export declare class LanguageClientManager implements LanguageClient {
|
|
|
39
39
|
sendNotification(method: string, params: unknown): void;
|
|
40
40
|
sendRequest<R>(method: string, params: unknown): Promise<R>;
|
|
41
41
|
}
|
|
42
|
-
declare function createLanguageClientManager(id:
|
|
42
|
+
declare function createLanguageClientManager(id: LanguageClientId, sessionId: string | undefined, languageServerAddress: string, getSecurityToken: () => Promise<string>, libraryUrls: string[]): LanguageClientManager;
|
|
43
43
|
declare function getAllLanguageClientManagers(): LanguageClientManager[];
|
|
44
44
|
declare function getAllLanguageClientManagersByTextDocument(textDocument: TextDocument): LanguageClientManager[];
|
|
45
45
|
export { createLanguageClientManager, getAllLanguageClientManagers, getAllLanguageClientManagersByTextDocument };
|
package/dist/main.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor/esm/vs/editor/edcore.main';
|
|
2
2
|
import { Uri } from 'monaco-editor/esm/vs/editor/edcore.main';
|
|
3
|
-
import '@codingame/monaco-editor-wrapper/dist/extensionConfigurations';
|
|
4
3
|
import { registerTextModelContentProvider } from '@codingame/monaco-editor-wrapper';
|
|
5
4
|
import swal from 'sweetalert';
|
|
6
5
|
import once from 'once';
|
|
@@ -20762,7 +20761,9 @@ async function openConnection(url, errorHandler, closeHandler) {
|
|
|
20762
20761
|
|
|
20763
20762
|
return connection.onRequest(args[0], function () {
|
|
20764
20763
|
// Hack for https://github.com/OmniSharp/omnisharp-roslyn/issues/2119
|
|
20765
|
-
|
|
20764
|
+
const method = args[0].method;
|
|
20765
|
+
|
|
20766
|
+
if (method === lib$1.RegistrationRequest.type.method) {
|
|
20766
20767
|
const registrationParams = arguments.length <= 0 ? undefined : arguments[0];
|
|
20767
20768
|
registrationParams.registrations = registrationParams.registrations.filter(registration => {
|
|
20768
20769
|
const alreadyExisting = existingRegistrations.has(registration.id);
|
|
@@ -20778,7 +20779,7 @@ async function openConnection(url, errorHandler, closeHandler) {
|
|
|
20778
20779
|
});
|
|
20779
20780
|
}
|
|
20780
20781
|
|
|
20781
|
-
if (
|
|
20782
|
+
if (method === lib$1.UnregistrationRequest.type.method) {
|
|
20782
20783
|
const unregistrationParams = arguments.length <= 0 ? undefined : arguments[0];
|
|
20783
20784
|
|
|
20784
20785
|
for (const unregistration of unregistrationParams.unregisterations) {
|
|
@@ -20875,7 +20876,9 @@ function createLanguageClient(id, sessionId, _ref, languageServerAddress, getSec
|
|
|
20875
20876
|
return client;
|
|
20876
20877
|
}
|
|
20877
20878
|
|
|
20878
|
-
const
|
|
20879
|
+
const asLanguageClientOptionsById = options => options;
|
|
20880
|
+
|
|
20881
|
+
const staticOptions = asLanguageClientOptionsById({
|
|
20879
20882
|
angular: {
|
|
20880
20883
|
documentSelector: [{
|
|
20881
20884
|
scheme: 'file',
|
|
@@ -21110,7 +21113,7 @@ const staticOptions = {
|
|
|
21110
21113
|
}],
|
|
21111
21114
|
synchronize: {}
|
|
21112
21115
|
}
|
|
21113
|
-
};
|
|
21116
|
+
});
|
|
21114
21117
|
|
|
21115
21118
|
class LanguageClientManager {
|
|
21116
21119
|
constructor(id, sessionId, languageServerAddress, getSecurityToken, languageServerOptions, libraryUrls) {
|
|
@@ -21313,7 +21316,7 @@ function createLanguageClientManager(id, sessionId, languageServerAddress, getSe
|
|
|
21313
21316
|
throw new Error("Language client for language ".concat(id, " already started"));
|
|
21314
21317
|
}
|
|
21315
21318
|
|
|
21316
|
-
const languageServerOptions = staticOptions[id];
|
|
21319
|
+
const languageServerOptions = staticOptions[id]; // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
21317
21320
|
|
|
21318
21321
|
if (languageServerOptions == null) {
|
|
21319
21322
|
throw new Error("Unknown ".concat(id, " language server"));
|
package/dist/staticOptions.d.ts
CHANGED
|
@@ -5,5 +5,7 @@ export interface LanguageServerConfig {
|
|
|
5
5
|
initializationOptions?: unknown | (() => unknown);
|
|
6
6
|
}
|
|
7
7
|
export declare type StaticLanguageClientOptions = Pick<LanguageClientOptions, 'documentSelector' | 'synchronize' | 'initializationOptions'>;
|
|
8
|
-
declare
|
|
8
|
+
declare type LanguageClientOptionsById<T extends string> = Record<T, StaticLanguageClientOptions>;
|
|
9
|
+
declare const staticOptions: LanguageClientOptionsById<"angular" | "bash" | "c" | "cpp" | "csharp" | "clojure" | "cobol" | "dart" | "go" | "groovy" | "java" | "javascript" | "kotlin" | "lua" | "php-serenata" | "php" | "python" | "r" | "react" | "ruby" | "rust" | "scala" | "sql" | "swift" | "typescript" | "vue">;
|
|
10
|
+
export declare type LanguageClientId = keyof typeof staticOptions;
|
|
9
11
|
export default staticOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-languageclient-wrapper",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Enhanced Monaco editor with TextMate grammars and more",
|
|
6
6
|
"scripts": {
|
|
@@ -20,42 +20,42 @@
|
|
|
20
20
|
],
|
|
21
21
|
"types": "dist/index.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@codingame/monaco-editor-wrapper": "^1.1.
|
|
23
|
+
"@codingame/monaco-editor-wrapper": "^1.1.4",
|
|
24
24
|
"once": "^1.4.0",
|
|
25
25
|
"sweetalert": "^2.1.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@babel/core": "7.16.
|
|
29
|
-
"@babel/plugin-proposal-class-properties": "7.16.
|
|
30
|
-
"@babel/plugin-proposal-optional-chaining": "7.16.
|
|
31
|
-
"@babel/preset-env": "7.16.
|
|
32
|
-
"@babel/preset-typescript": "7.16.
|
|
33
|
-
"@babel/runtime": "7.16.
|
|
28
|
+
"@babel/core": "7.16.7",
|
|
29
|
+
"@babel/plugin-proposal-class-properties": "7.16.7",
|
|
30
|
+
"@babel/plugin-proposal-optional-chaining": "7.16.7",
|
|
31
|
+
"@babel/preset-env": "7.16.7",
|
|
32
|
+
"@babel/preset-typescript": "7.16.7",
|
|
33
|
+
"@babel/runtime": "7.16.7",
|
|
34
34
|
"@codingame/monaco-jsonrpc": "^0.3.1",
|
|
35
35
|
"@codingame/monaco-languageclient": "^0.17.3",
|
|
36
|
-
"@rollup/plugin-alias": "3.1.
|
|
36
|
+
"@rollup/plugin-alias": "3.1.9",
|
|
37
37
|
"@rollup/plugin-babel": "5.3.0",
|
|
38
38
|
"@rollup/plugin-commonjs": "21.0.1",
|
|
39
39
|
"@rollup/plugin-eslint": "8.0.1",
|
|
40
40
|
"@rollup/plugin-json": "4.1.0",
|
|
41
|
-
"@rollup/plugin-node-resolve": "13.1.
|
|
41
|
+
"@rollup/plugin-node-resolve": "13.1.2",
|
|
42
42
|
"@rollup/plugin-typescript": "^8.3.0",
|
|
43
43
|
"@types/once": "^1.4.0",
|
|
44
44
|
"@types/rollup-plugin-node-builtins": "^2.1.2",
|
|
45
45
|
"@types/vscode": "^1.63.1",
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "5.8.
|
|
47
|
-
"@typescript-eslint/parser": "5.8.
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "5.8.1",
|
|
47
|
+
"@typescript-eslint/parser": "5.8.1",
|
|
48
48
|
"babel-eslint": "10.1.0",
|
|
49
|
-
"eslint": "8.
|
|
49
|
+
"eslint": "8.6.0",
|
|
50
50
|
"eslint-config-standard": "16.0.3",
|
|
51
51
|
"eslint-config-standard-jsx": "10.0.0",
|
|
52
|
-
"eslint-plugin-import": "2.25.
|
|
52
|
+
"eslint-plugin-import": "2.25.4",
|
|
53
53
|
"eslint-plugin-node": "11.1.0",
|
|
54
54
|
"eslint-plugin-promise": "6.0.0",
|
|
55
55
|
"eslint-plugin-standard": "5.0.0",
|
|
56
56
|
"eslint-plugin-unused-imports": "2.0.0",
|
|
57
57
|
"proxy-polyfill": "^0.3.2",
|
|
58
|
-
"rollup": "2.
|
|
58
|
+
"rollup": "2.62.0",
|
|
59
59
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
60
60
|
"rollup-plugin-postcss": "4.0.2",
|
|
61
61
|
"rollup-plugin-visualizer": "5.5.2",
|