Remove enableEnhancedTyping and type overriding infrastructure.

This commit is contained in:
Gregoire Geis 2020-02-03 20:24:50 +01:00
parent 58c007674b
commit b70ad7e5f3
4 changed files with 1 additions and 41 deletions

View file

@ -26,17 +26,9 @@ async function handleKeypress(ctx: Ctx) {
return true;
}
export function onEnterOverride(ctx: Ctx): Cmd {
return async (event: { text: string }) => {
if (event.text === '\n') {
handleKeypress(ctx);
}
};
}
export function onEnter(ctx: Ctx): Cmd {
return async () => {
if (handleKeypress(ctx)) return;
if (await handleKeypress(ctx)) return;
await vscode.commands.executeCommand('default:type', { text: '\n' });
};