@codingame/monaco-vscode-share-service-override 14.0.2 → 14.0.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": "14.0.2",
3
+ "version": "14.0.4",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - share service-override",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "14.0.2"
18
+ "@codingame/monaco-vscode-api": "14.0.4"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -74,7 +74,7 @@ let ShareWorkbenchContribution = class ShareWorkbenchContribution extends Dispos
74
74
  }
75
75
  this._disposables.add(registerAction2(class ShareAction extends Action2 {
76
76
  static { this.ID = 'workbench.action.share'; }
77
- static { this.LABEL = ( localize2(9053, 'Share...')); }
77
+ static { this.LABEL = ( localize2(9054, 'Share...')); }
78
78
  constructor() {
79
79
  super({
80
80
  id: ShareAction.ID,
@@ -103,7 +103,7 @@ let ShareWorkbenchContribution = class ShareWorkbenchContribution extends Dispos
103
103
  const selection = accessor.get(ICodeEditorService).getActiveCodeEditor()?.getSelection() ?? undefined;
104
104
  const result = await progressService.withProgress({
105
105
  location: ProgressLocation.Window,
106
- detail: ( localize(9054, 'Generating link...'))
106
+ detail: ( localize(9055, 'Generating link...'))
107
107
  }, async () => shareService.provideShare({ resourceUri, selection }, CancellationToken.None));
108
108
  if (result) {
109
109
  const uriText = ( result.toString());
@@ -111,7 +111,7 @@ let ShareWorkbenchContribution = class ShareWorkbenchContribution extends Dispos
111
111
  await clipboardService.writeText(uriText);
112
112
  dialogService.prompt({
113
113
  type: Severity.Info,
114
- message: isResultText ? ( localize(9055, 'Copied text to clipboard!')) : ( localize(9056, 'Copied link to clipboard!')),
114
+ message: isResultText ? ( localize(9056, 'Copied text to clipboard!')) : ( localize(9057, 'Copied link to clipboard!')),
115
115
  custom: {
116
116
  icon: Codicon.check,
117
117
  markdownDetails: [{
@@ -119,8 +119,8 @@ let ShareWorkbenchContribution = class ShareWorkbenchContribution extends Dispos
119
119
  classes: [isResultText ? 'share-dialog-input-text' : 'share-dialog-input-link']
120
120
  }]
121
121
  },
122
- cancelButton: ( localize(9057, 'Close')),
123
- buttons: isResultText ? [] : [{ label: ( localize(9058, 'Open Link')), run: () => { urlService.open(result, { openExternal: true }); } }]
122
+ cancelButton: ( localize(9058, 'Close')),
123
+ buttons: isResultText ? [] : [{ label: ( localize(9059, 'Open Link')), run: () => { urlService.open(result, { openExternal: true }); } }]
124
124
  });
125
125
  }
126
126
  }
@@ -147,7 +147,7 @@ workbenchContributionsRegistry.registerWorkbenchContribution(ShareWorkbenchContr
147
147
  default: false,
148
148
  tags: ['experimental'],
149
149
  markdownDescription: ( localize(
150
- 9059,
150
+ 9060,
151
151
  "Controls whether to render the Share action next to the command center when {0} is {1}.",
152
152
  '`#window.commandCenter#`',
153
153
  '`true`'
@@ -12,7 +12,7 @@ import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platfo
12
12
  import { ToggleTitleBarConfigAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/titlebar/titlebarActions';
13
13
  import { WorkspaceFolderCountContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
14
14
 
15
- const ShareProviderCountContext = ( new RawContextKey('shareProviderCount', 0, ( localize(9060, "The number of available share providers"))));
15
+ const ShareProviderCountContext = ( new RawContextKey('shareProviderCount', 0, ( localize(9061, "The number of available share providers"))));
16
16
  let ShareService = class ShareService {
17
17
  constructor(contextKeyService, labelService, quickInputService, codeEditorService, telemetryService) {
18
18
  this.contextKeyService = contextKeyService;
@@ -50,7 +50,7 @@ let ShareService = class ShareService {
50
50
  }
51
51
  const items = ( providers.map((p) => ({ label: p.label, provider: p })));
52
52
  const selected = await this.quickInputService.pick(items, { canPickMany: false, placeHolder: ( localize(
53
- 9061,
53
+ 9062,
54
54
  'Choose how to share {0}',
55
55
  this.labelService.getUriLabel(item.resourceUri)
56
56
  )) }, token);
@@ -70,7 +70,7 @@ ShareService = ( __decorate([
70
70
  ], ShareService));
71
71
  registerAction2(class ToggleShareControl extends ToggleTitleBarConfigAction {
72
72
  constructor() {
73
- super('workbench.experimental.share.enabled', ( localize(9062, 'Share')), ( localize(9063, "Toggle visibility of the Share action in title bar")), 3, false, ( ContextKeyExpr.and(( ContextKeyExpr.has('config.window.commandCenter')), ( ContextKeyExpr.and(( ShareProviderCountContext.notEqualsTo(0)), ( WorkspaceFolderCountContext.notEqualsTo(0)))))));
73
+ super('workbench.experimental.share.enabled', ( localize(9063, 'Share')), ( localize(9064, "Toggle visibility of the Share action in title bar")), 3, false, ( ContextKeyExpr.and(( ContextKeyExpr.has('config.window.commandCenter')), ( ContextKeyExpr.and(( ShareProviderCountContext.notEqualsTo(0)), ( WorkspaceFolderCountContext.notEqualsTo(0)))))));
74
74
  }
75
75
  });
76
76