@codingame/monaco-vscode-share-service-override 10.1.3 → 10.1.4

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-share-service-override",
3
- "version": "10.1.3",
3
+ "version": "10.1.4",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,6 +26,6 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@10.1.3"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@10.1.4"
30
30
  }
31
31
  }
@@ -63,7 +63,7 @@ let ShareWorkbenchContribution = class ShareWorkbenchContribution {
63
63
  }
64
64
  this._disposables.add(registerAction2(class ShareAction extends Action2 {
65
65
  static { this.ID = 'workbench.action.share'; }
66
- static { this.LABEL = ( localize2(2779, 'Share...')); }
66
+ static { this.LABEL = ( localize2(2787, 'Share...')); }
67
67
  constructor() {
68
68
  super({
69
69
  id: ShareAction.ID,
@@ -95,7 +95,7 @@ let ShareWorkbenchContribution = class ShareWorkbenchContribution {
95
95
  const selection = accessor.get(ICodeEditorService).getActiveCodeEditor()?.getSelection() ?? undefined;
96
96
  const result = await progressService.withProgress({
97
97
  location: 10 ,
98
- detail: ( localize(2780, 'Generating link...'))
98
+ detail: ( localize(2788, 'Generating link...'))
99
99
  }, async () => shareService.provideShare({ resourceUri, selection }, CancellationToken.None));
100
100
  if (result) {
101
101
  const uriText = ( (result.toString()));
@@ -103,7 +103,7 @@ let ShareWorkbenchContribution = class ShareWorkbenchContribution {
103
103
  await clipboardService.writeText(uriText);
104
104
  dialogService.prompt({
105
105
  type: Severity$1.Info,
106
- message: isResultText ? ( localize(2781, 'Copied text to clipboard!')) : ( localize(2782, 'Copied link to clipboard!')),
106
+ message: isResultText ? ( localize(2789, 'Copied text to clipboard!')) : ( localize(2790, 'Copied link to clipboard!')),
107
107
  custom: {
108
108
  icon: Codicon.check,
109
109
  markdownDetails: [{
@@ -111,8 +111,8 @@ let ShareWorkbenchContribution = class ShareWorkbenchContribution {
111
111
  classes: [isResultText ? 'share-dialog-input-text' : 'share-dialog-input-link']
112
112
  }]
113
113
  },
114
- cancelButton: ( localize(2783, 'Close')),
115
- buttons: isResultText ? [] : [{ label: ( localize(2784, 'Open Link')), run: () => { urlService.open(result, { openExternal: true }); } }]
114
+ cancelButton: ( localize(2791, 'Close')),
115
+ buttons: isResultText ? [] : [{ label: ( localize(2792, 'Open Link')), run: () => { urlService.open(result, { openExternal: true }); } }]
116
116
  });
117
117
  }
118
118
  }
@@ -139,7 +139,7 @@ workbenchContributionsRegistry.registerWorkbenchContribution(ShareWorkbenchContr
139
139
  default: false,
140
140
  tags: ['experimental'],
141
141
  markdownDescription: ( localize(
142
- 2785,
142
+ 2793,
143
143
  "Controls whether to render the Share action next to the command center when {0} is {1}.",
144
144
  '`#window.commandCenter#`',
145
145
  '`true`'
@@ -8,7 +8,7 @@ import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.serv
8
8
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
9
9
  import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
10
10
 
11
- const ShareProviderCountContext = ( (new RawContextKey('shareProviderCount', 0, ( localize(2777, "The number of available share providers")))));
11
+ const ShareProviderCountContext = ( (new RawContextKey('shareProviderCount', 0, ( localize(2785, "The number of available share providers")))));
12
12
  let ShareService = class ShareService {
13
13
  constructor(contextKeyService, labelService, quickInputService, codeEditorService, telemetryService) {
14
14
  this.contextKeyService = contextKeyService;
@@ -46,7 +46,7 @@ let ShareService = class ShareService {
46
46
  }
47
47
  const items = ( (providers.map((p) => ({ label: p.label, provider: p }))));
48
48
  const selected = await this.quickInputService.pick(items, { canPickMany: false, placeHolder: ( localize(
49
- 2778,
49
+ 2786,
50
50
  'Choose how to share {0}',
51
51
  this.labelService.getUriLabel(item.resourceUri)
52
52
  )) }, token);