Skip to content

Commit

Permalink
feat: shorter message if runner is started but files have errors (#912)
Browse files Browse the repository at this point in the history
Closes #910

### Summary of Changes

Shorten the message in the error popup if some files in the workspace
have errors and the runner is started:


![image](https://github.com/Safe-DS/DSL/assets/2501322/8df4e167-5b13-4bfc-84c6-be586e1428bb)
  • Loading branch information
lars-reimann authored Feb 22, 2024
1 parent e57f886 commit b611b44
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/safe-ds-vscode/src/extension/mainClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as path from 'node:path';
import * as vscode from 'vscode';
import type { LanguageClientOptions, ServerOptions } from 'vscode-languageclient/node.js';
import { LanguageClient, TransportKind } from 'vscode-languageclient/node.js';
import { ast, createSafeDsServicesWithBuiltins, SafeDsServices, messages } from '@safe-ds/lang';
import { ast, createSafeDsServicesWithBuiltins, messages, SafeDsServices } from '@safe-ds/lang';
import { NodeFileSystem } from 'langium/node';
import { getSafeDSOutputChannel, initializeLog, logError, logOutput, printOutputMessage } from './output.js';
import crypto from 'crypto';
Expand Down Expand Up @@ -372,9 +372,7 @@ const validateDocuments = async function (
);
}
}
return `As file(s) ${errors
.map((validationInfo) => validationInfo.validatedDocument.uri.toString())
.join(', ')} has errors, the main pipeline cannot be run.`;
return 'Cannot run the main pipeline, because some files have errors.';
}
return undefined;
};
Expand Down

0 comments on commit b611b44

Please sign in to comment.