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 593
593
"command" : " robotcode.debugCurrentFile" ,
594
594
"enablement" : " resourceLangId == robotframework && resourceExtname == .robot || explorerResourceIsFolder" ,
595
595
"icon" : " $(debug-alt)"
596
+ },
597
+ {
598
+ "title" : " Restart Language Servers" ,
599
+ "category" : " robotcode" ,
600
+ "command" : " robotcode.restartLanguageServers"
596
601
}
597
602
],
598
603
"menus" : {
Original file line number Diff line number Diff line change @@ -125,7 +125,8 @@ export class LanguageClientsManager {
125
125
} ,
126
126
} ,
127
127
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 ( ) )
129
130
) ;
130
131
}
131
132
You can’t perform that action at this time.
0 commit comments