From e2138e56506a3e9d9414e0865ec99499ba4f1ee2 Mon Sep 17 00:00:00 2001 From: Toine Hartman Date: Tue, 17 Dec 2024 19:29:38 +0100 Subject: [PATCH] Print progress for debug purposes. --- rascal-lsp/src/main/rascal/util/refactor/Rename.rsc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rascal-lsp/src/main/rascal/util/refactor/Rename.rsc b/rascal-lsp/src/main/rascal/util/refactor/Rename.rsc index 93d769c0..4691342d 100644 --- a/rascal-lsp/src/main/rascal/util/refactor/Rename.rsc +++ b/rascal-lsp/src/main/rascal/util/refactor/Rename.rsc @@ -31,6 +31,8 @@ import Set; import util::Maybe; import util::Reflective; +import IO; + import util::refactor::Exception; import util::refactor::TextEdits; extend util::refactor::WorkspaceInfo; @@ -82,21 +84,27 @@ RenameSymbolF renameSymbolFramework( ) { return Edits(Tree cursorT, str newName, set[loc] workspaceFolders, PathConfigF getPathConfig) { // step("pre-checking rename validity", 1); + println("pre-checking rename validity"); + str cursorName = ""; checkResult(preCheck(cursorT, newName, workspaceFolders, getPathConfig)); // step("preloading minimal workspace information", 1); + println("preloading minimal workspace information"); TModel tm = tmodel(); ProjectFiles preloadFiles = preFiles(cursorT, workspaceFolders, getPathConfig); tm = loadLocs(tm, preloadFiles, getTModels, getPathConfig); // step("analyzing name at cursor", 1); + println("analyzing name at cursor"); Cursor cur = getCursor(tm, cursorT); // step("loading required type information", 1); + println("loading required type information"); ProjectFiles allLoadFiles = allFiles(cur, workspaceFolders, getPathConfig); tm = loadLocs(tm, allLoadFiles, getTModels, getPathConfig); // step("collecting definitions and uses of \'\'", 1); + println("collecting definitions and uses of \'\'"); map[ChangeAnnotationId, ChangeAnnotation] changeAnnotations = (); ChangeAnnotationRegister registerChangeAnnotation = ChangeAnnotationId(str label, str description, bool needsConfirmation) { ChangeAnnotationId makeKey(str label, int suffix) = "