From 8491948ca70acd1f691975c2d1a5d622a699d580 Mon Sep 17 00:00:00 2001 From: Raoul Wols Date: Sun, 10 Nov 2019 10:42:36 +0100 Subject: [PATCH] Put the context menu into a separate child menu --- Menus/Context.sublime-menu | 78 ++++++++++++++++++++------------------ 1 file changed, 41 insertions(+), 37 deletions(-) diff --git a/Menus/Context.sublime-menu b/Menus/Context.sublime-menu index 5abf38a89..f86610d21 100644 --- a/Menus/Context.sublime-menu +++ b/Menus/Context.sublime-menu @@ -1,40 +1,44 @@ [ - { "caption": "-", "id": "lsp" }, { - "command": "lsp_symbol_references", - "caption": "Find Symbol References" - }, - { - "command": "lsp_symbol_definition", - "caption": "Go To Symbol Definition" - }, - { - "command": "lsp_symbol_type_definition", - "caption": "Go To Symbol Type Definition" - }, - { - "command": "lsp_symbol_declaration", - "caption": "Go To Symbol Declaration" - }, - { - "command": "lsp_symbol_implementation", - "caption": "Go To Symbol Implementation" - }, - { - "command": "lsp_symbol_rename", - "caption": "Rename Symbol" - }, - { - "command": "lsp_code_actions", - "caption": "Code Actions" - }, - { - "command": "lsp_format_document", - "caption": "Format Document" - }, - { - "command": "lsp_format_document_range", - "caption": "Format Selection" - }, - { "caption": "-", "id": "lsp_end"} + "caption": "LSP", + "children": + [ + { + "command": "lsp_symbol_references", + "caption": "Find Symbol References" + }, + { + "command": "lsp_symbol_definition", + "caption": "Go To Symbol Definition" + }, + { + "command": "lsp_symbol_type_definition", + "caption": "Go To Symbol Type Definition" + }, + { + "command": "lsp_symbol_declaration", + "caption": "Go To Symbol Declaration" + }, + { + "command": "lsp_symbol_implementation", + "caption": "Go To Symbol Implementation" + }, + { + "command": "lsp_symbol_rename", + "caption": "Rename Symbol" + }, + { + "command": "lsp_code_actions", + "caption": "Code Actions" + }, + { + "command": "lsp_format_document", + "caption": "Format Document" + }, + { + "command": "lsp_format_document_range", + "caption": "Format Selection" + } + ] + } ]