-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
5,961 additions
and
4,994 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,26 @@ | ||
# Wolfram Language Server | ||
|
||
[](http://www.wolfram.com/language/) | ||
[](https://opensource.org/licenses/MIT) | ||
|
||
 | ||
 | ||
> by [kenkangxgwe](mailto:[email protected]) and [hxianglong](https://github.com/huxianglong) | ||
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc --> | ||
**Table of Contents** | ||
|
||
- [Wolfram Language Server](#wolfram-language-server) | ||
- [Installation](#installation) | ||
- [Run the Server](#run-the-server) | ||
- [Features](#features) | ||
- [Contribute](#contribute) | ||
- [Design Principles](#design-principles) | ||
- [Todo list](#todo-list) | ||
- [Donations :dollar:](#donations-dollar) | ||
- [Footnotes](#footnotes) | ||
|
||
<!-- markdown-toc end --> | ||
|
||
**Wolfram Language Server (WLServer)** is an implementation of the Microsoft's | ||
[Language Server Protocol | ||
(LSP)](https://microsoft.github.io/language-server-protocol) for [Wolfram | ||
|
@@ -68,27 +84,25 @@ Block[{$ScriptCommandLine = Prepend[args, initfile], Quit = Function[{}, Throw[N | |
|
||
This is a good way to see the results from the unit tests. | ||
|
||
You may also specify the following `initializationOptions`. | ||
|
||
- `"theme": "dark" | "light"` For better typesetting of documentation, SVG | ||
images are used in the popup such as hovering. Since the background is | ||
transparent, this setting is to ensure the text in the images are actually | ||
visible. If you use dark themes, then choose `dark` <a name="ref2"> | ||
</a>[<sup>2</sup>](#footnote2). (Default: `dark`) | ||
|
||
## Features | ||
|
||
- *Hover:* Provide definitions for Wolfram functions and system variables, such | ||
as `String` and `$Path`. | ||
|
||
 | ||
|
||
- *Completion:* The completion is triggered by the client automatically. | ||
Currently, Wolfram functions and system variables would be displayed. | ||
|
||
- *Completion Resolve:* Further information would be provided for the items in | ||
the list. | ||
|
||
 | ||
|
||
- *Diagnostics:* Syntax error would be underlined. However, the specific syntax | ||
error is not supported at the moment. | ||
|
||
 | ||
|
||
This is an early release, so more features are on the way. Syntax highlight is | ||
NOT supported according to the design of LSP, but there are already some good | ||
|
@@ -126,10 +140,6 @@ It will be nice if you want to make a contribution to the following topic. | |
* It will be helpful to implement a stdio channel, so that the Mathematica | ||
earlier than 11.2 will also be supported. | ||
|
||
* Since we embed SVG image in the `markupContent[]` and VS Code client cannot | ||
resize the popup window according to its size, it is hard to tweak the image | ||
width and the font size on every machine. We are looking for a better solution. | ||
|
||
* More editor clients are needed. You can feel free to open a repository and | ||
create a pull request to add the clients in README.md once your client is released. | ||
|
||
|
@@ -151,17 +161,10 @@ thanks in advance :smile:. | |
- Paypal: [email protected] | ||
- Alipay (With QRCode): 13916018006 | ||
 | ||
QRCode](https://raw.githubusercontent.com/kenkangxgwe/lsp-wl/master/images/alipay.jpg) | ||
|
||
## Footnotes | ||
|
||
<a name="footnote1"> </a> **[1]** `SocketListen[]` is used for server-client | ||
communication, which is introduced since 11.2. We plan to support stdio for | ||
better compatibility [^](#ref1) | ||
|
||
<a name="footnote2"> </a> **[2]** This reminds me of a joke making fun of | ||
Project Managers. A programmer, who cannot put up with endless unreasonable | ||
requests from his project manager, complained about one stupid task from him | ||
online, which is to automatically change the theme of the app with the conion, 'Add an option for | ||
users to choose when launching the app, what is the color of your cell phone | ||
protector. Then change the them accordingly.' [^](#ref2) | ||
better compatibility. [^](#ref1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.