@codingame/monaco-vscode-dialogs-service-override 12.0.1 → 13.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/index.d.ts +1 -1
- package/index.js +14 -14
- package/package.json +5 -6
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.web.contribution.d.ts +9 -9
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.web.contribution.js +11 -11
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialogHandler.d.ts +6 -6
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialogHandler.js +18 -18
- package/vscode/src/vs/workbench/common/dialogs.d.ts +2 -2
- package/vscode/src/vs/workbench/common/dialogs.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/media/welcomeWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/welcomeDialog.contribution.js +22 -22
- package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/welcomeWidget.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/welcomeWidget.js +30 -30
- package/vscode/src/vs/workbench/services/dialogs/browser/abstractFileDialogService.d.ts +19 -19
- package/vscode/src/vs/workbench/services/dialogs/browser/abstractFileDialogService.js +44 -44
- package/vscode/src/vs/workbench/services/dialogs/browser/fileDialogService.d.ts +3 -3
- package/vscode/src/vs/workbench/services/dialogs/browser/fileDialogService.js +23 -23
- package/vscode/src/vs/workbench/services/dialogs/browser/simpleFileDialog.d.ts +18 -18
- package/vscode/src/vs/workbench/services/dialogs/browser/simpleFileDialog.js +53 -53
- package/vscode/src/vs/workbench/services/dialogs/common/dialogService.d.ts +6 -6
- package/vscode/src/vs/workbench/services/dialogs/common/dialogService.js +7 -7
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
1
|
+
import type { IEditorOverrideServices } from "@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
2
2
|
export default function getServiceOverride(): IEditorOverrideServices;
|
package/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
|
|
2
2
|
import { DialogService } from './vscode/src/vs/workbench/services/dialogs/common/dialogService.js';
|
|
3
|
-
import { IDialogService, IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
4
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
|
+
import { IDialogService, IFileDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
4
|
+
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
5
5
|
import { FileDialogService } from './vscode/src/vs/workbench/services/dialogs/browser/fileDialogService.js';
|
|
6
|
-
import 'vscode/vscode/vs/nls';
|
|
7
|
-
import 'vscode/vscode/vs/base/common/charCode';
|
|
8
|
-
import 'vscode/vscode/vs/base/common/marshallingIds';
|
|
9
|
-
import 'vscode/vscode/vs/base/common/path';
|
|
10
|
-
import 'vscode/vscode/vs/base/common/platform';
|
|
11
|
-
import 'vscode/vscode/vs/base/common/lifecycle';
|
|
12
|
-
import 'vscode/vscode/vs/base/common/event';
|
|
13
|
-
import 'vscode/vscode/vs/base/common/network';
|
|
14
|
-
import 'vscode/vscode/vs/base/common/resources';
|
|
15
|
-
import 'vscode/vscode/vs/platform/files/common/files';
|
|
16
|
-
import 'vscode/vscode/vs/platform/files/browser/webFileSystemAccess';
|
|
17
|
-
import 'vscode/vscode/vs/platform/log/common/log';
|
|
6
|
+
import '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
7
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/charCode';
|
|
8
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/marshallingIds';
|
|
9
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/path';
|
|
10
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
11
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
12
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
13
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
14
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
15
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
16
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/files/browser/webFileSystemAccess';
|
|
17
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log';
|
|
18
18
|
import './vscode/src/vs/workbench/browser/parts/dialogs/dialog.web.contribution.js';
|
|
19
19
|
import './vscode/src/vs/workbench/contrib/welcomeDialog/browser/welcomeDialog.contribution.js';
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-dialogs-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - dialogs service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,12 +15,11 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"
|
|
18
|
+
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "13.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-44b92f80-48ea-5562-a8d0-18a015f8d845-common": "13.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-api": "13.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common": "13.1.0"
|
|
21
22
|
},
|
|
22
|
-
"peerDependencies": {},
|
|
23
|
-
"peerDependenciesMeta": {},
|
|
24
23
|
"main": "index.js",
|
|
25
24
|
"module": "index.js",
|
|
26
25
|
"types": "index.d.ts",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IClipboardService } from "vscode/vscode/vs/platform/clipboard/common/clipboardService.service";
|
|
2
|
-
import { IDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
3
|
-
import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
4
|
-
import { ILayoutService } from "vscode/vscode/vs/platform/layout/browser/layoutService.service";
|
|
5
|
-
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
6
|
-
import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
|
|
7
|
-
import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
|
|
8
|
-
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
9
|
-
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
1
|
+
import { IClipboardService } from "@codingame/monaco-vscode-api/vscode/vs/platform/clipboard/common/clipboardService.service";
|
|
2
|
+
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
3
|
+
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
4
|
+
import { ILayoutService } from "@codingame/monaco-vscode-api/vscode/vs/platform/layout/browser/layoutService.service";
|
|
5
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
6
|
+
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
7
|
+
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
8
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
9
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
10
10
|
export declare class DialogHandlerContribution extends Disposable implements IWorkbenchContribution {
|
|
11
11
|
private dialogService;
|
|
12
12
|
static readonly ID = "workbench.contrib.dialogHandler";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService.service';
|
|
4
|
-
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
5
|
-
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
6
|
-
import { ILayoutService } from 'vscode/vscode/vs/platform/layout/browser/layoutService.service';
|
|
7
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
8
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
9
|
-
import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { IClipboardService } from '@codingame/monaco-vscode-api/vscode/vs/platform/clipboard/common/clipboardService.service';
|
|
4
|
+
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
5
|
+
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
6
|
+
import { ILayoutService } from '@codingame/monaco-vscode-api/vscode/vs/platform/layout/browser/layoutService.service';
|
|
7
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
8
|
+
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
9
|
+
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
10
10
|
import { BrowserDialogHandler } from './dialogHandler.js';
|
|
11
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
12
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
13
|
-
import { Lazy } from 'vscode/vscode/vs/base/common/lazy';
|
|
11
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
12
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
13
|
+
import { Lazy } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lazy';
|
|
14
14
|
|
|
15
15
|
let DialogHandlerContribution = class DialogHandlerContribution extends Disposable {
|
|
16
16
|
static { this.ID = 'workbench.contrib.dialogHandler'; }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IConfirmation, IConfirmationResult, IInputResult, IInput, AbstractDialogHandler, IPrompt, IAsyncPromptResult } from "@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common/vscode/vs/platform/dialogs/common/dialogs";
|
|
2
|
-
import { ILayoutService } from "vscode/vscode/vs/platform/layout/browser/layoutService.service";
|
|
3
|
-
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
4
|
-
import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
5
|
-
import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
|
|
6
|
-
import { IClipboardService } from "vscode/vscode/vs/platform/clipboard/common/clipboardService.service";
|
|
7
|
-
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
|
+
import { ILayoutService } from "@codingame/monaco-vscode-api/vscode/vs/platform/layout/browser/layoutService.service";
|
|
3
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
4
|
+
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
5
|
+
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
6
|
+
import { IClipboardService } from "@codingame/monaco-vscode-api/vscode/vs/platform/clipboard/common/clipboardService.service";
|
|
7
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
8
8
|
export declare class BrowserDialogHandler extends AbstractDialogHandler {
|
|
9
9
|
private readonly logService;
|
|
10
10
|
private readonly layoutService;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
4
|
import { AbstractDialogHandler } from '@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common/vscode/vs/platform/dialogs/common/dialogs';
|
|
5
|
-
import { ILayoutService } from 'vscode/vscode/vs/platform/layout/browser/layoutService.service';
|
|
6
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
7
|
-
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
5
|
+
import { ILayoutService } from '@codingame/monaco-vscode-api/vscode/vs/platform/layout/browser/layoutService.service';
|
|
6
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
7
|
+
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
8
8
|
import { Dialog } from '@codingame/monaco-vscode-44b92f80-48ea-5562-a8d0-18a015f8d845-common/vscode/vs/base/browser/ui/dialog/dialog';
|
|
9
|
-
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
10
|
-
import { EventHelper } from 'vscode/vscode/vs/base/browser/dom';
|
|
11
|
-
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
12
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
13
|
-
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService.service';
|
|
14
|
-
import { fromNow } from 'vscode/vscode/vs/base/common/date';
|
|
15
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
16
|
-
import { MarkdownRenderer } from 'vscode/vscode/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer';
|
|
17
|
-
import { defaultButtonStyles, defaultCheckboxStyles, defaultInputBoxStyles, defaultDialogStyles } from 'vscode/vscode/vs/platform/theme/browser/defaultStyles';
|
|
18
|
-
import { ResultKind } from 'vscode/vscode/vs/platform/keybinding/common/keybindingResolver';
|
|
9
|
+
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
10
|
+
import { EventHelper } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
11
|
+
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
12
|
+
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
13
|
+
import { IClipboardService } from '@codingame/monaco-vscode-api/vscode/vs/platform/clipboard/common/clipboardService.service';
|
|
14
|
+
import { fromNow } from '@codingame/monaco-vscode-api/vscode/vs/base/common/date';
|
|
15
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
16
|
+
import { MarkdownRenderer } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer';
|
|
17
|
+
import { defaultButtonStyles, defaultCheckboxStyles, defaultInputBoxStyles, defaultDialogStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
18
|
+
import { ResultKind } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingResolver';
|
|
19
19
|
|
|
20
20
|
var BrowserDialogHandler_1;
|
|
21
21
|
let BrowserDialogHandler = class BrowserDialogHandler extends AbstractDialogHandler {
|
|
@@ -59,7 +59,7 @@ let BrowserDialogHandler = class BrowserDialogHandler extends AbstractDialogHand
|
|
|
59
59
|
async about() {
|
|
60
60
|
const detailString = (useAgo) => {
|
|
61
61
|
return localize(
|
|
62
|
-
|
|
62
|
+
2747,
|
|
63
63
|
"Version: {0}\nCommit: {1}\nDate: {2}\nBrowser: {3}",
|
|
64
64
|
this.productService.version || 'Unknown',
|
|
65
65
|
this.productService.commit || 'Unknown',
|
|
@@ -70,8 +70,8 @@ let BrowserDialogHandler = class BrowserDialogHandler extends AbstractDialogHand
|
|
|
70
70
|
const detail = detailString(true);
|
|
71
71
|
const detailToCopy = detailString(false);
|
|
72
72
|
const { button } = await this.doShow(Severity.Info, this.productService.nameLong, [
|
|
73
|
-
( localize(
|
|
74
|
-
( localize(
|
|
73
|
+
( localize(2748, "&&Copy")),
|
|
74
|
+
( localize(2749, "OK"))
|
|
75
75
|
], detail, 1);
|
|
76
76
|
if (button === 0) {
|
|
77
77
|
this.clipboardService.writeText(detailToCopy);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
2
|
-
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
1
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
3
|
import { IDialogArgs, IDialogResult } from "@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common/vscode/vs/platform/dialogs/common/dialogs";
|
|
4
4
|
export interface IDialogViewItem {
|
|
5
5
|
readonly args: IDialogArgs;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { DeferredPromise } from 'vscode/vscode/vs/base/common/async';
|
|
3
|
-
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
4
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
2
|
+
import { DeferredPromise } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
3
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
4
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
5
|
|
|
6
6
|
class DialogsModel extends Disposable {
|
|
7
7
|
constructor() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css';
|
|
1
|
+
import n from '@codingame/monaco-vscode-api/external/rollup-plugin-styles/dist/runtime/inject-css';
|
|
2
2
|
|
|
3
3
|
var css = ".monaco-dialog-box{border-radius:6px}.dialog-message-detail-title>div>p>.codicon[class*=codicon-]:before{color:var(--vscode-textLink-foreground);font-size:larger;padding-right:10px;position:relative}.dialog-message-detail-title{font-size:large;height:22px}.monaco-dialog-box .monaco-action-bar .actions-container{justify-content:flex-end}";
|
|
4
4
|
n(css,{});
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
4
|
-
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
5
|
-
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
6
|
-
import { StorageScope } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
7
|
-
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
8
|
-
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
9
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
11
|
-
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
12
|
-
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
13
|
-
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
14
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
15
|
-
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
4
|
+
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
5
|
+
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
6
|
+
import { StorageScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
7
|
+
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
8
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
9
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
11
|
+
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
12
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
13
|
+
import { ICodeEditorService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService';
|
|
14
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
15
|
+
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
16
16
|
import { WelcomeWidget } from './welcomeWidget.js';
|
|
17
|
-
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
18
|
-
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
|
|
19
|
-
import { Extensions as Extensions$1, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
20
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
21
|
-
import { applicationConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
|
|
22
|
-
import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
23
|
-
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
17
|
+
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
18
|
+
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
19
|
+
import { Extensions as Extensions$1, ConfigurationScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
20
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
21
|
+
import { applicationConfigurationNodeBase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/configuration';
|
|
22
|
+
import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
23
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
24
24
|
|
|
25
25
|
const configurationKey = 'workbench.welcome.experimental.dialog';
|
|
26
26
|
let WelcomeDialogContribution = class WelcomeDialogContribution extends Disposable {
|
|
@@ -90,7 +90,7 @@ configurationRegistry.registerConfiguration({
|
|
|
90
90
|
type: 'boolean',
|
|
91
91
|
default: false,
|
|
92
92
|
tags: ['experimental'],
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(10735, "When enabled, a welcome widget is shown in the editor"))
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { ICodeEditor, IOverlayWidget, IOverlayWidgetPosition } from "vscode/vscode/vs/editor/browser/editorBrowser";
|
|
3
|
-
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
-
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
|
5
|
-
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
6
|
-
import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { ICodeEditor, IOverlayWidget, IOverlayWidgetPosition } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser";
|
|
3
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
+
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
5
|
+
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
6
|
+
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
7
7
|
export declare class WelcomeWidget extends Disposable implements IOverlayWidget {
|
|
8
8
|
private readonly _editor;
|
|
9
9
|
private readonly instantiationService;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
|
|
2
2
|
import './media/welcomeWidget.css.js';
|
|
3
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
-
import { OverlayWidgetPositionPreference } from 'vscode/vscode/vs/editor/browser/editorBrowser';
|
|
5
|
-
import { $, hide, append } from 'vscode/vscode/vs/base/browser/dom';
|
|
6
|
-
import { MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
|
|
7
|
-
import { MarkdownRenderer } from 'vscode/vscode/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer';
|
|
8
|
-
import { ButtonBar } from 'vscode/vscode/vs/base/browser/ui/button/button';
|
|
9
|
-
import { mnemonicButtonLabel } from 'vscode/vscode/vs/base/common/labels';
|
|
10
|
-
import { defaultButtonStyles } from 'vscode/vscode/vs/platform/theme/browser/defaultStyles';
|
|
11
|
-
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
12
|
-
import { ActionBar } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
13
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
14
|
-
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
15
|
-
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
16
|
-
import { parseLinkedText } from 'vscode/vscode/vs/base/common/linkedText';
|
|
17
|
-
import { Link } from 'vscode/vscode/vs/platform/opener/browser/link';
|
|
18
|
-
import { renderLabelWithIcons } from 'vscode/vscode/vs/base/browser/ui/iconLabel/iconLabels';
|
|
19
|
-
import { renderFormattedText } from 'vscode/vscode/vs/base/browser/formattedTextRenderer';
|
|
20
|
-
import { registerThemingParticipant } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
21
|
-
import 'vscode/vscode/vs/platform/theme/common/colorUtils';
|
|
22
|
-
import { contrastBorder } from 'vscode/vscode/vs/platform/theme/common/colors/baseColors';
|
|
23
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/chartsColors';
|
|
24
|
-
import { editorWidgetBackground, widgetShadow, widgetBorder, editorWidgetForeground } from 'vscode/vscode/vs/platform/theme/common/colors/editorColors';
|
|
25
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/inputColors';
|
|
26
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/listColors';
|
|
27
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/menuColors';
|
|
28
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/minimapColors';
|
|
29
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
|
|
30
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
31
|
-
import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
3
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { OverlayWidgetPositionPreference } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser';
|
|
5
|
+
import { $, hide, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
6
|
+
import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
7
|
+
import { MarkdownRenderer } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer';
|
|
8
|
+
import { ButtonBar } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
9
|
+
import { mnemonicButtonLabel } from '@codingame/monaco-vscode-api/vscode/vs/base/common/labels';
|
|
10
|
+
import { defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
11
|
+
import { Action } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
12
|
+
import { ActionBar } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
13
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
14
|
+
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
15
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
16
|
+
import { parseLinkedText } from '@codingame/monaco-vscode-api/vscode/vs/base/common/linkedText';
|
|
17
|
+
import { Link } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/browser/link';
|
|
18
|
+
import { renderLabelWithIcons } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabels';
|
|
19
|
+
import { renderFormattedText } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/formattedTextRenderer';
|
|
20
|
+
import { registerThemingParticipant } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService';
|
|
21
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
|
|
22
|
+
import { contrastBorder } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
|
|
23
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/chartsColors';
|
|
24
|
+
import { editorWidgetBackground, widgetShadow, widgetBorder, editorWidgetForeground } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/editorColors';
|
|
25
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/inputColors';
|
|
26
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/listColors';
|
|
27
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/menuColors';
|
|
28
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/minimapColors';
|
|
29
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/miscColors';
|
|
30
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
31
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
32
32
|
|
|
33
33
|
class WelcomeWidget extends Disposable {
|
|
34
34
|
constructor(_editor, instantiationService, commandService, telemetryService, openerService) {
|
|
@@ -72,7 +72,7 @@ class WelcomeWidget extends Disposable {
|
|
|
72
72
|
}
|
|
73
73
|
async buildWidgetContent(title, message, buttonText, buttonAction) {
|
|
74
74
|
const actionBar = this._register(( new ActionBar(this.element, {})));
|
|
75
|
-
const action = this._register(( new Action('dialog.close', ( localize(
|
|
75
|
+
const action = this._register(( new Action('dialog.close', ( localize(10736, "Close Dialog")), ThemeIcon.asClassName(Codicon.dialogClose), true, async () => {
|
|
76
76
|
this._hide();
|
|
77
77
|
})));
|
|
78
78
|
actionBar.push(action, { icon: true, label: false });
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { IPickAndOpenOptions, ISaveDialogOptions, IOpenDialogOptions, ConfirmResult } from "@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common/vscode/vs/platform/dialogs/common/dialogs";
|
|
2
|
-
import { IFileDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
3
|
-
import { IDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
4
|
-
import { IWorkspaceContextService } from "vscode/vscode/vs/platform/workspace/common/workspace.service";
|
|
5
|
-
import { IHistoryService } from "vscode/vscode/vs/workbench/services/history/common/history.service";
|
|
6
|
-
import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
7
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
8
|
-
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
|
+
import { IFileDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
3
|
+
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
4
|
+
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
5
|
+
import { IHistoryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/history/common/history.service";
|
|
6
|
+
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
7
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
8
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
9
9
|
import { ISimpleFileDialog } from "./simpleFileDialog.js";
|
|
10
|
-
import { IWorkspacesService } from "vscode/vscode/vs/platform/workspaces/common/workspaces.service";
|
|
11
|
-
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
12
|
-
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
13
|
-
import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
|
|
14
|
-
import { IHostService } from "vscode/vscode/vs/workbench/services/host/browser/host.service";
|
|
15
|
-
import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
|
|
16
|
-
import { ILabelService } from "vscode/vscode/vs/platform/label/common/label.service";
|
|
17
|
-
import { IPathService } from "vscode/vscode/vs/workbench/services/path/common/pathService.service";
|
|
18
|
-
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
|
19
|
-
import { ICodeEditorService } from "vscode/vscode/vs/editor/browser/services/codeEditorService";
|
|
20
|
-
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
21
|
-
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
10
|
+
import { IWorkspacesService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service";
|
|
11
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
12
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
13
|
+
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
14
|
+
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
15
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language";
|
|
16
|
+
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
17
|
+
import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service";
|
|
18
|
+
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
19
|
+
import { ICodeEditorService } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService";
|
|
20
|
+
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
21
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
22
22
|
export declare abstract class AbstractFileDialogService implements IFileDialogService {
|
|
23
23
|
protected readonly hostService: IHostService;
|
|
24
24
|
protected readonly contextService: IWorkspaceContextService;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
|
-
import { isWorkspaceToOpen, isFileToOpen } from 'vscode/vscode/vs/platform/window/common/window';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
+
import { isWorkspaceToOpen, isFileToOpen } from '@codingame/monaco-vscode-api/vscode/vs/platform/window/common/window';
|
|
5
5
|
import { ConfirmResult, getFileNamesMessage } from '@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common/vscode/vs/platform/dialogs/common/dialogs';
|
|
6
|
-
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
7
|
-
import { WorkbenchState, isSavedWorkspace, isTemporaryWorkspace, WORKSPACE_EXTENSION } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
8
|
-
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
9
|
-
import { IHistoryService } from 'vscode/vscode/vs/workbench/services/history/common/history.service';
|
|
10
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
11
|
-
import { dirname, toLocalResource, basename, extname } from 'vscode/vscode/vs/base/common/resources';
|
|
12
|
-
import { isAbsolute, normalize } from 'vscode/vscode/vs/base/common/path';
|
|
13
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
|
+
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
7
|
+
import { WorkbenchState, isSavedWorkspace, isTemporaryWorkspace, WORKSPACE_EXTENSION } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
|
|
8
|
+
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
9
|
+
import { IHistoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/history/common/history.service';
|
|
10
|
+
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
11
|
+
import { dirname, toLocalResource, basename, extname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
12
|
+
import { isAbsolute, normalize } from '@codingame/monaco-vscode-api/vscode/vs/base/common/path';
|
|
13
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
14
14
|
import { SimpleFileDialog } from './simpleFileDialog.js';
|
|
15
|
-
import { IWorkspacesService } from 'vscode/vscode/vs/platform/workspaces/common/workspaces.service';
|
|
16
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
17
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
18
|
-
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
|
|
19
|
-
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
|
|
20
|
-
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
21
|
-
import { coalesce, distinct } from 'vscode/vscode/vs/base/common/arrays';
|
|
22
|
-
import { trim } from 'vscode/vscode/vs/base/common/strings';
|
|
23
|
-
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
24
|
-
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';
|
|
25
|
-
import { IPathService } from 'vscode/vscode/vs/workbench/services/path/common/pathService.service';
|
|
26
|
-
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
27
|
-
import { PLAINTEXT_EXTENSION } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
|
|
28
|
-
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
29
|
-
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
30
|
-
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
31
|
-
import { EditorOpenSource } from 'vscode/vscode/vs/platform/editor/common/editor';
|
|
32
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
15
|
+
import { IWorkspacesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service';
|
|
16
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
17
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
18
|
+
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
19
|
+
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
20
|
+
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
21
|
+
import { coalesce, distinct } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
|
|
22
|
+
import { trim } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
23
|
+
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language';
|
|
24
|
+
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
25
|
+
import { IPathService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service';
|
|
26
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
27
|
+
import { PLAINTEXT_EXTENSION } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/modesRegistry';
|
|
28
|
+
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
29
|
+
import { ICodeEditorService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService';
|
|
30
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
31
|
+
import { EditorOpenSource } from '@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor';
|
|
32
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
33
33
|
|
|
34
34
|
let AbstractFileDialogService = class AbstractFileDialogService {
|
|
35
35
|
constructor(hostService, contextService, historyService, environmentService, instantiationService, configurationService, fileService, openerService, dialogService, languageService, workspacesService, labelService, pathService, commandService, editorService, codeEditorService, logService) {
|
|
@@ -121,17 +121,17 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
121
121
|
return ConfirmResult.DONT_SAVE;
|
|
122
122
|
}
|
|
123
123
|
let message;
|
|
124
|
-
let detail = ( localize(
|
|
124
|
+
let detail = ( localize(11361, "Your changes will be lost if you don't save them."));
|
|
125
125
|
if (fileNamesOrResources.length === 1) {
|
|
126
126
|
message = ( localize(
|
|
127
|
-
|
|
127
|
+
11362,
|
|
128
128
|
"Do you want to save the changes you made to {0}?",
|
|
129
129
|
typeof fileNamesOrResources[0] === 'string' ? fileNamesOrResources[0] : basename(fileNamesOrResources[0])
|
|
130
130
|
));
|
|
131
131
|
}
|
|
132
132
|
else {
|
|
133
133
|
message = ( localize(
|
|
134
|
-
|
|
134
|
+
11363,
|
|
135
135
|
"Do you want to save the changes to the following {0} files?",
|
|
136
136
|
fileNamesOrResources.length
|
|
137
137
|
));
|
|
@@ -144,12 +144,12 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
144
144
|
buttons: [
|
|
145
145
|
{
|
|
146
146
|
label: fileNamesOrResources.length > 1 ?
|
|
147
|
-
( localize(
|
|
148
|
-
( localize(
|
|
147
|
+
( localize(11364, "&&Save All")) :
|
|
148
|
+
( localize(11365, "&&Save")),
|
|
149
149
|
run: () => ConfirmResult.SAVE
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
|
-
label: ( localize(
|
|
152
|
+
label: ( localize(11366, "Do&&n't Save")),
|
|
153
153
|
run: () => ConfirmResult.DONT_SAVE
|
|
154
154
|
}
|
|
155
155
|
],
|
|
@@ -163,7 +163,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
163
163
|
return schema === Schemas.untitled ? [Schemas.file] : (schema !== Schemas.file ? [schema, Schemas.file] : [schema]);
|
|
164
164
|
}
|
|
165
165
|
async pickFileFolderAndOpenSimplified(schema, options, preferNewWindow) {
|
|
166
|
-
const title = ( localize(
|
|
166
|
+
const title = ( localize(11367, 'Open File or Folder'));
|
|
167
167
|
const availableFileSystems = this.addFileSchemaIfNeeded(schema);
|
|
168
168
|
const uri = await this.pickResource({ canSelectFiles: true, canSelectFolders: true, canSelectMany: false, defaultUri: options.defaultUri, title, availableFileSystems });
|
|
169
169
|
if (uri) {
|
|
@@ -181,7 +181,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
async pickFileAndOpenSimplified(schema, options, preferNewWindow) {
|
|
184
|
-
const title = ( localize(
|
|
184
|
+
const title = ( localize(11368, 'Open File'));
|
|
185
185
|
const availableFileSystems = this.addFileSchemaIfNeeded(schema);
|
|
186
186
|
const uri = await this.pickResource({ canSelectFiles: true, canSelectFolders: false, canSelectMany: false, defaultUri: options.defaultUri, title, availableFileSystems });
|
|
187
187
|
if (uri) {
|
|
@@ -198,7 +198,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
198
198
|
this.workspacesService.addRecentlyOpened([{ fileUri: uri, label: this.labelService.getUriLabel(uri) }]);
|
|
199
199
|
}
|
|
200
200
|
async pickFolderAndOpenSimplified(schema, options) {
|
|
201
|
-
const title = ( localize(
|
|
201
|
+
const title = ( localize(11369, 'Open Folder'));
|
|
202
202
|
const availableFileSystems = this.addFileSchemaIfNeeded(schema, true);
|
|
203
203
|
const uri = await this.pickResource({ canSelectFiles: false, canSelectFolders: true, canSelectMany: false, defaultUri: options.defaultUri, title, availableFileSystems });
|
|
204
204
|
if (uri) {
|
|
@@ -206,8 +206,8 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
async pickWorkspaceAndOpenSimplified(schema, options) {
|
|
209
|
-
const title = ( localize(
|
|
210
|
-
const filters = [{ name: ( localize(
|
|
209
|
+
const title = ( localize(11370, 'Open Workspace from File'));
|
|
210
|
+
const filters = [{ name: ( localize(11371, 'Workspace')), extensions: [WORKSPACE_EXTENSION] }];
|
|
211
211
|
const availableFileSystems = this.addFileSchemaIfNeeded(schema, true);
|
|
212
212
|
const uri = await this.pickResource({ canSelectFiles: true, canSelectFolders: false, canSelectMany: false, defaultUri: options.defaultUri, title, filters, availableFileSystems });
|
|
213
213
|
if (uri) {
|
|
@@ -218,7 +218,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
218
218
|
if (!options.availableFileSystems) {
|
|
219
219
|
options.availableFileSystems = this.addFileSchemaIfNeeded(schema);
|
|
220
220
|
}
|
|
221
|
-
options.title = ( localize(
|
|
221
|
+
options.title = ( localize(11372, 'Save As'));
|
|
222
222
|
const uri = await this.saveRemoteResource(options);
|
|
223
223
|
if (uri) {
|
|
224
224
|
this.addFileToRecentlyOpened(uri);
|
|
@@ -269,7 +269,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
269
269
|
getPickFileToSaveDialogOptions(defaultUri, availableFileSystems) {
|
|
270
270
|
const options = {
|
|
271
271
|
defaultUri,
|
|
272
|
-
title: ( localize(
|
|
272
|
+
title: ( localize(11373, "Save As")),
|
|
273
273
|
availableFileSystems
|
|
274
274
|
};
|
|
275
275
|
const ext = defaultUri ? extname(defaultUri) : undefined;
|
|
@@ -296,10 +296,10 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
296
296
|
matchingFilter = { name: trim(ext, '.').toUpperCase(), extensions: [trim(ext, '.')] };
|
|
297
297
|
}
|
|
298
298
|
options.filters = coalesce([
|
|
299
|
-
{ name: ( localize(
|
|
299
|
+
{ name: ( localize(11374, "All Files")), extensions: ['*'] },
|
|
300
300
|
matchingFilter,
|
|
301
301
|
...registeredLanguageFilters,
|
|
302
|
-
{ name: ( localize(
|
|
302
|
+
{ name: ( localize(11375, "No Extension")), extensions: [''] }
|
|
303
303
|
]);
|
|
304
304
|
return options;
|
|
305
305
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IPickAndOpenOptions, ISaveDialogOptions, IOpenDialogOptions } from "@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common/vscode/vs/platform/dialogs/common/dialogs";
|
|
2
|
-
import { IFileDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
3
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
+
import { IFileDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
3
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
4
4
|
import { AbstractFileDialogService } from "./abstractFileDialogService.js";
|
|
5
|
-
import { HTMLFileSystemProvider } from "vscode/vscode/vs/platform/files/browser/htmlFileSystemProvider";
|
|
5
|
+
import { HTMLFileSystemProvider } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/browser/htmlFileSystemProvider";
|
|
6
6
|
export declare class FileDialogService extends AbstractFileDialogService implements IFileDialogService {
|
|
7
7
|
protected get fileSystemProvider(): HTMLFileSystemProvider;
|
|
8
8
|
pickFileFolderAndOpen(options: IPickAndOpenOptions): Promise<void>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
4
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
2
|
+
import { __decorate } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
4
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
5
5
|
import { AbstractFileDialogService } from './abstractFileDialogService.js';
|
|
6
|
-
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
7
|
-
import { memoize } from 'vscode/vscode/vs/base/common/decorators';
|
|
8
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
9
|
-
import { getMediaOrTextMime } from 'vscode/vscode/vs/base/common/mime';
|
|
10
|
-
import { basename } from 'vscode/vscode/vs/base/common/resources';
|
|
11
|
-
import { getActiveWindow, triggerDownload, triggerUpload } from 'vscode/vscode/vs/base/browser/dom';
|
|
12
|
-
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
13
|
-
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
14
|
-
import { extractFileListData } from 'vscode/vscode/vs/platform/dnd/browser/dnd';
|
|
15
|
-
import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
|
|
16
|
-
import { WebFileSystemAccess } from 'vscode/vscode/vs/platform/files/browser/webFileSystemAccess';
|
|
17
|
-
import { EmbeddedCodeEditorWidget } from 'vscode/vscode/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget';
|
|
6
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
7
|
+
import { memoize } from '@codingame/monaco-vscode-api/vscode/vs/base/common/decorators';
|
|
8
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
9
|
+
import { getMediaOrTextMime } from '@codingame/monaco-vscode-api/vscode/vs/base/common/mime';
|
|
10
|
+
import { basename } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
11
|
+
import { getActiveWindow, triggerDownload, triggerUpload } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
12
|
+
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
13
|
+
import { VSBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
14
|
+
import { extractFileListData } from '@codingame/monaco-vscode-api/vscode/vs/platform/dnd/browser/dnd';
|
|
15
|
+
import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
|
|
16
|
+
import { WebFileSystemAccess } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/browser/webFileSystemAccess';
|
|
17
|
+
import { EmbeddedCodeEditorWidget } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget';
|
|
18
18
|
|
|
19
19
|
class FileDialogService extends AbstractFileDialogService {
|
|
20
20
|
get fileSystemProvider() {
|
|
@@ -28,7 +28,7 @@ class FileDialogService extends AbstractFileDialogService {
|
|
|
28
28
|
if (this.shouldUseSimplified(schema)) {
|
|
29
29
|
return super.pickFileFolderAndOpenSimplified(schema, options, false);
|
|
30
30
|
}
|
|
31
|
-
throw ( new Error(( localize(
|
|
31
|
+
throw ( new Error(( localize(11376, "Can't open folders, try adding a folder to the workspace instead."))));
|
|
32
32
|
}
|
|
33
33
|
addFileSchemaIfNeeded(schema, isFolder) {
|
|
34
34
|
return (schema === Schemas.untitled) ? [Schemas.file]
|
|
@@ -68,7 +68,7 @@ class FileDialogService extends AbstractFileDialogService {
|
|
|
68
68
|
if (this.shouldUseSimplified(schema)) {
|
|
69
69
|
return super.pickFolderAndOpenSimplified(schema, options);
|
|
70
70
|
}
|
|
71
|
-
throw ( new Error(( localize(
|
|
71
|
+
throw ( new Error(( localize(11376, "Can't open folders, try adding a folder to the workspace instead."))));
|
|
72
72
|
}
|
|
73
73
|
async pickWorkspaceAndOpen(options) {
|
|
74
74
|
options.availableFileSystems = this.getWorkspaceAvailableFileSystems(options);
|
|
@@ -80,7 +80,7 @@ class FileDialogService extends AbstractFileDialogService {
|
|
|
80
80
|
return super.pickWorkspaceAndOpenSimplified(schema, options);
|
|
81
81
|
}
|
|
82
82
|
throw ( new Error(( localize(
|
|
83
|
-
|
|
83
|
+
11377,
|
|
84
84
|
"Can't open workspaces, try adding a folder to the workspace instead."
|
|
85
85
|
))));
|
|
86
86
|
}
|
|
@@ -182,17 +182,17 @@ class FileDialogService extends AbstractFileDialogService {
|
|
|
182
182
|
}
|
|
183
183
|
const buttons = [
|
|
184
184
|
{
|
|
185
|
-
label: ( localize(
|
|
185
|
+
label: ( localize(11378, "&&Open Remote...")),
|
|
186
186
|
run: async () => { await this.commandService.executeCommand('workbench.action.remote.showMenu'); }
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
|
-
label: ( localize(
|
|
189
|
+
label: ( localize(11379, "&&Learn More")),
|
|
190
190
|
run: async () => { await this.openerService.open('https://aka.ms/VSCodeWebLocalFileSystemAccess'); }
|
|
191
191
|
}
|
|
192
192
|
];
|
|
193
193
|
if (context === 'open') {
|
|
194
194
|
buttons.push({
|
|
195
|
-
label: ( localize(
|
|
195
|
+
label: ( localize(11380, "Open &&Files...")),
|
|
196
196
|
run: async () => {
|
|
197
197
|
const files = await triggerUpload();
|
|
198
198
|
if (files) {
|
|
@@ -212,9 +212,9 @@ class FileDialogService extends AbstractFileDialogService {
|
|
|
212
212
|
}
|
|
213
213
|
await this.dialogService.prompt({
|
|
214
214
|
type: Severity.Warning,
|
|
215
|
-
message: ( localize(
|
|
215
|
+
message: ( localize(11381, "Opening Local Folders is Unsupported")),
|
|
216
216
|
detail: ( localize(
|
|
217
|
-
|
|
217
|
+
11382,
|
|
218
218
|
"Your browser doesn't support opening local folders.\nYou can either open single files or open a remote repository."
|
|
219
219
|
)),
|
|
220
220
|
buttons
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
2
|
-
import { IQuickInputService } from "vscode/vscode/vs/platform/quickinput/common/quickInput.service";
|
|
3
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
1
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
2
|
+
import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service";
|
|
3
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
4
4
|
import { ISaveDialogOptions, IOpenDialogOptions } from "@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common/vscode/vs/platform/dialogs/common/dialogs";
|
|
5
|
-
import { IFileDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
6
|
-
import { ILabelService } from "vscode/vscode/vs/platform/label/common/label.service";
|
|
7
|
-
import { IWorkspaceContextService } from "vscode/vscode/vs/platform/workspace/common/workspace.service";
|
|
8
|
-
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
9
|
-
import { IModelService } from "vscode/vscode/vs/editor/common/services/model";
|
|
10
|
-
import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
|
|
11
|
-
import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
12
|
-
import { IRemoteAgentService } from "vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service";
|
|
13
|
-
import { RawContextKey } from "vscode/vscode/vs/platform/contextkey/common/contextkey";
|
|
14
|
-
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
15
|
-
import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
16
|
-
import { Disposable, IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
17
|
-
import { ICommandHandler } from "vscode/vscode/vs/platform/commands/common/commands";
|
|
18
|
-
import { IPathService } from "vscode/vscode/vs/workbench/services/path/common/pathService.service";
|
|
19
|
-
import { IAccessibilityService } from "vscode/vscode/vs/platform/accessibility/common/accessibility.service";
|
|
5
|
+
import { IFileDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
6
|
+
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
7
|
+
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
8
|
+
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
9
|
+
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model";
|
|
10
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language";
|
|
11
|
+
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
12
|
+
import { IRemoteAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service";
|
|
13
|
+
import { RawContextKey } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
|
|
14
|
+
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
15
|
+
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
16
|
+
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
17
|
+
import { ICommandHandler } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands";
|
|
18
|
+
import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service";
|
|
19
|
+
import { IAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service";
|
|
20
20
|
export declare namespace OpenLocalFileCommand {
|
|
21
21
|
const ID = "workbench.action.files.openLocalFile";
|
|
22
22
|
const LABEL: string;
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
|
-
import { basename, joinPath, toLocalResource, extname, dirname, addTrailingPathSeparator, removeTrailingPathSeparator, extUriIgnorePathCase, relativePath, hasTrailingPathSeparator, isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
5
|
-
import { deepClone } from 'vscode/vscode/vs/base/common/objects';
|
|
6
|
-
import { FileKind } from 'vscode/vscode/vs/platform/files/common/files';
|
|
7
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
8
|
-
import { ItemActivation } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
9
|
-
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
10
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
11
|
-
import { isWindows, OperatingSystem } from 'vscode/vscode/vs/base/common/platform';
|
|
12
|
-
import { IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
13
|
-
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';
|
|
14
|
-
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
15
|
-
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
16
|
-
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
17
|
-
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
18
|
-
import { getIconClasses } from 'vscode/vscode/vs/editor/common/services/getIconClasses';
|
|
19
|
-
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
20
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
21
|
-
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
22
|
-
import { RawContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
23
|
-
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
24
|
-
import { format, equalsIgnoreCase, startsWithIgnoreCase } from 'vscode/vscode/vs/base/common/strings';
|
|
25
|
-
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
26
|
-
import { isValidBasename } from 'vscode/vscode/vs/base/common/extpath';
|
|
27
|
-
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
28
|
-
import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
29
|
-
import { createCancelablePromise } from 'vscode/vscode/vs/base/common/async';
|
|
30
|
-
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
31
|
-
import { normalizeDriveLetter } from 'vscode/vscode/vs/base/common/labels';
|
|
32
|
-
import { SaveReason } from 'vscode/vscode/vs/workbench/common/editor';
|
|
33
|
-
import { IPathService } from 'vscode/vscode/vs/workbench/services/path/common/pathService.service';
|
|
34
|
-
import { IAccessibilityService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility.service';
|
|
35
|
-
import { getActiveDocument } from 'vscode/vscode/vs/base/browser/dom';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
+
import { basename, joinPath, toLocalResource, extname, dirname, addTrailingPathSeparator, removeTrailingPathSeparator, extUriIgnorePathCase, relativePath, hasTrailingPathSeparator, isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
5
|
+
import { deepClone } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
|
|
6
|
+
import { FileKind } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
7
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
8
|
+
import { ItemActivation } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput';
|
|
9
|
+
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
10
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
11
|
+
import { isWindows, OperatingSystem } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
12
|
+
import { IFileDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
13
|
+
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
14
|
+
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
15
|
+
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
16
|
+
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model';
|
|
17
|
+
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language';
|
|
18
|
+
import { getIconClasses } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/getIconClasses';
|
|
19
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
20
|
+
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
21
|
+
import { IRemoteAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
22
|
+
import { RawContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
23
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
24
|
+
import { format, equalsIgnoreCase, startsWithIgnoreCase } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
25
|
+
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
26
|
+
import { isValidBasename } from '@codingame/monaco-vscode-api/vscode/vs/base/common/extpath';
|
|
27
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
28
|
+
import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
29
|
+
import { createCancelablePromise } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
30
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
31
|
+
import { normalizeDriveLetter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/labels';
|
|
32
|
+
import { SaveReason } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
33
|
+
import { IPathService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service';
|
|
34
|
+
import { IAccessibilityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service';
|
|
35
|
+
import { getActiveDocument } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
36
36
|
|
|
37
37
|
var OpenLocalFileCommand;
|
|
38
38
|
(function (OpenLocalFileCommand) {
|
|
39
39
|
OpenLocalFileCommand.ID = 'workbench.action.files.openLocalFile';
|
|
40
|
-
OpenLocalFileCommand.LABEL = ( localize(
|
|
40
|
+
OpenLocalFileCommand.LABEL = ( localize(11383, "Open Local File..."));
|
|
41
41
|
function handler() {
|
|
42
42
|
return accessor => {
|
|
43
43
|
const dialogService = accessor.get(IFileDialogService);
|
|
@@ -49,7 +49,7 @@ var OpenLocalFileCommand;
|
|
|
49
49
|
var SaveLocalFileCommand;
|
|
50
50
|
(function (SaveLocalFileCommand) {
|
|
51
51
|
SaveLocalFileCommand.ID = 'workbench.action.files.saveLocalFile';
|
|
52
|
-
SaveLocalFileCommand.LABEL = ( localize(
|
|
52
|
+
SaveLocalFileCommand.LABEL = ( localize(11384, "Save Local File..."));
|
|
53
53
|
function handler() {
|
|
54
54
|
return accessor => {
|
|
55
55
|
const editorService = accessor.get(IEditorService);
|
|
@@ -65,7 +65,7 @@ var SaveLocalFileCommand;
|
|
|
65
65
|
var OpenLocalFolderCommand;
|
|
66
66
|
(function (OpenLocalFolderCommand) {
|
|
67
67
|
OpenLocalFolderCommand.ID = 'workbench.action.files.openLocalFolder';
|
|
68
|
-
OpenLocalFolderCommand.LABEL = ( localize(
|
|
68
|
+
OpenLocalFolderCommand.LABEL = ( localize(11385, "Open Local Folder..."));
|
|
69
69
|
function handler() {
|
|
70
70
|
return accessor => {
|
|
71
71
|
const dialogService = accessor.get(IFileDialogService);
|
|
@@ -77,7 +77,7 @@ var OpenLocalFolderCommand;
|
|
|
77
77
|
var OpenLocalFileFolderCommand;
|
|
78
78
|
(function (OpenLocalFileFolderCommand) {
|
|
79
79
|
OpenLocalFileFolderCommand.ID = 'workbench.action.files.openLocalFileFolder';
|
|
80
|
-
OpenLocalFileFolderCommand.LABEL = ( localize(
|
|
80
|
+
OpenLocalFileFolderCommand.LABEL = ( localize(11386, "Open Local..."));
|
|
81
81
|
function handler() {
|
|
82
82
|
return accessor => {
|
|
83
83
|
const dialogService = accessor.get(IFileDialogService);
|
|
@@ -177,7 +177,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
|
|
|
177
177
|
}
|
|
178
178
|
if ((this.scheme !== Schemas.file) && !this.fileService.hasProvider(defaultUri)) {
|
|
179
179
|
this.notificationService.info(( localize(
|
|
180
|
-
|
|
180
|
+
11387,
|
|
181
181
|
'File system provider for {0} is not available.',
|
|
182
182
|
(defaultUri.toString())
|
|
183
183
|
)));
|
|
@@ -250,7 +250,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
|
|
|
250
250
|
this.filePickBox.ok = true;
|
|
251
251
|
if ((this.scheme !== Schemas.file) && this.options && this.options.availableFileSystems && (this.options.availableFileSystems.length > 1) && (this.options.availableFileSystems.indexOf(Schemas.file) > -1)) {
|
|
252
252
|
this.filePickBox.customButton = true;
|
|
253
|
-
this.filePickBox.customLabel = ( localize(
|
|
253
|
+
this.filePickBox.customLabel = ( localize(11388, 'Show Local'));
|
|
254
254
|
let action;
|
|
255
255
|
if (isSave) {
|
|
256
256
|
action = SaveLocalFileCommand;
|
|
@@ -545,7 +545,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
|
|
|
545
545
|
return (await this.updateItems(valueUri)) ? UpdateResult.UpdatedWithTrailing : UpdateResult.Updated;
|
|
546
546
|
}
|
|
547
547
|
else if (this.endsWithSlash(value)) {
|
|
548
|
-
this.filePickBox.validationMessage = ( localize(
|
|
548
|
+
this.filePickBox.validationMessage = ( localize(11389, 'The path does not exist.'));
|
|
549
549
|
this.badPath = value;
|
|
550
550
|
return UpdateResult.InvalidPath;
|
|
551
551
|
}
|
|
@@ -703,7 +703,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
|
|
|
703
703
|
prompt.ignoreFocusOut = true;
|
|
704
704
|
prompt.ok = true;
|
|
705
705
|
prompt.customButton = true;
|
|
706
|
-
prompt.customLabel = ( localize(
|
|
706
|
+
prompt.customLabel = ( localize(11390, 'Cancel'));
|
|
707
707
|
prompt.value = this.pathFromUri(uri);
|
|
708
708
|
let isResolving = false;
|
|
709
709
|
return ( new Promise(resolve => {
|
|
@@ -731,7 +731,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
|
|
|
731
731
|
}
|
|
732
732
|
async validate(uri) {
|
|
733
733
|
if (uri === undefined) {
|
|
734
|
-
this.filePickBox.validationMessage = ( localize(
|
|
734
|
+
this.filePickBox.validationMessage = ( localize(11391, 'Please enter a valid path.'));
|
|
735
735
|
return Promise.resolve(false);
|
|
736
736
|
}
|
|
737
737
|
let stat;
|
|
@@ -744,36 +744,36 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
|
|
|
744
744
|
}
|
|
745
745
|
if (this.requiresTrailing) {
|
|
746
746
|
if (stat && stat.isDirectory) {
|
|
747
|
-
this.filePickBox.validationMessage = ( localize(
|
|
747
|
+
this.filePickBox.validationMessage = ( localize(11392, 'The folder already exists. Please use a new file name.'));
|
|
748
748
|
return Promise.resolve(false);
|
|
749
749
|
}
|
|
750
750
|
else if (stat) {
|
|
751
751
|
const message = ( localize(
|
|
752
|
-
|
|
752
|
+
11393,
|
|
753
753
|
'{0} already exists. Are you sure you want to overwrite it?',
|
|
754
754
|
basename(uri)
|
|
755
755
|
));
|
|
756
756
|
return this.yesNoPrompt(uri, message);
|
|
757
757
|
}
|
|
758
758
|
else if (!(isValidBasename(basename(uri), this.isWindows))) {
|
|
759
|
-
this.filePickBox.validationMessage = ( localize(
|
|
759
|
+
this.filePickBox.validationMessage = ( localize(11394, 'Please enter a valid file name.'));
|
|
760
760
|
return Promise.resolve(false);
|
|
761
761
|
}
|
|
762
762
|
else if (!statDirname) {
|
|
763
763
|
const message = ( localize(
|
|
764
|
-
|
|
764
|
+
11395,
|
|
765
765
|
'The folder {0} does not exist. Would you like to create it?',
|
|
766
766
|
basename(dirname(uri))
|
|
767
767
|
));
|
|
768
768
|
return this.yesNoPrompt(uri, message);
|
|
769
769
|
}
|
|
770
770
|
else if (!statDirname.isDirectory) {
|
|
771
|
-
this.filePickBox.validationMessage = ( localize(
|
|
771
|
+
this.filePickBox.validationMessage = ( localize(11396, 'Please enter a path that exists.'));
|
|
772
772
|
return Promise.resolve(false);
|
|
773
773
|
}
|
|
774
774
|
else if (statDirname.readonly) {
|
|
775
775
|
this.filePickBox.validationMessage = ( localize(
|
|
776
|
-
|
|
776
|
+
11397,
|
|
777
777
|
'This folder cannot be used as a save destination. Please choose another folder'
|
|
778
778
|
));
|
|
779
779
|
return Promise.resolve(false);
|
|
@@ -781,19 +781,19 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
|
|
|
781
781
|
}
|
|
782
782
|
else {
|
|
783
783
|
if (!stat) {
|
|
784
|
-
this.filePickBox.validationMessage = ( localize(
|
|
784
|
+
this.filePickBox.validationMessage = ( localize(11396, 'Please enter a path that exists.'));
|
|
785
785
|
return Promise.resolve(false);
|
|
786
786
|
}
|
|
787
787
|
else if (uri.path === '/' && this.isWindows) {
|
|
788
|
-
this.filePickBox.validationMessage = ( localize(
|
|
788
|
+
this.filePickBox.validationMessage = ( localize(11398, 'Please start the path with a drive letter.'));
|
|
789
789
|
return Promise.resolve(false);
|
|
790
790
|
}
|
|
791
791
|
else if (stat.isDirectory && !this.allowFolderSelection) {
|
|
792
|
-
this.filePickBox.validationMessage = ( localize(
|
|
792
|
+
this.filePickBox.validationMessage = ( localize(11399, 'Please select a file.'));
|
|
793
793
|
return Promise.resolve(false);
|
|
794
794
|
}
|
|
795
795
|
else if (!stat.isDirectory && !this.allowFileSelection) {
|
|
796
|
-
this.filePickBox.validationMessage = ( localize(
|
|
796
|
+
this.filePickBox.validationMessage = ( localize(11400, 'Please select a folder.'));
|
|
797
797
|
return Promise.resolve(false);
|
|
798
798
|
}
|
|
799
799
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IConfirmation, IConfirmationResult, IInput, IInputResult, IPrompt, IPromptResult, IPromptResultWithCancel, IPromptWithCustomCancel, IPromptWithDefaultCancel } from "@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common/vscode/vs/platform/dialogs/common/dialogs";
|
|
3
|
-
import { IDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
3
|
+
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
4
4
|
import { DialogsModel } from "../../../common/dialogs.js";
|
|
5
|
-
import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
6
|
-
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
5
|
+
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
6
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
7
7
|
export declare class DialogService extends Disposable implements IDialogService {
|
|
8
8
|
private readonly environmentService;
|
|
9
9
|
private readonly logService;
|
|
10
10
|
readonly _serviceBrand: undefined;
|
|
11
11
|
readonly model: DialogsModel;
|
|
12
|
-
readonly onWillShowDialog: import("vscode/vscode/vs/base/common/event").Event<void>;
|
|
13
|
-
readonly onDidShowDialog: import("vscode/vscode/vs/base/common/event").Event<void>;
|
|
12
|
+
readonly onWillShowDialog: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
13
|
+
readonly onDidShowDialog: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
14
14
|
constructor(environmentService: IWorkbenchEnvironmentService, logService: ILogService);
|
|
15
15
|
private skipDialogs;
|
|
16
16
|
confirm(confirmation: IConfirmation): Promise<IConfirmationResult>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
4
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
4
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
6
|
import { DialogsModel } from '../../../common/dialogs.js';
|
|
7
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
8
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
9
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
7
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
8
|
+
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
9
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
10
10
|
|
|
11
11
|
let DialogService = class DialogService extends Disposable {
|
|
12
12
|
constructor(environmentService, logService) {
|