File tree Expand file tree Collapse file tree
i18n/translations/views/prompt/handlers
views/prompt/backend/message-handlers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11export const translations = {
2+ 'views.prompt.handlers.handle-run-browser.forward-port' : {
3+ en : 'Forward port' ,
4+ pl : 'Przekieruj port' ,
5+ 'zh-cn' : '转发端口' ,
6+ ja : 'ポートを転送' ,
7+ 'zh-tw' : '轉發通訊埠' ,
8+ de : 'Port weiterleiten' ,
9+ es : 'Reenviar puerto' ,
10+ fr : 'Transférer le port' ,
11+ 'pt-br' : 'Encaminhar porta' ,
12+ ru : 'Переадресовать порт' ,
13+ ko : '포트 포워딩' ,
14+ it : 'Inoltra porta' ,
15+ tr : 'Bağlantı noktasını yönlendir' ,
16+ cs : 'Přesměrovat port' ,
17+ hu : 'Port továbbítása' ,
18+ bg : 'Пренасочване на порт'
19+ } ,
220 'views.prompt.handlers.handle-run-browser.remote-not-supported' : {
321 en : 'Running the browser in a remote environment is not supported.' ,
422 pl : 'Uruchamianie przeglądarki w środowisku zdalnym nie jest obsługiwane.' ,
Original file line number Diff line number Diff line change @@ -36,9 +36,20 @@ const launch_browser = (
3636
3737export const handle_run_browser = async ( ) => {
3838 if ( vscode . env . remoteName ) {
39- vscode . window . showWarningMessage (
40- t ( 'views.prompt.handlers.handle-run-browser.remote-not-supported' )
41- )
39+ const action = t ( 'views.prompt.handlers.handle-run-browser.forward-port' )
40+ vscode . window
41+ . showWarningMessage (
42+ t ( 'views.prompt.handlers.handle-run-browser.remote-not-supported' ) ,
43+ action
44+ )
45+ . then ( ( selection ) => {
46+ if ( selection === action ) {
47+ vscode . commands . executeCommand (
48+ 'codeWebChat.settings' ,
49+ 'section:web:group:remote-machines'
50+ )
51+ }
52+ } )
4253 return
4354 }
4455
You can’t perform that action at this time.
0 commit comments