blob: 7606af8d0cb08c44e0c6ac02aab6f8b1aa27aa74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import * as vscode from 'vscode';
import { Ctx, Cmd } from '../ctx';
export function toggleInlayHints(ctx: Ctx): Cmd {
return async () => {
await vscode
.workspace
.getConfiguration(`${ctx.config.rootSection}.inlayHints`)
.update('enable', !ctx.config.inlayHints.enable, vscode.ConfigurationTarget.Workspace);
};
}
|