File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 4809
4809
}
4810
4810
]
4811
4811
}
4812
- }
4812
+ }
Original file line number Diff line number Diff line change @@ -386,13 +386,18 @@ export class RoslynLanguageServer {
386
386
args . push ( "--telemetryLevel" , this . telemetryReporter . telemetryLevel ) ;
387
387
388
388
let childProcess : cp . ChildProcessWithoutNullStreams ;
389
+ let cpOptions : cp . SpawnOptionsWithoutStdio = {
390
+ detached : true ,
391
+ windowsHide : true
392
+ } ;
393
+
389
394
if ( serverPath . endsWith ( '.dll' ) ) {
390
395
// If we were given a path to a dll, launch that via dotnet.
391
396
const argsWithPath = [ serverPath ] . concat ( args ) ;
392
- childProcess = cp . spawn ( 'dotnet' , argsWithPath ) ;
397
+ childProcess = cp . spawn ( 'dotnet' , argsWithPath , cpOptions ) ;
393
398
} else {
394
399
// Otherwise assume we were given a path to an executable.
395
- childProcess = cp . spawn ( serverPath , args ) ;
400
+ childProcess = cp . spawn ( serverPath , args , cpOptions ) ;
396
401
}
397
402
398
403
return childProcess ;
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export class RazorDocumentManager implements IRazorDocumentManager {
50
50
// succeed. Without this, even a simple diagnostics request will fail in Roslyn if the user just opens a .razor document
51
51
// and leaves it open past the timeout.
52
52
if ( this . razorDocumentGenerationInitialized ) {
53
- await this . ensureProjectedDocumentsOpen ( document ) ;
53
+ await this . ensureDocumentAndProjectedDocumentsOpen ( document ) ;
54
54
}
55
55
56
56
return document ;
@@ -306,10 +306,6 @@ export class RazorDocumentManager implements IRazorDocumentManager {
306
306
await vscode . workspace . openTextDocument ( razorUri ) ;
307
307
}
308
308
309
- await this . ensureProjectedDocumentsOpen ( document ) ;
310
- }
311
-
312
- private async ensureProjectedDocumentsOpen ( document : IRazorDocument ) {
313
309
await vscode . workspace . openTextDocument ( document . csharpDocument . uri ) ;
314
310
await vscode . workspace . openTextDocument ( document . htmlDocument . uri ) ;
315
311
}
You can’t perform that action at this time.
0 commit comments