dart-sdk/third_party
Danny Tuppeny 2b713a9e4e [analysis_server] Add experimental TextDocumentContentProvider support for virtual documents
This adds support for serving the contents of virtual files to the client over a custom LSP protocol (based on the VS Code API of the same name). This is currently a custom Dart protocol but hopefully very close to something that could become standard LSP in future.

If the client advertises support for this feature (currently with an experimental flag "supportsDartTextDocumentContentProviderEXP1") we will return the set of URI schemes we can provide content for (currently "dart-macro-file"). Additionally, we will map internal analyzer macro paths (like `/foo/bar.macro.dart`) onto that scheme (`dart-macro-file://foo/bar.dart`) instead of standard `file://` URIs.

Overlays are not created for these kinds of files (because they would override the server-generated content).

Some language functionality "just works" because we can get resolved ASTs for the macro files (and many LSP features operate on these), but more testing (and tests) are required.

Included are tests for the virtual file methods (and events) and Go-to-Definition. Tests for other features are outstanding.

Change-Id: I2056699652873a12b730f565b823f187f883a1ee
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345420
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2024-01-18 17:34:43 +00:00
..
babel
binary_size [infra] Give VM engineers OWNERS over double-conversion and binary_size. 2023-11-22 08:38:49 +00:00
binaryen [dart2wasm] Switch to final GC encodings & Roll Chrome 119 + D8 2023-10-13 17:09:19 +00:00
d3 [build] Move runtime/third_party into third_party proper 2023-11-07 16:13:11 +00:00
d8 Include ARM64 when uploading d8. 2023-11-21 17:15:20 +00:00
devtools
double-conversion [infra] Give VM engineers OWNERS over double-conversion and binary_size. 2023-11-22 08:38:49 +00:00
fallback_root_certificates Check in //third_party/root_certificates. 2023-12-18 19:40:36 +00:00
firefox_jsshell
mdn/browser-compat-data
pkg [analysis_server] Add experimental TextDocumentContentProvider support for virtual documents 2024-01-18 17:34:43 +00:00
requirejs
.gitignore Check in //third_party/root_certificates. 2023-12-18 19:40:36 +00:00
clang.tar.gz.sha1
OWNERS Owners file for pkg/native_assets_builder.status 2024-01-18 11:05:05 +00:00