From dce8cc4089c13e52a0177c4712e2732dee577691 Mon Sep 17 00:00:00 2001 From: Barry Jaspan Date: Fri, 26 Jan 2024 10:25:01 -0500 Subject: [PATCH] Remove unnecessary import of TextDecoder from util. (#2209) ## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet Co-authored-by: Barry Jaspan --- .../cursorless-vscode/src/ide/vscode/hats/VscodeHatRenderer.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/cursorless-vscode/src/ide/vscode/hats/VscodeHatRenderer.ts b/packages/cursorless-vscode/src/ide/vscode/hats/VscodeHatRenderer.ts index c67ccc09d00..9ad15544cdb 100644 --- a/packages/cursorless-vscode/src/ide/vscode/hats/VscodeHatRenderer.ts +++ b/packages/cursorless-vscode/src/ide/vscode/hats/VscodeHatRenderer.ts @@ -24,7 +24,6 @@ import { defaultShapeAdjustments, } from "./shapeAdjustments"; import { performPr1868ShapeUpdateInit } from "./performPr1868ShapeUpdateInit"; -import { TextDecoder } from "util"; const CURSORLESS_HAT_SHAPES_SUFFIX = ".svg"; @@ -67,7 +66,7 @@ export default class VscodeHatRenderer { private lastSeenEnabledHatStyles: ExtendedHatStyleMap = {}; private hatsDirWatcherDisposable?: vscode.Disposable; private hatShapeOverrides: Record = {}; - private decoder: TextDecoder = new TextDecoder("utf-8"); + private decoder = new TextDecoder("utf-8"); constructor( private vscodeApi: VscodeApi,