-
Notifications
You must be signed in to change notification settings - Fork 447
Can not "Associate work items" after updating to VScode 1.16 #314
Comments
[Workaround] |
Thank you. I tried it and it works fine, but only when I handwrite it into the commit textbox. In previous version(1.15), if I used "Associate work item" command and click some task, it automaticly paste the hastag with the id of task into the commit textbox. Now if I do this, nothing will happen. Could it be only some settings problem? |
Hello, Same problem here. |
+1 was already searching why nothing happens after selecting the work item, then stumbled upon this issue :) |
++++++1 (lot's on team fussing at me about it...) |
Any update on this? It's definitely interfering with our ability to use this extension. |
fwiw, inputBox.value is undefined... I'm not sure if this is a regression in vscode or not.
Type def for SourceControlInputBox
I've tried debugging the code but I can't get the extension source to load in the chrome console (I guess it's only loaded when you issue a command) |
Hi guys, VS Code dev here. There were some definite changes to the API:
The The deprecated Sorry for the breakage! |
Thank you for this explanation but I'm just a final user of vsts-vscode extension. |
The guy that made all the latest code changes hasn't been on github for a while so - I'm guessing it will be a while... @jeffyoung |
maybe @buckh can assign someone? |
The team tells me the issue will be fixed this sprint, which means the next two weeks. Sorry this took so long. |
so tomorrow this will be fixed? update @buckh |
We're going to pick this up next week. However, if anyone wants to make a first contribution into the codebase, this is an excellent little bug to pick off and get your feet wet with! :) |
@jrbriggs, I can take it up. However, latest npm package vscode 1.1.6 still has old definitions of "interface SourceControl". it was published 2 weeks ago, so I guess its due a refresh soon. |
Same... I was going to fix locally but I couldn’t figure out where to find the updated typings |
TLDR; Seems like access to the inputBox of another source control extension ('git' in this case) is not available anymore. I tried to workaround the old definitions problem by simply copying the latest from the repo. It helped initially, but then I realized that this extension does not 'create' a 'SourceControl' when the repository is a 'Git' repository. I tried creating a minimal implementation (modeling after TfvcSCMProvider), and realized that the repository appeared twice in the list. I'll upload the code to my forked repo if anyone wants to take a look. |
@yashv Read my details above:
|
@joaomoreno, I was hoping it was an easy replacement of scm.inputBox with SourceControl.inputBox.
Now, its tied to the instance of a SourceControl:
Extension doesn't create any SourceControl instances when current workspace is a Git repository. |
There isn't any way currently. What is the actual feature you intend to implement? |
@joaomoreno associate work items for vsts in vs code extension, like in ticket bro. Really? |
@joaomoreno, I'm trying to set the inputBox value text (in the format mentioned above) for the currently displayed/selected SourceControl when user clicks on a Work Item among the list displayed by this extension. |
Would that still make sense no matter which SCM provider is active? Git? Mercurial? Perforce? |
I don’t see why not... |
I've exported a thin API on top of the git extension, which lets you get a hold of the open repositories and their respective inputBoxes: microsoft/vscode#38389. This should be enough to close this issue. Here's the API definition: https://github.com/Microsoft/vscode/blob/6d5112610f32429a6a6c896023af60eebee73d14/extensions/git/src/api.ts#L11:L22 Here's a sample snippet: const git = extensions.getExtension('vscode.git').exports;
git.getRepositories().then(repos => {
repos[0].inputBox.value = 'hello world'
}); |
I anyone working on this fix now that @joaomoreno has provided an API? If not, I can jump in and PR it. |
@dougrday please do, no one is working on it. |
@joaomoreno I think we're blocked by this issue: microsoft/vscode#31103 Here's what I'm currently seeing. const gitExtension = vscode.extensions.getExtension('vscode.git'); // Works
const git = gitExtension.exports; // undefined Beyond that, I think I should be querying beyond just git for other SCM providers, right? Any suggestions are definitely appreciated. |
You need to test this against the latest Insider release. This change is still not in Stable. |
Are there any updates for this issue? |
I haven't had a chance to look at it again. I'll see if I can look at it tonight. |
@dougrday we have someone on our team looking at your PR right now. Thank you for the contribution! |
Fixed "Associate work items" command for git source control (#314)
@ermeckle Thank you for reviewing/merging! Any word on when a new build will be pushed? Looks like there hasn't been an update in 6 months. |
I've got a couple changes of my own coming in the next week, then I'll be looking into pushing a build. |
Great news, thank you! |
@ermeckle Any update on a build/release? |
Is this project dead...? |
@dougrday No, this project is not dead. In fact, we're in the process of releasing a new update imminently. :) However, to set expectations, this project will not be updated as frequently as it was in the past. We project about 2-3 releases per year. |
Thank you for the update. :) Actually, 2-3 releases per year would be much better than the current schedule. |
Not being able to get the inputBox of a pre-existing source control is an absolute nightmare! Has anyone got any work arounds or is this still a major issue? |
+1 |
This was fixed in 1.133.0 |
Is there anyway to get the inputBox of a pre-existing source control? |
|
After update to VS code version 1.16, it is not possible to associate the work item with the commit.
(Using Git)
The text was updated successfully, but these errors were encountered: