Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/commands/xmlToUdl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ export async function previewXMLAsUDL(textEditor: vscode.TextEditor, auto = fals
if (notIsfs(uri) && uri.path.toLowerCase().endsWith("xml") && textEditor.document.lineCount > 2) {
if (exportHeader.test(textEditor.document.lineAt(1).text)) {
const api = new AtelierAPI(uri);
if (!api.active) return;
if (!api.active) {
vscode.window.showErrorMessage(
"Unsuccessful connection to the server. Please check your server connection settings.",
"Dismiss"
);
return;
}
try {
// Convert the file
const udlDocs: { name: string; content: string[] }[] = await api
Expand Down