@codingame/monaco-vscode-markdown-language-features-default-extension 7.1.0 → 8.0.0

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.
@@ -0,0 +1 @@
1
+ /*! For license information please see workerMain.js.LICENSE.txt */
@@ -1,7 +0,0 @@
1
- # Changelog
2
-
3
- # 0.4.0-alpha.3 — June 2, 2023
4
- - Pick up [Markdown Language Service](https://github.com/microsoft/vscode-markdown-languageservice) 0.4.0-alpha.3. See [CHANGELOG](https://github.com/microsoft/vscode-markdown-languageservice/blob/main/CHANGELOG.md#040-alpha3--may-30-2023) for details.
5
-
6
- ## 0.3.0 - March 28, 2023
7
- - Pick up [Markdown Language Service](https://github.com/microsoft/vscode-markdown-languageservice) 0.3.0. See [CHANGELOG](https://github.com/microsoft/vscode-markdown-languageservice/blob/main/CHANGELOG.md#030--march-16-2023) for details.
@@ -1,131 +0,0 @@
1
- # Markdown Language Server
2
-
3
- > **❗ Import** This is still in development. While the language server is being used by VS Code, it has not yet been tested with other clients.
4
-
5
- The Markdown language server powers VS Code's built-in markdown support, providing tools for writing and browsing Markdown files. It runs as a separate executable and implements the [language server protocol](https://microsoft.github.io/language-server-protocol/overview).
6
-
7
- This server uses the [Markdown Language Service](https://github.com/microsoft/vscode-markdown-languageservice) to implement almost all of the language features. You can use that library if you need a library for working with Markdown instead of a full language server.
8
-
9
- ## Server capabilities
10
-
11
- - [Completions](https://microsoft.github.io/language-server-protocol/specification#textDocument_completion) for Markdown links.
12
-
13
- - [Folding](https://microsoft.github.io/language-server-protocol/specification#textDocument_foldingRange) of Markdown regions, block elements, and header sections.
14
-
15
- - [Smart selection](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_selectionRange) for inline elements, block elements, and header sections.
16
-
17
- - [Document Symbols](https://microsoft.github.io/language-server-protocol/specification#textDocument_documentSymbol) for quick navigation to headers in a document.
18
-
19
- - [Workspace Symbols](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_symbol) for quick navigation to headers in the workspace
20
-
21
- - [Document links](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_documentLink) for making Markdown links in a document clickable.
22
-
23
- - [Find all references](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_references) to headers and links across all Markdown files in the workspace.
24
-
25
- - [Go to definition](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_definition) from links to headers or link definitions.
26
-
27
- - [Rename](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_rename) of headers and links across all Markdown files in the workspace.
28
-
29
- - Find all references to a file. Uses a custom `markdown/getReferencesToFileInWorkspace` message.
30
-
31
- - [Code Actions](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_codeAction)
32
-
33
- - Organize link definitions source action.
34
- - Extract link to definition refactoring.
35
-
36
- - Updating links when a file is moved / renamed. Uses a custom `markdown/getEditForFileRenames` message.
37
-
38
- - [Pull diagnostics (validation)](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_pullDiagnostics) for links.
39
-
40
- ## Client requirements
41
-
42
- ### Initialization options
43
-
44
- The client can send the following initialization options to the server:
45
-
46
- - `markdownFileExtensions` Array file extensions that should be considered as Markdown. These should not include the leading `.`. For example: `['md', 'mdown', 'markdown']`.
47
-
48
- ### Settings
49
-
50
- Clients may send a `workspace/didChangeConfiguration` notification to notify the server of settings changes.
51
- The server supports the following settings:
52
-
53
- - `markdown`
54
- - `suggest`
55
- - `paths`
56
- - `enabled` — Enable/disable path suggestions.
57
-
58
- - `occurrencesHighlight`
59
- - `enabled` — Enable/disable highlighting of link occurrences.
60
-
61
- - `validate`
62
- - `enabled` — Enable/disable all validation.
63
- - `referenceLinks`
64
- - `enabled` — Enable/disable validation of reference links: `[text][ref]`
65
- - `fragmentLinks`
66
- - `enabled` — Enable/disable validation of links to fragments in the current files: `[text](#head)`
67
- - `fileLinks`
68
- - `enabled` — Enable/disable validation of links to file in the workspace.
69
- - `markdownFragmentLinks` — Enable/disable validation of links to headers in other Markdown files. Use `inherit` to inherit the `fragmentLinks` setting.
70
- - `ignoredLinks` — Array of glob patterns for files that should not be validated.
71
- - `unusedLinkDefinitions`
72
- - `enabled` — Enable/disable validation of unused link definitions.
73
- - `duplicateLinkDefinitions`
74
- - `enabled` — Enable/disable validation of duplicated link definitions.
75
-
76
- ### Custom requests
77
-
78
- To support all of the features of the language server, the client needs to implement a few custom request types. The definitions of these request types can be found in [`protocol.ts`](./src/protocol.ts)
79
-
80
- #### `markdown/parse`
81
-
82
- Get the tokens for a Markdown file. Clients are expected to use [Markdown-it](https://github.com/markdown-it/markdown-it) for this.
83
-
84
- We require that clients bring their own version of Markdown-it so that they can customize/extend Markdown-it.
85
-
86
- #### `markdown/fs/readFile`
87
-
88
- Read the contents of a file in the workspace.
89
-
90
- #### `markdown/fs/readDirectory`
91
-
92
- Read the contents of a directory in the workspace.
93
-
94
- #### `markdown/fs/stat`
95
-
96
- Check if a given file/directory exists in the workspace.
97
-
98
- #### `markdown/fs/watcher/create`
99
-
100
- Create a file watcher. This is needed for diagnostics support.
101
-
102
- #### `markdown/fs/watcher/delete`
103
-
104
- Delete a previously created file watcher.
105
-
106
- #### `markdown/findMarkdownFilesInWorkspace`
107
-
108
- Get a list of all markdown files in the workspace.
109
-
110
- ## Contribute
111
-
112
- The source code of the Markdown language server can be found in the [VSCode repository](https://github.com/microsoft/vscode) at [extensions/markdown-language-features/server](https://github.com/microsoft/vscode/tree/master/extensions/markdown-language-features/server).
113
-
114
- File issues and pull requests in the [VSCode GitHub Issues](https://github.com/microsoft/vscode/issues). See the document [How to Contribute](https://github.com/microsoft/vscode/wiki/How-to-Contribute) on how to build and run from source.
115
-
116
- Most of the functionality of the server is located in libraries:
117
-
118
- - [vscode-markdown-languageservice](https://github.com/microsoft/vscode-markdown-languageservice) contains the implementation of all features as a reusable library.
119
- - [vscode-languageserver-node](https://github.com/microsoft/vscode-languageserver-node) contains the implementation of language server for NodeJS.
120
-
121
- Help on any of these projects is very welcome.
122
-
123
- ## Code of Conduct
124
-
125
- This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
126
-
127
- ## License
128
-
129
- Copyright (c) Microsoft Corporation. All rights reserved.
130
-
131
- Licensed under the [MIT](https://github.com/microsoft/vscode/blob/master/LICENSE.txt) License.
@@ -1 +0,0 @@
1
- {"name":"vscode-markdown-languageserver","description":"Markdown language server","version":"0.5.0-alpha.6","author":"Microsoft Corporation","license":"MIT","engines":{"node":"*"},"main":"./out/node/main","browser":"./dist/browser/main","files":["dist/**/*.js","out/**/*.js"],"dependencies":{"@vscode/l10n":"^0.0.11","vscode-languageserver":"^8.1.0","vscode-languageserver-textdocument":"^1.0.8","vscode-languageserver-types":"^3.17.3","vscode-markdown-languageservice":"^0.5.0-alpha.6","vscode-uri":"^3.0.7"},"devDependencies":{"@types/node":"20.x"},"scripts":{"compile":"gulp compile-extension:markdown-language-features-server","prepublishOnly":"npm run compile","watch":"gulp watch-extension:markdown-language-features-server","compile-web":"npx webpack-cli --config extension-browser.webpack.config --mode none","watch-web":"npx webpack-cli --config extension-browser.webpack.config --mode none --watch --info-verbosity verbose"}}
@@ -1,35 +0,0 @@
1
- name: $(Date:yyyyMMdd)$(Rev:.r)
2
-
3
- trigger: none
4
- pr: none
5
-
6
- resources:
7
- repositories:
8
- - repository: templates
9
- type: github
10
- name: microsoft/vscode-engineering
11
- ref: main
12
- endpoint: Monaco
13
-
14
- parameters:
15
- - name: publishPackage
16
- displayName: Publish vscode-markdown-languageserver
17
- type: boolean
18
- default: false
19
-
20
- extends:
21
- template: azure-pipelines/npm-package/pipeline.yml@templates
22
- parameters:
23
- npmPackages:
24
- - name: vscode-markdown-languageserver
25
- workingDirectory: extensions/markdown-language-features/server
26
-
27
- buildSteps:
28
- - script: yarn install
29
- displayName: Install dependencies
30
-
31
- - script: gulp compile-extension:markdown-language-features-server
32
- displayName: Compile
33
-
34
- publishPackage: ${{ parameters.publishPackage }}
35
- packagePlatform: 'Windows'
@@ -1,80 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- *--------------------------------------------------------------------------------------------*/
5
-
6
- interface BaseMessage {
7
- readonly source: string;
8
- }
9
-
10
- export namespace FromWebviewMessage {
11
-
12
- export interface CacheImageSizes extends BaseMessage {
13
- readonly type: 'cacheImageSizes';
14
- readonly imageData: ReadonlyArray<{ id: string; width: number; height: number }>;
15
- }
16
-
17
- export interface RevealLine extends BaseMessage {
18
- readonly type: 'revealLine';
19
- readonly line: number;
20
- }
21
-
22
- export interface DidClick extends BaseMessage {
23
- readonly type: 'didClick';
24
- readonly line: number;
25
- }
26
-
27
- export interface ClickLink extends BaseMessage {
28
- readonly type: 'openLink';
29
- readonly href: string;
30
- }
31
-
32
- export interface ShowPreviewSecuritySelector extends BaseMessage {
33
- readonly type: 'showPreviewSecuritySelector';
34
- }
35
-
36
- export interface PreviewStyleLoadError extends BaseMessage {
37
- readonly type: 'previewStyleLoadError';
38
- readonly unloadedStyles: readonly string[];
39
- }
40
-
41
- export type Type =
42
- | CacheImageSizes
43
- | RevealLine
44
- | DidClick
45
- | ClickLink
46
- | ShowPreviewSecuritySelector
47
- | PreviewStyleLoadError
48
- ;
49
- }
50
-
51
- export namespace ToWebviewMessage {
52
- export interface OnDidChangeTextEditorSelection extends BaseMessage {
53
- readonly type: 'onDidChangeTextEditorSelection';
54
- readonly line: number;
55
- }
56
-
57
- export interface UpdateView extends BaseMessage {
58
- readonly type: 'updateView';
59
- readonly line: number;
60
- readonly source: string;
61
- }
62
-
63
- export interface UpdateContent extends BaseMessage {
64
- readonly type: 'updateContent';
65
- readonly content: string;
66
- }
67
-
68
- export interface CopyImageContent extends BaseMessage {
69
- readonly type: 'copyImage';
70
- readonly source: string;
71
- readonly id: string;
72
- }
73
-
74
- export type Type =
75
- | OnDidChangeTextEditorSelection
76
- | UpdateView
77
- | UpdateContent
78
- | CopyImageContent
79
- ;
80
- }