We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14b3382 commit 93841b5Copy full SHA for 93841b5
internal/project/snapshot.go
@@ -105,7 +105,10 @@ func (s *Snapshot) GetECMALineInfo(fileName string) *sourcemap.ECMALineInfo {
105
}
106
107
func (s *Snapshot) UserPreferences() *lsutil.UserPreferences {
108
- return s.config.tsUserPreferences
+ if s.config.tsUserPreferences != nil {
109
+ return s.config.tsUserPreferences
110
+ }
111
+ return lsutil.NewDefaultUserPreferences()
112
113
114
func (s *Snapshot) FormatOptions() *format.FormatCodeSettings {
0 commit comments