You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
import a library from another vscode extension #21372
My request is to add the functionality of adding a library through the API.
During the discussion I was told that there is currently a setting very similar to my request, viz: "python.autoComplete.extraPaths": ["/home/user/renpy"]
But it has some disadvantages:
The library I need to add is inside subfolders of renpy SDK. I honestly think that asking the user to manually enter the path to the SDK is doable (I would add the rest of the path), while asking for the path to a subfolder of the SDK creates misunderstandings.
Also, it would be helpful for me to have the path to the SDK. And asking for both the path to the SDK and the path to the library in a sub folder of the SDK, seems foolish to me.
I'm not specifically suggesting this to you, donrp . I'm just making sure we record the fact that other extensions could benefit from a solution so this isn't viewed as exclusively a problem on you are having.
Black Ram (@BlackRam-oss) we first need a proposal of exactly what a solution would look like before we could talk about a PR to implement something. Do you have such a proposal?
Black Ram (@BlackRam-oss) we first need a proposal of exactly what a solution would look like before we could talk about a PR to implement something. Do you have such a proposal?
mmm, I think I understand
( I don't really remember what the python.autoComplete.extraPaths, Add folders as libraries? )
I think the best solution is to add a function for example:
functionaddaddExtraPaths(libPath){// for exemple libPath = "/home/user/renpy"// if libPath is valid then I continueletinternalLibPaths: string[]=// get array from settings python.autoComplete.extraPathsinternalLibPaths.append(libPath)// after set python.autoComplete.extraPaths with internalLibPaths}
Black Ram (@BlackRam-oss) we haven't had the time to think it through as we're all a bit swamped with pre-existing work. We can try to provide feedback in the next few weeks.
Activity
brettcannon commentedon Jun 7, 2023
Another data point is https://marketplace.visualstudio.com/items?itemName=designtoproduction.rhinopython is instructing people how to set
extraPathsby copying and pasting from their README which include hard-coded paths to where their extension would be which isn't consistent across all machines.BlackRam-oss commentedon Jun 7, 2023
Okay, I know there is this possibility.
But it has some disadvantages:
The library I need to add is inside subfolders of renpy SDK. I honestly think that asking the user to manually enter the path to the SDK is doable (I would add the rest of the path), while asking for the path to a subfolder of the SDK creates misunderstandings.
Also, it would be helpful for me to have the path to the SDK. And asking for both the path to the SDK and the path to the library in a sub folder of the SDK, seems foolish to me.
brettcannon commentedon Jun 8, 2023
I'm not specifically suggesting this to you, donrp . I'm just making sure we record the fact that other extensions could benefit from a solution so this isn't viewed as exclusively a problem on you are having.
BlackRam-oss commentedon Sep 7, 2023
if this implementation is not too difficult I could implement it myself? I ask because I would need it and I noticed that there are many issues
I am familiar with typescript, but I have not long started vscode development.
if you can tell me in broad strokes what I should modify, I can do it
brettcannon commentedon Sep 7, 2023
Black Ram (@BlackRam-oss) we first need a proposal of exactly what a solution would look like before we could talk about a PR to implement something. Do you have such a proposal?
BlackRam-oss commentedon Sep 8, 2023
mmm, I think I understand
( I don't really remember what the python.autoComplete.extraPaths, Add folders as libraries? )
I think the best solution is to add a function for example:
this could work
BlackRam-oss commentedon Oct 16, 2023
Brett Cannon (@brettcannon) Sorry if I insist, but it's a change that would help me.
Would the solution I gave work?
brettcannon commentedon Oct 17, 2023
Black Ram (@BlackRam-oss) we haven't had the time to think it through as we're all a bit swamped with pre-existing work. We can try to provide feedback in the next few weeks.