File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,14 @@ async function suggestAderynTomlIfProjectIsNested() {
2525 vscode . commands
2626 . executeCommand ( EditorCmd . InitConfigFile )
2727 . then ( async ( ) => {
28- // Try to restart the diagnostics server now if the `root` value is not `.`
29- if (
30- await aderynTomlAtWorkspaceRootHasNonDefaultRootValue ( )
31- ) {
32- // TODO: test this part
33- await autoStartLspClientIfRequested ( true ) ;
34- }
28+ setTimeout ( async ( ) => {
29+ // Try to restart the diagnostics server now if the `root` value is not `.`
30+ if (
31+ await aderynTomlAtWorkspaceRootHasNonDefaultRootValue ( )
32+ ) {
33+ await autoStartLspClientIfRequested ( true ) ;
34+ }
35+ } , 1000 ) ; // Assumption: After 1 second, executeCommand(EditorCmd.InitConfigFile) finishes.
3536 } ) ;
3637 }
3738 } ) ;
You can’t perform that action at this time.
0 commit comments