File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,14 @@ function findLanguageServerExecutable(withinDir: string) {
54
54
}
55
55
56
56
let pathWithExtension = `${ fileName } ${ extension } ` ;
57
- if ( ! fs . existsSync ( pathWithExtension ) ) {
57
+ let fullPath = path . join ( withinDir , pathWithExtension ) ;
58
+
59
+ if ( ! fs . existsSync ( fullPath ) ) {
58
60
// We might be running a platform neutral vsix which has no executable, instead we run the dll directly.
59
61
pathWithExtension = `${ fileName } .dll` ;
62
+ fullPath = path . join ( withinDir , pathWithExtension ) ;
60
63
}
61
64
62
- const fullPath = path . join ( withinDir , pathWithExtension ) ;
63
-
64
65
if ( ! fs . existsSync ( fullPath ) ) {
65
66
throw new Error (
66
67
vscode . l10n . t ( "Could not find Razor Language Server executable '{0}' within directory" , fullPath )
You can’t perform that action at this time.
0 commit comments