This would save some questioning after an issue is filed. Command line args may also be useful?
I can look into implementing it.
How would you like the list. The generated url must be less than 2k characters which is a pretty tight limit (HTTP limits and modern browser limits). I was thinking of generating gists using an open Id with tokens for write access and then link the gist url to the issue body.
Do you have a better approach @joaomoreno, @Tyriar?
2K is definitely a problem. Not sure if that gist trick will fly. We can always _copy_ the contents to the clipboard and instruct the user to _paste_ them into the issue body.
Okay. So I am able to get a list of the extension but somehow I stupidly ended up deleting my ~/.electron.gyp folder and can't clone the repos since right now I can't use git (network restrictions). I think I'll be able to send a PR with unit tests within the week.
The current URL is around 250-300 characters, how many extensions do we expect people to have? I would have expected 20-30 characters each for name+version, I have less than 10 and we can always truncate the list if necessary?
@Tyriar I think that's fine. I'll go the URL way. We can actually use upto 8000 characters but people on older browsers may have issues.
EDIT: @joaomoreno I think that's good and a well balanced approach.
Oh and one thing. Why isn't the smiley to report issues not visible on the debug builds? How can I enable it?
Hey, I'm unable to hit breakpoints that I set in .ts files. I'm using remote debugging from VSCode. Could someone guide me how to debug this?
@hashhar I run via ./scripts/code.sh and use dev tools in the debug vscode personally
import * as vscode from 'vscode';
...
for (var i = 0; i < vscode.extensions.all.length; ++i) {
var ext = vscode.extensions.all[i];
This shows no errors from within VSCode and npm run watch shows no errors as well, but when I run ./scripts/code.sh, I get:
{ errorCode: 'load',
moduleId: 'vscode',
neededBy: [ 'vs/code/electron-main/menus' ],
detail: { [Error: Cannot find module 'vscode'] code: 'MODULE_NOT_FOUND' } }
@hashhar that's the extension API, I think you want to use the ExtensionWorkbenchService in the vscode code base https://github.com/Microsoft/vscode/blob/52bceb1207188ecfe8c5b1fbe841b60df512a08a/src/vs/workbench/parts/extensions/electron-browser/extensionsWorkbenchService.ts#L245

Thanks @bpasero !
Most helpful comment