mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Move matching brace to new Ctx
This commit is contained in:
parent
57df9bed70
commit
5dd9edaeaf
4 changed files with 35 additions and 32 deletions
|
@ -17,6 +17,7 @@ export async function activate(context: vscode.ExtensionContext) {
|
|||
ctx = new Ctx(context);
|
||||
ctx.registerCommand('analyzerStatus', commands.analyzerStatus);
|
||||
ctx.registerCommand('collectGarbage', commands.collectGarbage);
|
||||
ctx.registerCommand('matchingBrace', commands.matchingBrace);
|
||||
|
||||
function disposeOnDeactivation(disposable: vscode.Disposable) {
|
||||
context.subscriptions.push(disposable);
|
||||
|
@ -55,10 +56,6 @@ export async function activate(context: vscode.ExtensionContext) {
|
|||
}
|
||||
|
||||
// Commands are requests from vscode to the language server
|
||||
registerCommand(
|
||||
'rust-analyzer.matchingBrace',
|
||||
commands.matchingBrace.handle,
|
||||
);
|
||||
registerCommand('rust-analyzer.joinLines', commands.joinLines.handle);
|
||||
registerCommand('rust-analyzer.parentModule', commands.parentModule.handle);
|
||||
registerCommand('rust-analyzer.run', commands.runnables.handle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue