@codingame/monaco-vscode-dialogs-service-override 2.0.3 → 2.1.0
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-dialogs-service-override",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@2.0
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.1.0",
|
|
22
22
|
"vscode-marked": "npm:marked@=3.0.2",
|
|
23
|
-
"@codingame/monaco-vscode-layout-service-override": "2.0
|
|
23
|
+
"@codingame/monaco-vscode-layout-service-override": "2.1.0"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -12,7 +12,7 @@ import { IProductService } from 'vscode/vscode/vs/platform/product/common/produc
|
|
|
12
12
|
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService';
|
|
13
13
|
import { fromNow } from 'vscode/vscode/vs/base/common/date';
|
|
14
14
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
15
|
-
import { MarkdownRenderer } from 'vscode/vscode/vs/editor/
|
|
15
|
+
import { MarkdownRenderer } from 'vscode/vscode/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer';
|
|
16
16
|
import { defaultButtonStyles, defaultCheckboxStyles, defaultInputBoxStyles, defaultDialogStyles } from 'vscode/vscode/vs/platform/theme/browser/defaultStyles';
|
|
17
17
|
import { AbstractDialogHandler } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
18
18
|
|
|
@@ -3,7 +3,7 @@ import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
|
3
3
|
import { basename, joinPath, toLocalResource, extname, dirname, extUriIgnorePathCase, relativePath, hasTrailingPathSeparator, addTrailingPathSeparator, isEqual, removeTrailingPathSeparator } from 'vscode/vscode/vs/base/common/resources';
|
|
4
4
|
import { deepClone } from 'vscode/vscode/vs/base/common/objects';
|
|
5
5
|
import { FileKind, IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
6
|
-
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
6
|
+
import { ItemActivation, IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
7
7
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
8
8
|
import { isWindows } from 'vscode/vscode/vs/base/common/platform';
|
|
9
9
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
@@ -261,7 +261,6 @@ let SimpleFileDialog = class SimpleFileDialog {
|
|
|
261
261
|
this.busy = true;
|
|
262
262
|
this.filePickBox.matchOnLabel = false;
|
|
263
263
|
this.filePickBox.sortByLabel = false;
|
|
264
|
-
this.filePickBox.autoFocusOnList = false;
|
|
265
264
|
this.filePickBox.ignoreFocusOut = true;
|
|
266
265
|
this.filePickBox.ok = true;
|
|
267
266
|
if ((this.scheme !== Schemas.file) && this.options && this.options.availableFileSystems && (this.options.availableFileSystems.length > 1) && (this.options.availableFileSystems.indexOf(Schemas.file) > -1)) {
|
|
@@ -294,7 +293,6 @@ let SimpleFileDialog = class SimpleFileDialog {
|
|
|
294
293
|
this.filePickBox.title = this.options.title;
|
|
295
294
|
this.filePickBox.value = this.pathFromUri(this.currentFolder, true);
|
|
296
295
|
this.filePickBox.valueSelection = [this.filePickBox.value.length, this.filePickBox.value.length];
|
|
297
|
-
this.filePickBox.items = [];
|
|
298
296
|
function doResolve(dialog, uri) {
|
|
299
297
|
if (uri) {
|
|
300
298
|
uri = addTrailingPathSeparator(uri, dialog.separator);
|
|
@@ -738,7 +736,6 @@ let SimpleFileDialog = class SimpleFileDialog {
|
|
|
738
736
|
}
|
|
739
737
|
this.filePickBox.show();
|
|
740
738
|
this.hidden = false;
|
|
741
|
-
this.filePickBox.items = this.filePickBox.items;
|
|
742
739
|
prompt.dispose();
|
|
743
740
|
});
|
|
744
741
|
prompt.onDidChangeValue(() => {
|
|
@@ -881,9 +878,8 @@ let SimpleFileDialog = class SimpleFileDialog {
|
|
|
881
878
|
this.busy = false;
|
|
882
879
|
return false;
|
|
883
880
|
}
|
|
881
|
+
this.filePickBox.itemActivation = ItemActivation.NONE;
|
|
884
882
|
this.filePickBox.items = items;
|
|
885
|
-
this.filePickBox.activeItems = [this.filePickBox.items[0]];
|
|
886
|
-
this.filePickBox.activeItems = [];
|
|
887
883
|
if (!equalsIgnoreCase(this.filePickBox.value, newValue) && force) {
|
|
888
884
|
this.filePickBox.valueSelection = [0, this.filePickBox.value.length];
|
|
889
885
|
this.insertText(newValue, newValue);
|