-
Notifications
You must be signed in to change notification settings - Fork 0
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
11 changed files
with
136 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "Sphinx: Render docs" | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build HTML | ||
uses: ammaraskar/sphinx-action@master | ||
with: | ||
docs-folder: "diplomat-lsp-src/" | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: html-docs | ||
path: diplomat-lsp-src/build/html | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: github.ref == 'refs/heads/master' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: diplomat-lsp-src/build/html | ||
destination_dir: diplomat-lsp/ |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
build/* |
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
furo==2024.7.18 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Custom Language Server commands | ||
=============================== | ||
|
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Diplomat Language Server | ||
======================== | ||
|
||
The Diplomat language server is a full C++ implementation of the *Language Server Protocol* (LSP) targetting SystemVerilog. | ||
It relies on `slang <https://github.com/MikePopoloski/slang>`_ to perform code analysis and elaboration. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Content: | ||
|
||
standard_lsp | ||
custom_lsp |
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
Supported standard LSP commands | ||
=============================== | ||
|
||
The commands provided here are standard commands from the `Language Server Protocol specification <https://microsoft.github.io/language-server-protocol/>`_ | ||
The server will reply accordingly to the standard to the requests listed bellow. | ||
Other request will be ignored. | ||
|
||
As of today, the language server implements the standard version 3.17 | ||
|
||
``initialize`` request | ||
---------------------- | ||
See `the LSP specification for initialize <https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#initialize>`_ | ||
|
||
``initialized`` notification | ||
------------------------------ | ||
See `the LSP specification for initialized <https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#initialized>`_ | ||
|
||
Upon receiving this notification, the language server will request some configurations if the ``workspace/configuration`` request is | ||
supported by the client. | ||
|
||
``exit`` notification | ||
---------------------- | ||
See `the LSP specification for exit <https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#exit>`_ | ||
|
||
``shutdown`` request | ||
---------------------- | ||
See `the LSP specification for shutdown <https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#shutdown>`_ | ||
|
||
``textDocument/didOpen`` notification | ||
----------------------------------------------------- | ||
|
||
|
||
``textDocument/didSave`` notification | ||
----------------------------------------------------- | ||
See `the LSP specification for textDocument/didSave <https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_didSave>`_ | ||
|
||
Upon receiving this notification, the language server will re-run a workspace analysis and refresh all diagnostics. | ||
|
||
|
||
``textDocument/definition`` request | ||
----------------------------------------------------- | ||
|
||
|
||
``textDocument/references`` request | ||
----------------------------------------------------- | ||
|
||
|
||
``textDocument/rename`` request | ||
----------------------------------------------------- | ||
|
||
|
||
``textDocument/formatting`` request | ||
----------------------------------------------------- | ||
Invoke the internal formatter. | ||
|
||
.. warning:: This is under development and the result may not be of great quality. | ||
|
||
.. warning:: The range formating is not available and the file shall be saved before running this command. | ||
|
||
``workspace/didChangeWorkspaceFolders`` notification | ||
----------------------------------------------------- | ||
|
||
``textDocument/publishDiagnostics`` notification | ||
----------------------------------------------------- | ||
See `the LSP specification for textDocument/publishDiagnostics <https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_publishDiagnostics>`_ | ||
|
||
The ``textDocument/publishDiagnostics`` notification is actually sent by the server in order to provide the diagnostic results after a successful workspace analysis | ||
|
||
``workspace/executeCommand`` notification | ||
----------------------------------------------------- | ||
|
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Diplomat VSCode extension | ||
========================= | ||
|
||
The Diplomat VSCode extension (*Diplomat Client*, sometimes refered as *Diplomat Host*) | ||
is the provided client for interfacing with Diplomat Server. | ||
|
||
It features: | ||
* Workspace analysis using the `slang <https://github.com/MikePopoloski/slang>`_ open source SystemVerilog compiler. | ||
* Error checking and elaboration-level linting | ||
* Jump to definition/reference across files | ||
* Syntax coloration | ||
* Rename symbol | ||
* Assisted instanciation of any module found in the workspace |