@@ -33,6 +33,7 @@ import {
3333 ShowMessageNotification ,
3434 ShowMessageRequest ,
3535 ShowDocumentRequest ,
36+ ShowOpenDialogRequestType ,
3637 openTabRequestType ,
3738 openFileDiffNotificationType ,
3839 selectWorkspaceItemRequestType ,
@@ -57,6 +58,7 @@ import {
5758 activeEditorChangedNotificationType ,
5859 onPinnedContextAddNotificationType ,
5960 onPinnedContextRemoveNotificationType ,
61+ openFileDialogRequestType ,
6062} from '../protocol'
6163import { createConnection } from 'vscode-languageserver/browser'
6264import {
@@ -190,6 +192,7 @@ export const baseRuntime = (connections: { reader: MessageReader; writer: Messag
190192 onTabBarAction : handler => lspConnection . onRequest ( tabBarActionRequestType . method , handler ) ,
191193 onPromptInputOptionChange : handler =>
192194 lspConnection . onNotification ( promptInputOptionChangeNotificationType . method , handler ) ,
195+ onOpenFileDialog : handler => lspConnection . onRequest ( openFileDialogRequestType . method , handler ) ,
193196 onRuleClick : handler => lspConnection . onRequest ( ruleClickRequestType . method , handler ) ,
194197 }
195198
@@ -258,6 +261,7 @@ export const baseRuntime = (connections: { reader: MessageReader; writer: Messag
258261 showMessageRequest : params => lspConnection . sendRequest ( ShowMessageRequest . method , params ) ,
259262 showDocument : params => lspConnection . sendRequest ( ShowDocumentRequest . method , params ) ,
260263 showSaveFileDialog : params => lspConnection . sendRequest ( ShowSaveFileDialogRequestType . method , params ) ,
264+ showOpenDialog : params => lspConnection . sendRequest ( ShowOpenDialogRequestType . method , params ) ,
261265 } ,
262266 publishDiagnostics : params => lspConnection . sendNotification ( PublishDiagnosticsNotification . method , params ) ,
263267 sendProgress : < P > ( type : ProgressType < P > , token : ProgressToken , value : P ) => {
0 commit comments