diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/package.json | 7 | ||||
-rw-r--r-- | editors/code/src/net.ts | 5 |
2 files changed, 6 insertions, 6 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index af228f983..dbde37005 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -460,10 +460,13 @@ | |||
460 | "default": true, | 460 | "default": true, |
461 | "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc." | 461 | "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc." |
462 | }, | 462 | }, |
463 | "rust-analyzer.completion.enableExperimental": { | 463 | "rust-analyzer.completion.autoimport.enable": { |
464 | "type": "boolean", | 464 | "type": "boolean", |
465 | "default": true, | 465 | "default": true, |
466 | "markdownDescription": "Display additional completions with potential false positives and performance issues" | 466 | "markdownDescription": [ |
467 | "Toggles the additional completions that automatically add imports when completed.", | ||
468 | "Note that your client have to specify the `additionalTextEdits` LSP client capability to truly have this feature enabled" | ||
469 | ] | ||
467 | }, | 470 | }, |
468 | "rust-analyzer.callInfo.full": { | 471 | "rust-analyzer.callInfo.full": { |
469 | "type": "boolean", | 472 | "type": "boolean", |
diff --git a/editors/code/src/net.ts b/editors/code/src/net.ts index 9ba17b7b5..1ab21e726 100644 --- a/editors/code/src/net.ts +++ b/editors/code/src/net.ts | |||
@@ -1,7 +1,4 @@ | |||
1 | // Replace with `import fetch from "node-fetch"` once this is fixed in rollup: | 1 | import fetch from "node-fetch"; |
2 | // https://github.com/rollup/plugins/issues/491 | ||
3 | const fetch = require("node-fetch") as typeof import("node-fetch")["default"]; | ||
4 | |||
5 | import * as vscode from "vscode"; | 2 | import * as vscode from "vscode"; |
6 | import * as stream from "stream"; | 3 | import * as stream from "stream"; |
7 | import * as crypto from "crypto"; | 4 | import * as crypto from "crypto"; |