File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import * as fs from 'fs';
7
7
import * as os from 'os' ;
8
8
import * as path from 'path' ;
9
9
import * as vscodeAdapter from './vscodeAdapter' ;
10
+ import * as vscode from 'vscode' ;
10
11
import { RazorLanguageServerOptions } from './razorLanguageServerOptions' ;
11
12
import { RazorLogger } from './razorLogger' ;
12
13
import { LogLevel } from './logLevel' ;
@@ -44,7 +45,9 @@ function findLanguageServerExecutable(withinDir: string) {
44
45
}
45
46
46
47
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
+ ) ;
48
51
}
49
52
50
53
return fullPath ;
You can’t perform that action at this time.
0 commit comments