GH-1231: additiona log output for analysing file events from the different file watcher implementations
This commit is contained in:
@@ -617,6 +617,9 @@ public class SimpleTextDocumentService implements TextDocumentService, DocumentE
|
||||
|
||||
@Override
|
||||
public void didSave(DidSaveTextDocumentParams params) {
|
||||
log.info("doc save event: " + params.getTextDocument().getUri());
|
||||
|
||||
|
||||
// Workaround for PT 147263283, where error markers in STS are lost on document save.
|
||||
// STS 3.9.0 does not use the LSP4E editor for edit manifest.yml, which correctly retains error markers after save.
|
||||
// Instead, because the LSP4E editor is missing support for hovers and completions, STS 3.9.0 uses its own manifest editor
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
*******************************************************************************/
|
||||
package org.springframework.ide.vscode.commons.languageserver.util;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
@@ -104,12 +105,15 @@ public class SimpleWorkspaceService implements WorkspaceService {
|
||||
|
||||
switch (type) {
|
||||
case Created:
|
||||
log.info("file created event: " + Arrays.toString(docURIs));
|
||||
fileObserver.notifyFilesCreated(docURIs);
|
||||
break;
|
||||
case Changed:
|
||||
log.info("file changed event: " + Arrays.toString(docURIs));
|
||||
fileObserver.notifyFilesChanged(docURIs);
|
||||
break;
|
||||
case Deleted:
|
||||
log.info("file deleted event: " + Arrays.toString(docURIs));
|
||||
fileObserver.notifyFilesDeleted(docURIs);
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user