File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
packages/tailwindcss-language-server/src Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -941,6 +941,18 @@ export class TW {
941
941
942
942
this . lastTriggerCharacters = chars
943
943
944
+ // TODO: This might technically be a race condition if:
945
+ // - There are multiple workspace roots
946
+ // - There are multiple projects with different separators
947
+ //
948
+ // Everything up to this point is synchronous including the bailout code
949
+ // so it *should* be fine
950
+ //
951
+ // The proper fix here is to:
952
+ // - Refactor workspace folder initialization so discovery, initialization,
953
+ // file events, config watchers, etc… are all shared.
954
+ // - Remove the need for the "restart" concept in the server for as much as
955
+ // possible. Each project should be capable of reloading its modules.
944
956
this . completionRegistration ?. dispose ( )
945
957
this . completionRegistration = await this . connection . client . register ( CompletionRequest . type , {
946
958
documentSelector : null ,
You can’t perform that action at this time.
0 commit comments