-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project switching does not work #7
Comments
Exactly the same for me on Windows 10. I also have Project Manager 0.4.1 installed. I already tried to provide the codePath in config. But nothing changes. |
Hi, I noted a similar issue when starting Code from the Application Icon instead of the command line, and to fix that, I noted that I had to define the
I tested with Windows 10 and Windows 7, but unfortunately my Mac is not available 😢
Let me know if you have any progress. |
Hi Allessandro, I have set the following options in my settings.json: //-------- Project Manager Configuration --------
Starting from App-Icon or Commandline makes no difference. There is no error message or anything useful. It just does NOTHING. By the way: If you close all edit windows in code you cannot use Alt-shift-p anymore. It is specified to only work in edit window. Best regards, |
Hi Andreas, It appears to be the same problem that I faced. Note that you are defining
I also note that even without defining this setting, when Code was started via command line, it worked fine. But in my case, I have Hope this helps And about the |
Hi Allesandro, you are absolutely correct, even if I do not understand what makes the difference. As soon as I changed the path to the exe to the path to bin\code.cmd it all worked. It works now for me from commandline as well as from the icon. Thanks for your quick help. Best regards, |
Great news Andreas, The I hope this could solve @janmarek problem as well. |
No, I don't have C:\Program Files on my computer :) I tried to create function code in my .bash_profile from https://code.visualstudio.com/Docs/editor/setup and set projectManager.codePath setting to "code" but it does not work. |
Other than the extension, does it work opening Code from the Terminal? I mean, if you type |
yes |
I also do not work in OS X (darwin) and create a quick fix. diff --git a/extension.ts b/extension.ts
index 4f83f23..4107c89 100644
--- a/extension.ts
+++ b/extension.ts
@@ -144,11 +144,42 @@ export function activate() {
let openInNewWindow: boolean = vscode.workspace.getConfiguration('projectManager').get('openInNewWindow', true);
let reuseCmdOption: string = openInNewWindow ? "" : " -r";
- exec(codePath + " " + projectPath + reuseCmdOption);
+ if (process.platform == 'darwin') {
+ exec('open' + ' -b \'com.microsoft.VSCode\' ' + projectPath + reuseCmdOption);
+ // exec('open' + ' -a \'/Applications/Visual\ Studio\ Code.app\' ' + projectPath + reuseCmdOption);
+ } else {
+ exec(codePath + " " + projectPath + reuseCmdOption);
+ } |
Great @satokaz . I was looking the contents of Code for Mac package, trying to understand how it is structured, so, thanks a lot 👍. It appears it needs to use the same solution from https://code.visualstudio.com/Docs/editor/setup. And, something easier may come in Febrary release 😄 A friend of mine has a Mac and I will try to test the extension and this fix. Can you confirm this fix works for you @janmarek ? |
@alefragnani, Thank you for the useful information! |
@janmarek, It has created a package of applying the fix.
and, Please set the following to codepath.
|
Hi @satokaz . I could test your code and it works even without the Mac setup. But I missed the I'm thinking in release an update with a temporary Thanks for your help 👍 |
Hi @alefragnani.
reuseCmdOption is to re-use the window that is open?
There is no problem with a temporary fix. |
I have the same problem with Project Manage 0.5.0/ VS Code 0.10.8 for Mac. Not project change. :( |
Hhi @alefragnani don't work :( first remove the version 0.5 and then I installed the version of @satokaz and still not working. also tried with to set the path in the user settings // Indicate the full Code app path Thanks Ale looks good |
@nothnk, @janmarek I'm sorry! I forgot to write something important. "projectManager.codePath": "com.microsoft.VSCode" In addition, shortcut keys ( |
Yeah! @satokaz with that works in conjunction with the version 0.4.1 thanks! |
@nothnk , Thank you for checking! |
I'm having this same issue. Is there any fix coming for this? Switching projects is not working at all. |
Hi @fallXone , are you using a Mac? |
I am not using a mac, i'm on Windows 8.1 |
Did you tried the solution suggested above to Andreas, defining |
That does work, just seems odd that I have to do that? |
Great! 👍 I agree, but it appears to be a problem with the I have created an issue in vscode repo link right at the beginning of extensions being available in Code, requesting an API for that, but until the API is released, I have to use the Sorry for the inconvenience. |
Hi @satokaz , @janmarek , @nothnk , I just released an update with @satokaz fix. I also added a temporary setting to enable this fix. So, after updating, you still need to add the following line to your "projectManager.useAlternativeMacOSXPath": "true" With the February Release, the Code team intends to update the Mac OS X setup and hopefully this fix will not be needed. If so, I will update the package as well. Thanks a lot to @satokaz for the fix, and you two @janmarek and @nothnk for testing and for the patience 👍 |
@alefragnani , I has been updated to v0.5.1.It worked! |
Great @satokaz ! |
yeah! This works! My user settings: |
Great @nothnk 👍 |
On a mac using what @nothnk posted doesn't work if you set |
Unfortunately, I don't know @lelandcope . I hope that this could be fixed with February release, when Code team will update Mac and Linux install (no more |
@alefragnani , It has been improved in the vscode-insiders February Release! Try to vscode-insiders February Release. vscode stable version is scheduled for March 7
|
@satokaz @alefragnani Thanks for the quick replies. @satokaz the example you showed worked! Looks like its just a waiting game for the stable build to be able to do this. Thank you again. |
That's great @satokaz 👍 I will update the |
@satokaz when code command is installed into path, you don't need to use absolute path This is my configuration for current insiders build:
Note that command has a different name for insiders build (this could also be mentioned in readme) |
Hi, I have Project Manage 0.4.1 installed on VS Code 0.10.8 for Mac. When I choose List Project in command pallete and confirm selected project by enter or by click, nothing happens.
The text was updated successfully, but these errors were encountered: