From 6c1dc2f26e633358d4f8b95f29443902bca6d5c4 Mon Sep 17 00:00:00 2001 From: tshino Date: Wed, 17 Nov 2021 22:10:22 +0900 Subject: [PATCH] Update DESIGN.md --- DESIGN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESIGN.md b/DESIGN.md index ea206194..7fbad1cc 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -28,7 +28,7 @@ On VS Code, typed characters in text editors are treated differently than other As far as I know, an extension is allowed to override the `type` built-in command using `vscode.commands.registerCommand` API. Actually, the VSCodeVim extension seems to do that to customize the behavior for typed characters. -It was not clear whether overriding the `type` command to capture typed characters is a good way for this extension. Especially if we use this extension combined with another extension that is overriding the `type` command, there will be a conflict, and probably they will not work correctly. +It was not clear whether overriding the `type` command to capture typed characters is a good way for this extension. Especially if you use this extension combined with another extension that is overriding the `type` command too, there would be a conflict, and likely they will not work correctly. So this extension took another way to capture typed characters. That is to listen to the events on changes on the text document. Basically this is possible through the `vscode.workspace.onDidChangeTextDocument` event.