File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 593593 "command" : " robotcode.debugCurrentFile" ,
594594 "enablement" : " resourceLangId == robotframework && resourceExtname == .robot || explorerResourceIsFolder" ,
595595 "icon" : " $(debug-alt)"
596+ },
597+ {
598+ "title" : " Restart Language Servers" ,
599+ "category" : " robotcode" ,
600+ "command" : " robotcode.restartLanguageServers"
596601 }
597602 ],
598603 "menus" : {
Original file line number Diff line number Diff line change @@ -125,7 +125,8 @@ export class LanguageClientsManager {
125125 } ,
126126 } ,
127127 vscode . workspace . onDidChangeWorkspaceFolders ( async ( _event ) => this . refresh ( ) ) ,
128- vscode . workspace . onDidOpenTextDocument ( async ( document ) => this . getLanguageClientForDocument ( document ) )
128+ vscode . workspace . onDidOpenTextDocument ( async ( document ) => this . getLanguageClientForDocument ( document ) ) ,
129+ vscode . commands . registerCommand ( "robotcode.restartLanguageServers" , async ( ) => await this . restart ( ) )
129130 ) ;
130131 }
131132
You can’t perform that action at this time.
0 commit comments