@codingame/monaco-vscode-share-service-override 3.2.3 → 4.0.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.
@@ -1,3 +1,5 @@
1
+ export { AbstractDialogHandler, IDialogService, IFileDialogService, getFileNamesMessage } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
2
+
1
3
  var ConfirmResult;
2
4
  ( (function(ConfirmResult) {
3
5
  ConfirmResult[ConfirmResult["SAVE"] = 0] = "SAVE";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-share-service-override",
3
- "version": "3.2.3",
3
+ "version": "4.0.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,6 +18,6 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@3.2.3"
21
+ "vscode": "npm:@codingame/monaco-vscode-api@4.0.0"
22
22
  }
23
23
  }
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
2
  import './share.css.js';
3
- import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
3
+ import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
4
4
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
5
5
  import { MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
6
6
  import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
@@ -101,7 +101,7 @@ let ShareWorkbenchContribution = class ShareWorkbenchContribution {
101
101
  'generating link',
102
102
  'Generating link...'
103
103
  ))
104
- }, async () => shareService.provideShare({ resourceUri, selection }, ( new CancellationTokenSource()).token));
104
+ }, async () => shareService.provideShare({ resourceUri, selection }, CancellationToken.None));
105
105
  if (result) {
106
106
  const uriText = ( result.toString());
107
107
  const isResultText = typeof result === 'string';