diff options
author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-03-27 14:14:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 14:14:27 -0700 |
commit | 2dc37f411e8947d3c20cd93d1fa1937edc239499 (patch) | |
tree | 0ecb10fb3cc0e9085130c3683155529c5de74e84 /cli/lsp/diagnostics.rs | |
parent | 68fecc6de4b2e6556adeb2730798bf42017c4be6 (diff) |
feat(task): Task description in the form of comments (#23101)
Closes #22786.
TLDR;
```jsonc
{
"tasks": {
// Some comment
//
// describing what the task does
"dev": "deno run -A --watch main.ts"
}
}
```
```bash
deno task
```

Diffstat (limited to 'cli/lsp/diagnostics.rs')
-rw-r--r-- | cli/lsp/diagnostics.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs index 03d962741..e518f4c6e 100644 --- a/cli/lsp/diagnostics.rs +++ b/cli/lsp/diagnostics.rs @@ -1617,7 +1617,12 @@ mod tests { let config = Config::new_with_roots([resolve_url("file:///").unwrap()]); if let Some((base_url, json_string)) = maybe_import_map { let base_url = resolve_url(base_url).unwrap(); - let config_file = ConfigFile::new(json_string, base_url).unwrap(); + let config_file = ConfigFile::new( + json_string, + base_url, + &deno_config::ParseOptions::default(), + ) + .unwrap(); config.tree.inject_config_file(config_file).await; } StateSnapshot { |