Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/commands.ts')
-rw-r--r--editors/code/src/commands.ts24
1 files changed, 0 insertions, 24 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index a21b304bbd..b9ad525e36 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -321,30 +321,6 @@ export function serverVersion(ctx: Ctx): Cmd {
};
}
-export function toggleInlayHints(_ctx: Ctx): Cmd {
- return async () => {
- const config = vscode.workspace.getConfiguration("editor.inlayHints", {
- languageId: "rust",
- });
-
- const value = config.get("enabled");
- let stringValue;
- if (typeof value === "string") {
- stringValue = value;
- } else {
- stringValue = value ? "on" : "off";
- }
- const nextValues: Record<string, string> = {
- on: "off",
- off: "on",
- onUnlessPressed: "offUnlessPressed",
- offUnlessPressed: "onUnlessPressed",
- };
- const nextValue = nextValues[stringValue] ?? "on";
- await config.update("enabled", nextValue, vscode.ConfigurationTarget.Global);
- };
-}
-
// Opens the virtual file that will show the syntax tree
//
// The contents of the file come from the `TextDocumentContentProvider`