@theia/plugin-ext 1.22.0-next.4 → 1.22.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -40,14 +40,14 @@ class DialogsMainImpl {
|
|
|
40
40
|
catch (_a) {
|
|
41
41
|
rootStat = undefined;
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
// Try to use as root the parent folder of existing file URI/non existing URI
|
|
44
|
+
if (rootStat && !rootStat.isDirectory || !rootStat) {
|
|
45
|
+
try {
|
|
46
|
+
rootStat = await this.fileService.resolve(new uri_1.default(defaultUri).parent);
|
|
47
|
+
}
|
|
48
|
+
catch (_b) {
|
|
49
|
+
rootStat = undefined;
|
|
50
|
+
}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
// Try to use workspace service root if there is no pre-configured URI
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialogs-main.js","sourceRoot":"","sources":["../../../src/main/browser/dialogs-main.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAKlF,2DAA4G;AAC5G,0DAAgE;AAChE,oDAA6C;AAC7C,2FAAsF;AACtF,6EAAyE;AAEzE,wEAA0E;AAE1E,MAAa,eAAe;IASxB,YAAY,GAAgB,EAAE,SAA+B;QACzD,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC,GAAG,CAAC,0BAAgB,CAAC,CAAC;QACxD,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC,GAAG,CAAC,0BAAW,CAAC,CAAC;QAC9C,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC,GAAG,CAAC,kCAAkB,CAAC,CAAC;QACtD,IAAI,CAAC,iBAAiB,GAAG,SAAS,CAAC,GAAG,CAAC,2BAAiB,CAAC,CAAC;QAC1D,IAAI,CAAC,aAAa,GAA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,OAAgC;QACpD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAE5D,yBAAyB;QACzB,IAAI,CAAC,QAAQ,EAAE;YACX,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;SACtF;QAED,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEnF,IAAI,YAAY,EAAE;YACd,OAAO,YAAY,CAAC,QAAQ,CAAC;SAChC;QAED,OAAO,SAAS,CAAC;IACrB,CAAC;CAEJ;AA5JD,0CA4JC"}
|
package/package.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin-ext",
|
|
3
|
-
"version": "1.22.0-next.
|
|
3
|
+
"version": "1.22.0-next.5+17b419fdf0d",
|
|
4
4
|
"description": "Theia - Plugin Extension",
|
|
5
5
|
"main": "lib/common/index.js",
|
|
6
6
|
"typings": "lib/common/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@theia/bulk-edit": "1.22.0-next.
|
|
9
|
-
"@theia/callhierarchy": "1.22.0-next.
|
|
10
|
-
"@theia/console": "1.22.0-next.
|
|
11
|
-
"@theia/core": "1.22.0-next.
|
|
12
|
-
"@theia/debug": "1.22.0-next.
|
|
13
|
-
"@theia/editor": "1.22.0-next.
|
|
14
|
-
"@theia/file-search": "1.22.0-next.
|
|
15
|
-
"@theia/filesystem": "1.22.0-next.
|
|
16
|
-
"@theia/markers": "1.22.0-next.
|
|
17
|
-
"@theia/messages": "1.22.0-next.
|
|
18
|
-
"@theia/monaco": "1.22.0-next.
|
|
19
|
-
"@theia/navigator": "1.22.0-next.
|
|
20
|
-
"@theia/output": "1.22.0-next.
|
|
21
|
-
"@theia/plugin": "1.22.0-next.
|
|
22
|
-
"@theia/preferences": "1.22.0-next.
|
|
23
|
-
"@theia/scm": "1.22.0-next.
|
|
24
|
-
"@theia/search-in-workspace": "1.22.0-next.
|
|
25
|
-
"@theia/task": "1.22.0-next.
|
|
26
|
-
"@theia/terminal": "1.22.0-next.
|
|
27
|
-
"@theia/timeline": "1.22.0-next.
|
|
28
|
-
"@theia/workspace": "1.22.0-next.
|
|
8
|
+
"@theia/bulk-edit": "1.22.0-next.5+17b419fdf0d",
|
|
9
|
+
"@theia/callhierarchy": "1.22.0-next.5+17b419fdf0d",
|
|
10
|
+
"@theia/console": "1.22.0-next.5+17b419fdf0d",
|
|
11
|
+
"@theia/core": "1.22.0-next.5+17b419fdf0d",
|
|
12
|
+
"@theia/debug": "1.22.0-next.5+17b419fdf0d",
|
|
13
|
+
"@theia/editor": "1.22.0-next.5+17b419fdf0d",
|
|
14
|
+
"@theia/file-search": "1.22.0-next.5+17b419fdf0d",
|
|
15
|
+
"@theia/filesystem": "1.22.0-next.5+17b419fdf0d",
|
|
16
|
+
"@theia/markers": "1.22.0-next.5+17b419fdf0d",
|
|
17
|
+
"@theia/messages": "1.22.0-next.5+17b419fdf0d",
|
|
18
|
+
"@theia/monaco": "1.22.0-next.5+17b419fdf0d",
|
|
19
|
+
"@theia/navigator": "1.22.0-next.5+17b419fdf0d",
|
|
20
|
+
"@theia/output": "1.22.0-next.5+17b419fdf0d",
|
|
21
|
+
"@theia/plugin": "1.22.0-next.5+17b419fdf0d",
|
|
22
|
+
"@theia/preferences": "1.22.0-next.5+17b419fdf0d",
|
|
23
|
+
"@theia/scm": "1.22.0-next.5+17b419fdf0d",
|
|
24
|
+
"@theia/search-in-workspace": "1.22.0-next.5+17b419fdf0d",
|
|
25
|
+
"@theia/task": "1.22.0-next.5+17b419fdf0d",
|
|
26
|
+
"@theia/terminal": "1.22.0-next.5+17b419fdf0d",
|
|
27
|
+
"@theia/timeline": "1.22.0-next.5+17b419fdf0d",
|
|
28
|
+
"@theia/workspace": "1.22.0-next.5+17b419fdf0d",
|
|
29
29
|
"@types/markdown-it": "*",
|
|
30
30
|
"@types/mime": "^2.0.1",
|
|
31
31
|
"decompress": "^4.2.1",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"nyc": {
|
|
93
93
|
"extends": "../../configs/nyc.json"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "17b419fdf0d1015f2269ffcb64a095b305a8ec2d"
|
|
96
96
|
}
|
|
@@ -52,14 +52,14 @@ export class DialogsMainImpl implements DialogsMain {
|
|
|
52
52
|
} catch {
|
|
53
53
|
rootStat = undefined;
|
|
54
54
|
}
|
|
55
|
-
}
|
|
56
55
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
// Try to use as root the parent folder of existing file URI/non existing URI
|
|
57
|
+
if (rootStat && !rootStat.isDirectory || !rootStat) {
|
|
58
|
+
try {
|
|
59
|
+
rootStat = await this.fileService.resolve(new URI(defaultUri).parent);
|
|
60
|
+
} catch {
|
|
61
|
+
rootStat = undefined;
|
|
62
|
+
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|