diff options
Diffstat (limited to 'patches/rstudio-server-multi-version/0004-handleConnection-Switch-R-version-when-switching-pro.patch')
| -rw-r--r-- | patches/rstudio-server-multi-version/0004-handleConnection-Switch-R-version-when-switching-pro.patch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/patches/rstudio-server-multi-version/0004-handleConnection-Switch-R-version-when-switching-pro.patch b/patches/rstudio-server-multi-version/0004-handleConnection-Switch-R-version-when-switching-pro.patch index c3af0e0..3531ed6 100644 --- a/patches/rstudio-server-multi-version/0004-handleConnection-Switch-R-version-when-switching-pro.patch +++ b/patches/rstudio-server-multi-version/0004-handleConnection-Switch-R-version-when-switching-pro.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From b31dfc6f120c01ff6612b682b56d92449eb82ef8 Mon Sep 17 00:00:00 2001 | 1 | From 296b8aa60025f88f34167f35d257cc401352d231 Mon Sep 17 00:00:00 2001 |
| 2 | From: Ricardo Wurmus <rekado@elephly.net> | 2 | From: Ricardo Wurmus <rekado@elephly.net> |
| 3 | Date: Sat, 19 Dec 2020 00:57:26 +0100 | 3 | Date: Sat, 19 Dec 2020 00:57:26 +0100 |
| 4 | Subject: [PATCH 4/7] handleConnection: Switch R version when switching | 4 | Subject: [PATCH 4/7] handleConnection: Switch R version when switching |
| @@ -13,7 +13,7 @@ project switch back to the default. | |||
| 13 | 2 files changed, 30 insertions(+), 5 deletions(-) | 13 | 2 files changed, 30 insertions(+), 5 deletions(-) |
| 14 | 14 | ||
| 15 | diff --git a/src/cpp/session/SessionHttpMethods.cpp b/src/cpp/session/SessionHttpMethods.cpp | 15 | diff --git a/src/cpp/session/SessionHttpMethods.cpp b/src/cpp/session/SessionHttpMethods.cpp |
| 16 | index 2b313f2b77..19669a3623 100644 | 16 | index 01e3ffb12f..133ae4abad 100644 |
| 17 | --- a/src/cpp/session/SessionHttpMethods.cpp | 17 | --- a/src/cpp/session/SessionHttpMethods.cpp |
| 18 | +++ b/src/cpp/session/SessionHttpMethods.cpp | 18 | +++ b/src/cpp/session/SessionHttpMethods.cpp |
| 19 | @@ -2,6 +2,7 @@ | 19 | @@ -2,6 +2,7 @@ |
| @@ -24,7 +24,7 @@ index 2b313f2b77..19669a3623 100644 | |||
| 24 | * | 24 | * |
| 25 | * Unless you have received this program directly from Posit Software pursuant | 25 | * Unless you have received this program directly from Posit Software pursuant |
| 26 | * to the terms of a commercial license agreement with Posit Software, then | 26 | * to the terms of a commercial license agreement with Posit Software, then |
| 27 | @@ -711,6 +712,33 @@ void handleConnection(boost::shared_ptr<HttpConnection> ptrConnection, | 27 | @@ -734,6 +735,33 @@ void handleConnection(boost::shared_ptr<HttpConnection> ptrConnection, |
| 28 | activeSession().setWorkingDir(projDir); | 28 | activeSession().setWorkingDir(projDir); |
| 29 | } | 29 | } |
| 30 | 30 | ||
| @@ -58,7 +58,7 @@ index 2b313f2b77..19669a3623 100644 | |||
| 58 | if (options().switchProjectsWithUrl()) | 58 | if (options().switchProjectsWithUrl()) |
| 59 | { | 59 | { |
| 60 | r_util::SessionScope scope; | 60 | r_util::SessionScope scope; |
| 61 | @@ -763,10 +791,6 @@ void handleConnection(boost::shared_ptr<HttpConnection> ptrConnection, | 61 | @@ -789,10 +817,6 @@ void handleConnection(boost::shared_ptr<HttpConnection> ptrConnection, |
| 62 | { | 62 | { |
| 63 | FilePath projFile = resolveAliasedPath(switchToProject); | 63 | FilePath projFile = resolveAliasedPath(switchToProject); |
| 64 | std::string projDir = createAliasedPath(projFile.getParent()); | 64 | std::string projDir = createAliasedPath(projFile.getParent()); |
| @@ -70,10 +70,10 @@ index 2b313f2b77..19669a3623 100644 | |||
| 70 | module_context::sharedProjectScratchPath(), | 70 | module_context::sharedProjectScratchPath(), |
| 71 | version, | 71 | version, |
| 72 | diff --git a/src/gwt/src/org/rstudio/studio/client/projects/Projects.java b/src/gwt/src/org/rstudio/studio/client/projects/Projects.java | 72 | diff --git a/src/gwt/src/org/rstudio/studio/client/projects/Projects.java b/src/gwt/src/org/rstudio/studio/client/projects/Projects.java |
| 73 | index 0ab01f9945..26c332b58d 100644 | 73 | index b369c97c24..066a0c9db0 100644 |
| 74 | --- a/src/gwt/src/org/rstudio/studio/client/projects/Projects.java | 74 | --- a/src/gwt/src/org/rstudio/studio/client/projects/Projects.java |
| 75 | +++ b/src/gwt/src/org/rstudio/studio/client/projects/Projects.java | 75 | +++ b/src/gwt/src/org/rstudio/studio/client/projects/Projects.java |
| 76 | @@ -1131,7 +1131,8 @@ public class Projects implements OpenProjectFileEvent.Handler, | 76 | @@ -1184,7 +1184,8 @@ public class Projects implements OpenProjectFileEvent.Handler, |
| 77 | { | 77 | { |
| 78 | // perform quit | 78 | // perform quit |
| 79 | applicationQuit_.performQuit(null, saveChanges, | 79 | applicationQuit_.performQuit(null, saveChanges, |
| @@ -84,5 +84,5 @@ index 0ab01f9945..26c332b58d 100644 | |||
| 84 | }; | 84 | }; |
| 85 | 85 | ||
| 86 | -- | 86 | -- |
| 87 | 2.52.0 | 87 | 2.54.0 |
| 88 | 88 | ||
