Skip to content

Commit ea0bf01

Browse files
committed
Make dialogs modal
1 parent 9deed49 commit ea0bf01

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/hlsBinaries.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,12 @@ export async function findHaskellLanguageServer(
250250
if (manageHLS !== 'GHCup' && (!context.globalState.get('pluginInitialized') as boolean | null)) {
251251
const promptMessage = 'How do you want the extension to manage/discover HLS and the relevant toolchain?';
252252

253-
const popup = window.showInformationMessage(promptMessage, 'Automatically via GHCup', 'Manually via PATH');
253+
const popup = window.showInformationMessage(
254+
promptMessage,
255+
{ modal: true },
256+
'Automatically via GHCup',
257+
'Manually via PATH'
258+
);
254259

255260
const decision = (await popup) || null;
256261
if (decision === 'Automatically via GHCup') {
@@ -403,6 +408,7 @@ export async function findHaskellLanguageServer(
403408
if (toInstall.length > 0) {
404409
const decision = await window.showInformationMessage(
405410
`Need to download ${toInstall.join(', ')}, continue?`,
411+
{ modal: true },
406412
'Yes',
407413
'No',
408414
"Yes, don't ask again"

0 commit comments

Comments
 (0)