Skip to content

Commit de97971

Browse files
committed
Apply PR feedback
1 parent 27c5cd1 commit de97971

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/razor/src/razorLanguageServerOptionsResolver.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as fs from 'fs';
77
import * as os from 'os';
88
import * as path from 'path';
99
import * as vscodeAdapter from './vscodeAdapter';
10+
import * as vscode from 'vscode';
1011
import { RazorLanguageServerOptions } from './razorLanguageServerOptions';
1112
import { RazorLogger } from './razorLogger';
1213
import { LogLevel } from './logLevel';
@@ -44,7 +45,9 @@ function findLanguageServerExecutable(withinDir: string) {
4445
}
4546

4647
if (!fs.existsSync(fullPath)) {
47-
throw new Error(`Could not find Razor Language Server executable within directory '${withinDir}'`);
48+
throw new Error(
49+
vscode.l10n.t("Could not find Razor Language Server executable within directory '{0}'", withinDir)
50+
);
4851
}
4952

5053
return fullPath;

0 commit comments

Comments
 (0)