mirror of https://github.com/buggins/dlangide.git
allow opening package.json project
This commit is contained in:
parent
a32aac9561
commit
c0fd1b4c0c
|
@ -367,7 +367,7 @@ class IDEFrame : AppFrame {
|
||||||
UIString caption;
|
UIString caption;
|
||||||
caption = "Open Workspace or Project"d;
|
caption = "Open Workspace or Project"d;
|
||||||
FileDialog dlg = new FileDialog(caption, window, null);
|
FileDialog dlg = new FileDialog(caption, window, null);
|
||||||
dlg.addFilter(FileFilterEntry(UIString("Workspace and project files"d), "*.dlangidews;dub.json"));
|
dlg.addFilter(FileFilterEntry(UIString("Workspace and project files"d), "*.dlangidews;dub.json;package.json"));
|
||||||
dlg.onDialogResult = delegate(Dialog dlg, const Action result) {
|
dlg.onDialogResult = delegate(Dialog dlg, const Action result) {
|
||||||
if (result.id == ACTION_OPEN.id) {
|
if (result.id == ACTION_OPEN.id) {
|
||||||
string filename = result.stringParam;
|
string filename = result.stringParam;
|
||||||
|
|
Loading…
Reference in New Issue