diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-01-18 19:13:17 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-01-19 07:40:56 +0100 |
commit | 181943dc7378a8899353ed4b885ab5f290004677 (patch) | |
tree | d92f7642a4703bc63f9307e22b580716e83adeca /testsuite/pyunit/lsp/004errprj | |
parent | 7dc3c1979f7451eb517863a5a8c501bc6c3d0a47 (diff) | |
download | ghdl-181943dc7378a8899353ed4b885ab5f290004677.tar.gz ghdl-181943dc7378a8899353ed4b885ab5f290004677.tar.bz2 ghdl-181943dc7378a8899353ed4b885ab5f290004677.zip |
testsuite/pyunit/lsp: use absolute path and metavalue @ROOT@
Diffstat (limited to 'testsuite/pyunit/lsp/004errprj')
-rw-r--r-- | testsuite/pyunit/lsp/004errprj/cmds.json | 8 | ||||
-rw-r--r-- | testsuite/pyunit/lsp/004errprj/replies.json | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/pyunit/lsp/004errprj/cmds.json b/testsuite/pyunit/lsp/004errprj/cmds.json index 813a6cb50..63f9892fb 100644 --- a/testsuite/pyunit/lsp/004errprj/cmds.json +++ b/testsuite/pyunit/lsp/004errprj/cmds.json @@ -5,8 +5,8 @@ "method": "initialize", "params": { "processId": 2, - "rootPath": ".", - "rootUri": "file://.", + "rootPath": "@ROOT@", + "rootUri": "file://@ROOT@/004errprj", "capabilities": { "workspace": { "applyEdit": true, @@ -154,7 +154,7 @@ "trace": "off", "workspaceFolders": [ { - "uri": "file:///.", + "uri": "file://@ROOT@/004errprj", "name": "workspacename" } ] @@ -170,7 +170,7 @@ "method": "textDocument/didOpen", "params": { "textDocument": { - "uri": "file:///../files/hello.vhdl", + "uri": "file://@ROOT@/files/hello.vhdl", "languageId": "vhdl", "version": 1, "text": "\n-- Hello world program\nuse std.textio.all; -- Imports the standard textio package.\n\n-- Defines a design entity, without any ports.\nentity hello_world is\nend hello_world;\n\narchitecture behaviour of hello_world is\nbegin\n process\n variable l : line;\n begin\n write (l, String'(\"Hello world!\"));\n writeline (output, l);\n wait;\n end process;\nend behaviour;\n\n" diff --git a/testsuite/pyunit/lsp/004errprj/replies.json b/testsuite/pyunit/lsp/004errprj/replies.json index 4c7f38082..7a16646b6 100644 --- a/testsuite/pyunit/lsp/004errprj/replies.json +++ b/testsuite/pyunit/lsp/004errprj/replies.json @@ -4,7 +4,7 @@ "method": "window/showMessage", "params": { "type": 1, - "message": "json error in project file ./hdl-prj.json:1:3" + "message": "json error in project file @ROOT@/004errprj/hdl-prj.json:1:3" } }, { @@ -35,7 +35,7 @@ "jsonrpc": "2.0", "method": "textDocument/publishDiagnostics", "params": { - "uri": "file:///../files/hello.vhdl", + "uri": "file://@ROOT@/files/hello.vhdl", "diagnostics": [] } } |