@codingame/monaco-languageclient-wrapper 2.4.1 → 2.5.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/index.d.ts +27 -9
- package/dist/index.js +514 -352
- package/package.json +24 -23
- package/stats.html +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1488,6 +1488,27 @@ declare class MarkdownString {
|
|
|
1488
1488
|
*/
|
|
1489
1489
|
supportHtml?: boolean;
|
|
1490
1490
|
|
|
1491
|
+
/**
|
|
1492
|
+
* Uri that relative paths are resolved relative to.
|
|
1493
|
+
*
|
|
1494
|
+
* If the `baseUri` ends with `/`, it is considered a directory and relative paths in the markdown are resolved relative to that directory:
|
|
1495
|
+
*
|
|
1496
|
+
* ```ts
|
|
1497
|
+
* const md = new vscode.MarkdownString(`[link](./file.js)`);
|
|
1498
|
+
* md.baseUri = vscode.Uri.file('/path/to/dir/');
|
|
1499
|
+
* // Here 'link' in the rendered markdown resolves to '/path/to/dir/file.js'
|
|
1500
|
+
* ```
|
|
1501
|
+
*
|
|
1502
|
+
* If the `baseUri` is a file, relative paths in the markdown are resolved relative to the parent dir of that file:
|
|
1503
|
+
*
|
|
1504
|
+
* ```ts
|
|
1505
|
+
* const md = new vscode.MarkdownString(`[link](./file.js)`);
|
|
1506
|
+
* md.baseUri = vscode.Uri.file('/path/to/otherFile.js');
|
|
1507
|
+
* // Here 'link' in the rendered markdown resolves to '/path/to/file.js'
|
|
1508
|
+
* ```
|
|
1509
|
+
*/
|
|
1510
|
+
baseUri?: Uri;
|
|
1511
|
+
|
|
1491
1512
|
/**
|
|
1492
1513
|
* Creates a new markdown string with the given value.
|
|
1493
1514
|
*
|
|
@@ -3085,7 +3106,6 @@ declare class ColorInformation {
|
|
|
3085
3106
|
*
|
|
3086
3107
|
* @param range The range the color appears in. Must not be empty.
|
|
3087
3108
|
* @param color The value of the color.
|
|
3088
|
-
* @param format The format in which this color is currently formatted.
|
|
3089
3109
|
*/
|
|
3090
3110
|
constructor(range: Range$1, color: Color);
|
|
3091
3111
|
}
|
|
@@ -4467,7 +4487,7 @@ declare class Task {
|
|
|
4467
4487
|
/**
|
|
4468
4488
|
* Creates a new task.
|
|
4469
4489
|
*
|
|
4470
|
-
* @param
|
|
4490
|
+
* @param taskDefinition The task definition as defined in the taskDefinitions extension point.
|
|
4471
4491
|
* @param scope Specifies the task's scope. It is either a global or a workspace task or a task for a specific workspace folder. Global tasks are currently not supported.
|
|
4472
4492
|
* @param name The task's name. Is presented in the user interface.
|
|
4473
4493
|
* @param source The task's source (e.g. 'gulp', 'npm', ...). Is presented in the user interface.
|
|
@@ -4483,7 +4503,7 @@ declare class Task {
|
|
|
4483
4503
|
*
|
|
4484
4504
|
* @deprecated Use the new constructors that allow specifying a scope for the task.
|
|
4485
4505
|
*
|
|
4486
|
-
* @param
|
|
4506
|
+
* @param taskDefinition The task definition as defined in the taskDefinitions extension point.
|
|
4487
4507
|
* @param name The task's name. Is presented in the user interface.
|
|
4488
4508
|
* @param source The task's source (e.g. 'gulp', 'npm', ...). Is presented in the user interface.
|
|
4489
4509
|
* @param execution The process or shell execution.
|
|
@@ -4904,8 +4924,8 @@ interface FileSystem {
|
|
|
4904
4924
|
/**
|
|
4905
4925
|
* Rename a file or folder.
|
|
4906
4926
|
*
|
|
4907
|
-
* @param
|
|
4908
|
-
* @param
|
|
4927
|
+
* @param source The existing file.
|
|
4928
|
+
* @param target The new location.
|
|
4909
4929
|
* @param options Defines if existing files should be overwritten.
|
|
4910
4930
|
*/
|
|
4911
4931
|
rename(source: Uri, target: Uri, options?: { overwrite?: boolean }): Thenable$1<void>;
|
|
@@ -4914,7 +4934,7 @@ interface FileSystem {
|
|
|
4914
4934
|
* Copy files or folders.
|
|
4915
4935
|
*
|
|
4916
4936
|
* @param source The existing file.
|
|
4917
|
-
* @param
|
|
4937
|
+
* @param target The destination location.
|
|
4918
4938
|
* @param options Defines if existing files should be overwritten.
|
|
4919
4939
|
*/
|
|
4920
4940
|
copy(source: Uri, target: Uri, options?: { overwrite?: boolean }): Thenable$1<void>;
|
|
@@ -7983,7 +8003,6 @@ declare class LanguageClientManager implements LanguageClient {
|
|
|
7983
8003
|
private disposed;
|
|
7984
8004
|
protected readonly onDidChangeStatusEmitter: Emitter<StatusChangeEvent>;
|
|
7985
8005
|
protected readonly onErrorEmitter: Emitter<Error>;
|
|
7986
|
-
protected readonly onWillCloseEmitter: Emitter<void>;
|
|
7987
8006
|
protected readonly onDidCloseEmitter: Emitter<void>;
|
|
7988
8007
|
protected readonly onWillShutdownEmitter: Emitter<WillShutdownParams>;
|
|
7989
8008
|
protected currentStatus: Status;
|
|
@@ -7994,7 +8013,6 @@ declare class LanguageClientManager implements LanguageClient {
|
|
|
7994
8013
|
isConnected(): boolean;
|
|
7995
8014
|
dispose(): Promise<void>;
|
|
7996
8015
|
get onDidChangeStatus(): Event<StatusChangeEvent>;
|
|
7997
|
-
get onWillClose(): Event<void>;
|
|
7998
8016
|
get onDidClose(): Event<void>;
|
|
7999
8017
|
get onWillShutdown(): Event<WillShutdownParams>;
|
|
8000
8018
|
get onError(): Event<Error>;
|
|
@@ -8006,12 +8024,12 @@ declare class LanguageClientManager implements LanguageClient {
|
|
|
8006
8024
|
private _start;
|
|
8007
8025
|
sendNotification<P>(type: NotificationType$2<P>, params?: P): void;
|
|
8008
8026
|
sendRequest<P, R, E>(type: RequestType$2<P, R, E>, params: P): Promise<R>;
|
|
8027
|
+
private registerFileHandlers;
|
|
8009
8028
|
}
|
|
8010
8029
|
/**
|
|
8011
8030
|
* Create a language client manager
|
|
8012
8031
|
* @param id The predefined id of the language client
|
|
8013
8032
|
* @param infrastructure The infrastructure to use
|
|
8014
|
-
* @param parameters the infrastructure parameters
|
|
8015
8033
|
* @returns A language client manager
|
|
8016
8034
|
*/
|
|
8017
8035
|
declare function createLanguageClientManager(id: LanguageClientId, infrastructure: Infrastructure): LanguageClientManager;
|