From d81a99c6946753a5fc1220a09d2ae210e9e7559c Mon Sep 17 00:00:00 2001 From: Ariel Davis Date: Thu, 31 Aug 2023 19:15:35 -0700 Subject: [PATCH] Swap --- crates/tests/src/repo.rs | 4 ++-- docs/manual.md | 38 +++++++++++++++++++------------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/crates/tests/src/repo.rs b/crates/tests/src/repo.rs index d1131e3db..771009a22 100644 --- a/crates/tests/src/repo.rs +++ b/crates/tests/src/repo.rs @@ -334,9 +334,9 @@ impl fmt::Display for ConfigProperty<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { writeln!(f, "#### `{}`", self.name)?; writeln!(f)?; - writeln!(f, "{}", self.desc)?; - writeln!(f)?; self.type_and_default.fmt(f)?; + writeln!(f)?; + writeln!(f, "{}", self.desc)?; Ok(()) } } diff --git a/docs/manual.md b/docs/manual.md index b6565debb..6c73209df 100644 --- a/docs/manual.md +++ b/docs/manual.md @@ -433,10 +433,6 @@ Millet has VS Code specific settings, which are stored as [JSON][]. You may need #### `millet.format.engine` -**WARNING: THE FORMATTER IS HIGHLY EXPERIMENTAL. IT MAY IRREVOCABLY DESTROY SOME OR ALL OF YOUR CODE.** - -How to [format](#formatter) open SML files on save. - - Type: `string` - Default: `"none"` - Valid values: @@ -444,9 +440,11 @@ How to [format](#formatter) open SML files on save. - `"naive"`: Naive formatting. - `"smlfmt"`: Formatting provided by [`smlfmt`](https://github.com/shwestrick/smlfmt), which must be installed in your `$PATH`. -#### `millet.server.diagnostics.ignore` +**WARNING: THE FORMATTER IS HIGHLY EXPERIMENTAL. IT MAY IRREVOCABLY DESTROY SOME OR ALL OF YOUR CODE.** -What [diagnostics](#inline-diagnostics) to ignore. +How to [format](#formatter) open SML files on save. + +#### `millet.server.diagnostics.ignore` - Type: `string` - Default: `"after-syntax"` @@ -455,50 +453,52 @@ What [diagnostics](#inline-diagnostics) to ignore. - `"after-syntax"`: If there are syntax diagnostics (lex error, parse error, etc), send only those, and ignore e.g. statics diagnostics. - `"all"`: Ignore all diagnostics. -#### `millet.server.diagnostics.moreInfoHint.enable` +What [diagnostics](#inline-diagnostics) to ignore. -Show a hint on diagnostic messages about clicking the error code number for more information. +#### `millet.server.diagnostics.moreInfoHint.enable` - Type: `boolean` - Default: `true` -#### `millet.server.diagnostics.onChange.enable` +Show a hint on diagnostic messages about clicking the error code number for more information. -Send diagnostics when file contents change before saving. +#### `millet.server.diagnostics.onChange.enable` - Type: `boolean` - Default: `false` -#### `millet.server.enable` +Send diagnostics when file contents change before saving. -Enable the language server. +#### `millet.server.enable` - Type: `boolean` - Default: `true` -#### `millet.server.fileSystemWatcher.enable` +Enable the language server. -Use a file system watcher to send events when files change, if one is available. +#### `millet.server.fileSystemWatcher.enable` - Type: `boolean` - Default: `true` -#### `millet.server.hover.token.enable` +Use a file system watcher to send events when files change, if one is available. -Show information about tokens on hover. +#### `millet.server.hover.token.enable` - Type: `boolean` - Default: `true` +Show information about tokens on hover. + #### `millet.server.path` +- Type: `string` +- Default: `""` + Path to the `millet-ls` executable. When set to the empty string `""` (the default), use the path to the one that's pre-built and bundled with the extension. -- Type: `string` -- Default: `""` - ### Language server initialization