File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -105,13 +105,15 @@ public let builtinNotifications: [NotificationType.Type] = [
105
105
DidOpenTextDocumentNotification . self,
106
106
DidRenameFilesNotification . self,
107
107
DidSaveNotebookDocumentNotification . self,
108
+ DidSaveTextDocumentNotification . self,
108
109
ExitNotification . self,
109
110
InitializedNotification . self,
110
111
LogMessageNotification . self,
111
112
LogTraceNotification . self,
112
113
PublishDiagnosticsNotification . self,
113
114
SetTraceNotification . self,
114
115
ShowMessageNotification . self,
116
+ WillSaveTextDocumentNotification . self,
115
117
WorkDoneProgress . self,
116
118
]
117
119
Original file line number Diff line number Diff line change @@ -259,10 +259,10 @@ extension BuildServerBuildSystem: BuildSystem {
259
259
public func registerForChangeNotifications( for uri: DocumentURI , language: Language ) {
260
260
let request = RegisterForChanges ( uri: uri, action: . register)
261
261
_ = self . buildServer? . send ( request) { result in
262
- Task {
263
- if let error = result. failure {
264
- logger. error ( " error registering \( uri) : \( error. forLogging) " )
262
+ if let error = result. failure {
263
+ logger. error ( " error registering \( uri) : \( error. forLogging) " )
265
264
265
+ Task {
266
266
// BuildServer registration failed, so tell our delegate that no build
267
267
// settings are available.
268
268
await self . buildSettingsChanged ( for: uri, settings: nil )
You can’t perform that action at this time.
0 commit comments