Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/markdown-language-features/src/protocol.ts')
-rw-r--r--extensions/markdown-language-features/src/protocol.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/extensions/markdown-language-features/src/protocol.ts b/extensions/markdown-language-features/src/protocol.ts
new file mode 100644
index 00000000000..75b8162cf8c
--- /dev/null
+++ b/extensions/markdown-language-features/src/protocol.ts
@@ -0,0 +1,18 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
+
+import Token = require('markdown-it/lib/token');
+import { RequestType } from 'vscode-languageclient';
+import type * as lsp from 'vscode-languageserver-types';
+
+// From server
+export const parseRequestType: RequestType<{ uri: string }, Token[], any> = new RequestType('markdown/parse');
+export const readFileRequestType: RequestType<{ uri: string }, number[], any> = new RequestType('markdown/readFile');
+export const statFileRequestType: RequestType<{ uri: string }, { isDirectory: boolean } | undefined, any> = new RequestType('markdown/statFile');
+export const readDirectoryRequestType: RequestType<{ uri: string }, [string, { isDirectory: boolean }][], any> = new RequestType('markdown/readDirectory');
+export const findFilesRequestTypes = new RequestType<{}, string[], any>('markdown/findFiles');
+
+// To server
+export const getReferencesToFileInWorkspace = new RequestType<{ uri: string }, lsp.Location[], any>('markdown/getReferencesToFileInWorkspace');