summaryrefslogtreecommitdiffstats
path: root/test/clangd/test-uri-windows.test
blob: 381c48fafc0381b7f93ff55a9cd7811b2938d397 (plain)
1
2
3
4
5
6
7
8
9
10
11
# RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s
# REQUIRES: windows-gnu || windows-msvc
# Test authority-less URI
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
---
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///foo.c","languageId":"c","version":1,"text":"void main() {}"}}}
# CHECK:    "uri": "file:///C:/clangd-test/foo.c"
---
{"jsonrpc":"2.0","id":5,"method":"shutdown"}
---
{"jsonrpc":"2.0","method":"exit"}