Skip to content
Snippets Groups Projects

Minor code smell fix nr2 (issue #16)

Merged Miklos Magyari requested to merge smell2 into main
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
+ 3
3
@@ -34,20 +34,20 @@ export class Modal {
}
public static async failedToParseTpd(tpd: Uri, reason: string) {
const {base, dir} = path.parse(tpd.fsPath);
const { base } = path.parse(tpd.fsPath);
const header = 'Activating invalid TPD';
const description = `Failed to parse tpd: ${base}\n${reason}`;
const options: MessageOptions = { detail: description, modal: true};
await window.showErrorMessage(header, options);
}
public static async invalidLogFilePath(filePath: String) {
public static async invalidLogFilePath(filePath: string) {
const header = `Invalid log file path: ${filePath}`;
const description = `Please set a valid absolute path to "logDir" in settings.\n\n"logs/titan-languageserver-java.log" can be found in the Titan extension source folder.`;
await window.showWarningMessage(header, {detail: description, modal: true});
}
public static async featureIsNotAvailable(featureName: String, reason: String = "The language server is not initiated.") {
public static async featureIsNotAvailable(featureName: string, reason: string = "The language server is not initiated.") {
const message = `${featureName} is not available now. Reason: ${reason}`;
await window.showWarningMessage(message);
}
Loading