-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
import a library from another vscode extension #21372
Comments
Another data point is https://marketplace.visualstudio.com/items?itemName=designtoproduction.rhinopython is instructing people how to set |
Okay, I know there is this possibility. But it has some disadvantages: 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. |
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. |
@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: function add addExtraPaths (libPath) {
// for exemple libPath = "/home/user/renpy"
// if libPath is valid then I continue
let internalLibPaths: string[] = // get array from settings python.autoComplete.extraPaths
internalLibPaths.append(libPath)
// after set python.autoComplete.extraPaths with internalLibPaths
} this could work |
@brettcannon Sorry if I insist, but it's a change that would help me. Would the solution I gave work? |
@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. |
(I created this issue during linked to the following discussion #21284 (reply in thread))
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"]
The text was updated successfully, but these errors were encountered: