diff options
| author | Tetsuharu Ohzeki <tetsuharu.ohzeki@gmail.com> | 2023-07-10 23:03:08 +0900 |
|---|---|---|
| committer | Tetsuharu Ohzeki <tetsuharu.ohzeki@gmail.com> | 2023-07-10 23:13:36 +0900 |
| commit | 444bc5b3ba366d2eab252e2c4f5c956a5e21df58 (patch) | |
| tree | ecd03d738a3775eff3710801419bd1a29c696714 /editors/code/src | |
| parent | a66b7e3eba90690ed2860125c7d47932fddaff22 (diff) | |
| download | rust-444bc5b3ba366d2eab252e2c4f5c956a5e21df58.tar.gz rust-444bc5b3ba366d2eab252e2c4f5c956a5e21df58.zip | |
editor/code: Enable TypeScript's `--useUnknownInCatchVariables` option
see: https://www.typescriptlang.org/tsconfig#useUnknownInCatchVariables
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/commands.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts index 17202e5345a..94ec5e99c6a 100644 --- a/editors/code/src/commands.ts +++ b/editors/code/src/commands.ts @@ -373,7 +373,7 @@ export function ssr(ctx: CtxInit): Cmd { selections, }); } catch (e) { - return e.toString(); + return String(e); } return null; }, @@ -1156,7 +1156,7 @@ export function viewMemoryLayout(ctx: CtxInit): Cmd { <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> - <style> + <style> * { box-sizing: border-box; } |
