Skip to content

Commit 9517c53

Browse files
committed
added warning for selecting variants
1 parent 634958a commit 9517c53

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/commands/showPanel.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ async function handleMessage(
9292
_.set(info, `["${uri}"].chapter`, message.chapter ?? 1);
9393
context.globalState.update("info", info);
9494
client.sendRequest("source/publishInfo", info);
95+
96+
if (message.variant !== "default") {
97+
vscode.window.showInformationMessage(`The Language Server does not support any variants, the
98+
Language Server will use Source §${message.chapter}, but it is not guaranteed to be accurate.`)
99+
}
100+
101+
95102
break;
96103
}
97104
// case MessageTypeNames.Text:

0 commit comments

Comments
 (0)