mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Remove enableEnhancedTyping and type overriding infrastructure.
This commit is contained in:
parent
58c007674b
commit
b70ad7e5f3
4 changed files with 1 additions and 41 deletions
|
@ -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' });
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue