()
| 1000 | } |
| 1001 | |
| 1002 | function registerLspCommands() { |
| 1003 | addCommand({ |
| 1004 | name: "formatDocument", |
| 1005 | description: "Format document (Language Server)", |
| 1006 | readOnly: false, |
| 1007 | requiresView: true, |
| 1008 | run: runLspCommand(lspFormatDocument), |
| 1009 | }); |
| 1010 | addCommand({ |
| 1011 | name: "renameSymbol", |
| 1012 | description: "Rename symbol (Language Server)", |
| 1013 | readOnly: false, |
| 1014 | requiresView: true, |
| 1015 | run: runLspCommand(acodeRenameSymbol), |
| 1016 | }); |
| 1017 | addCommand({ |
| 1018 | name: "showSignatureHelp", |
| 1019 | description: "Show signature help", |
| 1020 | readOnly: true, |
| 1021 | requiresView: true, |
| 1022 | run: runLspCommand(lspShowSignatureHelp), |
| 1023 | }); |
| 1024 | addCommand({ |
| 1025 | name: "nextSignature", |
| 1026 | description: "Next signature", |
| 1027 | readOnly: true, |
| 1028 | requiresView: true, |
| 1029 | run: runLspCommand(lspNextSignature, { silentOnMissing: true }), |
| 1030 | }); |
| 1031 | addCommand({ |
| 1032 | name: "prevSignature", |
| 1033 | description: "Previous signature", |
| 1034 | readOnly: true, |
| 1035 | requiresView: true, |
| 1036 | run: runLspCommand(lspPrevSignature, { silentOnMissing: true }), |
| 1037 | }); |
| 1038 | addCommand({ |
| 1039 | name: "jumpToDefinition", |
| 1040 | description: "Go to definition (Language Server)", |
| 1041 | readOnly: true, |
| 1042 | requiresView: true, |
| 1043 | run: runLspCommand(lspJumpToDefinition), |
| 1044 | }); |
| 1045 | addCommand({ |
| 1046 | name: "jumpToDeclaration", |
| 1047 | description: "Go to declaration (Language Server)", |
| 1048 | readOnly: true, |
| 1049 | requiresView: true, |
| 1050 | run: runLspCommand(lspJumpToDeclaration), |
| 1051 | }); |
| 1052 | addCommand({ |
| 1053 | name: "jumpToTypeDefinition", |
| 1054 | description: "Go to type definition (Language Server)", |
| 1055 | readOnly: true, |
| 1056 | requiresView: true, |
| 1057 | run: runLspCommand(lspJumpToTypeDefinition), |
| 1058 | }); |
| 1059 | addCommand({ |
no test coverage detected