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';
77import * as os from 'os' ;
88import * as path from 'path' ;
99import * as vscodeAdapter from './vscodeAdapter' ;
10+ import * as vscode from 'vscode' ;
1011import { RazorLanguageServerOptions } from './razorLanguageServerOptions' ;
1112import { RazorLogger } from './razorLogger' ;
1213import { 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 ;
You can’t perform that action at this time.
0 commit comments