@codingame/monaco-vscode-api 1.82.6 → 1.83.0-next.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.
Files changed (199) hide show
  1. package/api.js +5 -5
  2. package/assets/index-no-csp.html +2 -1
  3. package/assets/index.html +3 -2
  4. package/extensions.js +17 -14
  5. package/external/xterm/typings/xterm.d.ts +171 -109
  6. package/missing-services.js +33 -22
  7. package/monaco-editor-treemending.patch +1745 -1628
  8. package/monaco-treemending.js +2 -2
  9. package/monaco.js +2 -2
  10. package/package.json +2 -2
  11. package/service-override/extensions.js +10 -11
  12. package/services.d.ts +1 -1
  13. package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
  14. package/vscode/src/vs/base/common/event.d.ts +13 -17
  15. package/vscode/src/vs/base/common/keyCodes.d.ts +18 -18
  16. package/vscode/src/vs/base/common/lifecycle.d.ts +9 -0
  17. package/vscode/src/vs/base/common/observableInternal/base.d.ts +2 -0
  18. package/vscode/src/vs/base/common/product.d.ts +1 -0
  19. package/vscode/src/vs/base/parts/ipc/common/ipc.js +6 -2
  20. package/vscode/src/vs/base/parts/storage/common/storage.d.ts +1 -0
  21. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +12 -3
  22. package/vscode/src/vs/editor/common/core/lineRange.d.ts +0 -5
  23. package/vscode/src/vs/editor/common/core/offsetRange.d.ts +9 -2
  24. package/vscode/src/vs/editor/common/diff/documentDiffProvider.d.ts +6 -20
  25. package/vscode/src/vs/editor/common/diff/legacyLinesDiffComputer.d.ts +2 -2
  26. package/vscode/src/vs/editor/common/diff/linesDiffComputer.d.ts +5 -55
  27. package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +55 -0
  28. package/vscode/src/vs/editor/common/languages.d.ts +7 -10
  29. package/vscode/src/vs/editor/common/model.d.ts +1 -1
  30. package/vscode/src/vs/platform/actions/common/actions.d.ts +1 -0
  31. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +5 -5
  32. package/vscode/src/vs/platform/files/common/fileService.js +46 -40
  33. package/vscode/src/vs/platform/files/common/files.d.ts +46 -1
  34. package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.js +45 -0
  35. package/vscode/src/vs/platform/storage/common/storage.d.ts +5 -0
  36. package/vscode/src/vs/platform/storage/common/storage.js +4 -0
  37. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +4 -1
  38. package/vscode/src/vs/platform/terminal/common/terminal.js +1 -3
  39. package/vscode/src/vs/platform/tunnel/common/tunnel.d.ts +1 -1
  40. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +1 -0
  41. package/vscode/src/vs/workbench/api/browser/mainThreadChat.js +11 -0
  42. package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents.js +50 -0
  43. package/vscode/src/vs/workbench/api/browser/mainThreadChatSlashCommands.js +3 -2
  44. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +16 -11
  45. package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.js +20 -6
  46. package/vscode/src/vs/workbench/api/browser/mainThreadEditor.js +2 -2
  47. package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +1 -1
  48. package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +8 -8
  49. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +3 -2
  50. package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +93 -0
  51. package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +3 -166
  52. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +3 -0
  53. package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.js +18 -11
  54. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +14 -9
  55. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -1
  56. package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +11 -2
  57. package/vscode/src/vs/workbench/api/common/extHostChat.js +10 -1
  58. package/vscode/src/vs/workbench/api/common/extHostChatAgents.js +62 -0
  59. package/vscode/src/vs/workbench/api/common/extHostChatSlashCommand.js +13 -4
  60. package/vscode/src/vs/workbench/api/common/extHostCommands.js +4 -4
  61. package/vscode/src/vs/workbench/api/common/extHostComments.js +1 -1
  62. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +36 -4
  63. package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +6 -29
  64. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +24 -12
  65. package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +0 -2
  66. package/vscode/src/vs/workbench/api/common/extHostRequireInterceptor.js +0 -63
  67. package/vscode/src/vs/workbench/api/common/extHostSCM.js +80 -0
  68. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +24 -0
  69. package/vscode/src/vs/workbench/api/common/extHostTesting.js +14 -10
  70. package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +4 -4
  71. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +11 -7
  72. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +34 -16
  73. package/vscode/src/vs/workbench/api/common/extHostTypes.js +31 -13
  74. package/vscode/src/vs/workbench/api/common/extHostWebview.js +14 -2
  75. package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.js +11 -5
  76. package/vscode/src/vs/workbench/api/common/extensionHostMain.js +1 -1
  77. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +32 -9
  78. package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +3 -1
  79. package/vscode/src/vs/workbench/browser/codeeditor.js +1 -1
  80. package/vscode/src/vs/workbench/browser/dnd.js +7 -6
  81. package/vscode/src/vs/workbench/browser/media/part.css.js +1 -1
  82. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +7 -10
  83. package/vscode/src/vs/workbench/browser/parts/editor/editor.js +7 -1
  84. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +9 -3
  85. package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +1 -1
  86. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +9 -2
  87. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +44 -14
  88. package/vscode/src/vs/workbench/browser/parts/editor/media/editorplaceholder.css.js +1 -1
  89. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -19
  90. package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +1 -1
  91. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +9 -3
  92. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.d.ts +1 -1
  93. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +10 -9
  94. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +2 -0
  95. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +2 -2
  96. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -5
  97. package/vscode/src/vs/workbench/browser/web.api.d.ts +0 -6
  98. package/vscode/src/vs/workbench/browser/workbench.contribution.js +34 -3
  99. package/vscode/src/vs/workbench/common/contextkeys.js +2 -1
  100. package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +4 -4
  101. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +0 -1
  102. package/vscode/src/vs/workbench/common/editor/editorInput.js +2 -4
  103. package/vscode/src/vs/workbench/common/editor/editorModel.d.ts +0 -1
  104. package/vscode/src/vs/workbench/common/editor/editorModel.js +1 -3
  105. package/vscode/src/vs/workbench/common/editor.d.ts +2 -0
  106. package/vscode/src/vs/workbench/common/theme.js +21 -1
  107. package/vscode/src/vs/workbench/common/views.d.ts +1 -1
  108. package/vscode/src/vs/workbench/common/views.js +1 -2
  109. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +12 -4
  110. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +335 -0
  111. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +81 -27
  112. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +1 -1
  113. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +22 -14
  114. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +2 -0
  115. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +136 -0
  116. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +14 -3
  117. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +78 -1
  118. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +43 -17
  119. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +30 -26
  120. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +1 -1
  121. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +23 -18
  122. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +8 -8
  123. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +55 -20
  124. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +26 -10
  125. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +7 -6
  126. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +58 -9
  127. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +9 -6
  128. package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +171 -0
  129. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +204 -33
  130. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +3 -7
  131. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +2 -2
  132. package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +1 -1
  133. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +21 -4
  134. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +22 -0
  135. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +5 -2
  136. package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.js +2 -1
  137. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +1 -1
  138. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +2 -2
  139. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +4 -4
  140. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
  141. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +7 -4
  142. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +2 -1
  143. package/vscode/src/vs/workbench/contrib/files/common/files.js +7 -5
  144. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +2 -2
  145. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +2 -2
  146. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +2 -1
  147. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +17 -17
  148. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +2 -2
  149. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +4 -1
  150. package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +22 -19
  151. package/vscode/src/vs/workbench/contrib/output/browser/outputServices.js +2 -38
  152. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +14 -1
  153. package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +3 -8
  154. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +10 -12
  155. package/vscode/src/vs/workbench/contrib/snippets/browser/tabCompletion.js +2 -2
  156. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +2 -2
  157. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +0 -16
  158. package/vscode/src/vs/workbench/contrib/testing/common/observableValue.js +2 -1
  159. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +8 -6
  160. package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +2 -4
  161. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +2 -4
  162. package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +7 -3
  163. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +2 -6
  164. package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +18 -20
  165. package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +9 -13
  166. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +2 -1
  167. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +47 -15
  168. package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +14 -4
  169. package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +22 -3
  170. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.d.ts +1 -1
  171. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +15 -14
  172. package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +12 -7
  173. package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +10 -6
  174. package/vscode/src/vs/workbench/services/extensions/common/extensions.js +27 -11
  175. package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +2 -5
  176. package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.js +7 -11
  177. package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.js +20 -4
  178. package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +24 -16
  179. package/vscode/src/vs/workbench/services/output/common/output.js +1 -2
  180. package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +6 -6
  181. package/vscode/src/vs/workbench/services/preferences/common/preferences.js +4 -3
  182. package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.d.ts +0 -1
  183. package/vscode/src/vs/workbench/services/search/common/fileSearchManager.js +3 -1
  184. package/vscode/src/vs/workbench/services/search/common/search.js +2 -1
  185. package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +1 -2
  186. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +2 -2
  187. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileService.js +3 -8
  188. package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +3 -4
  189. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +1 -0
  190. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +2 -1
  191. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.js +4 -2
  192. package/vscode/src/vs/editor/browser/widget/diffEditorWidget2/diffEditorWidget2.contribution.js +0 -180
  193. package/vscode/src/vs/platform/credentials/common/credentials.d.ts +0 -13
  194. package/vscode/src/vs/platform/credentials/common/credentials.js +0 -3
  195. package/vscode/src/vs/workbench/api/browser/mainThreadKeytar.js +0 -31
  196. package/vscode/src/vs/workbench/browser/iframe.js +0 -16
  197. package/vscode/src/vs/workbench/browser/parts/editor/accessibilityStatus.js +0 -90
  198. package/vscode/src/vs/workbench/browser/parts/editor/tabFocus.js +0 -77
  199. package/vscode/src/vs/workbench/contrib/output/browser/logViewer.js +0 -67
@@ -1,13 +0,0 @@
1
- interface ICredentialsProvider {
2
- getPassword(service: string, account: string): Promise<string | null>;
3
- setPassword(service: string, account: string, password: string): Promise<void>;
4
- deletePassword(service: string, account: string): Promise<boolean>;
5
- findPassword(service: string): Promise<string | null>;
6
- findCredentials(service: string): Promise<Array<{
7
- account: string;
8
- password: string;
9
- }>>;
10
- clear?(): Promise<void>;
11
- }
12
-
13
- export type { ICredentialsProvider };
@@ -1,3 +0,0 @@
1
- import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
2
- const ICredentialsService = ( createDecorator('credentialsService'));
3
- export { ICredentialsService };
@@ -1,31 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
2
- import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
3
- import { MainContext } from '../common/extHost.protocol.js';
4
- import { ICredentialsService } from '../../../platform/credentials/common/credentials.js';
5
- let MainThreadKeytar = class MainThreadKeytar {
6
- constructor(_extHostContext, _credentialsService) {
7
- this._credentialsService = _credentialsService;
8
- }
9
- async $getPassword(service, account) {
10
- return this._credentialsService.getPassword(service, account);
11
- }
12
- async $setPassword(service, account, password) {
13
- return this._credentialsService.setPassword(service, account, password);
14
- }
15
- async $deletePassword(service, account) {
16
- return this._credentialsService.deletePassword(service, account);
17
- }
18
- async $findPassword(service) {
19
- return this._credentialsService.findPassword(service);
20
- }
21
- async $findCredentials(service) {
22
- return this._credentialsService.findCredentials(service);
23
- }
24
- dispose() {
25
- }
26
- };
27
- MainThreadKeytar = __decorate([
28
- extHostNamedCustomer(MainContext.MainThreadKeytar),
29
- ( __param(1, ICredentialsService))
30
- ], MainThreadKeytar);
31
- export { MainThreadKeytar };
@@ -1,16 +0,0 @@
1
- async function parentOriginHash(parentOrigin, salt) {
2
- if (!crypto.subtle) {
3
- throw new Error(`'crypto.subtle' is not available so webviews will not work. This is likely because the editor is not running in a secure context (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).`);
4
- }
5
- const strData = JSON.stringify({ parentOrigin, salt });
6
- const encoder = ( new TextEncoder());
7
- const arrData = encoder.encode(strData);
8
- const hash = await crypto.subtle.digest('sha-256', arrData);
9
- return sha256AsBase32(hash);
10
- }
11
- function sha256AsBase32(bytes) {
12
- const array = Array.from(( new Uint8Array(bytes)));
13
- const hexArray = ( array.map(b => ( b.toString(16)).padStart(2, '0'))).join('');
14
- return ( BigInt(`0x${hexArray}`).toString(32)).padStart(52, '0');
15
- }
16
- export { parentOriginHash };
@@ -1,90 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { Disposable, MutableDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
3
- import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
4
- import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
5
- import { localize } from 'monaco-editor/esm/vs/nls.js';
6
- import { IAccessibilityService } from 'monaco-editor/esm/vs/platform/accessibility/common/accessibility.js';
7
- import { CommandsRegistry } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
8
- import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
9
- import { NotificationPriority, INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
10
- import { IStatusbarService } from '../../../services/statusbar/browser/statusbar.js';
11
- let AccessibilityStatus = class AccessibilityStatus extends Disposable {
12
- constructor(configurationService, notificationService, _accessibilityService, statusbarService) {
13
- super();
14
- this.configurationService = configurationService;
15
- this.notificationService = notificationService;
16
- this._accessibilityService = _accessibilityService;
17
- this.statusbarService = statusbarService;
18
- this.screenReaderNotification = null;
19
- this.promptedScreenReader = false;
20
- this.screenReaderModeElement = this._register(( new MutableDisposable()));
21
- this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(() => this.onScreenReaderModeChange()));
22
- this._register(configurationService.onDidChangeConfiguration(c => {
23
- if (c.affectsConfiguration('editor.accessibilitySupport')) {
24
- this.onScreenReaderModeChange();
25
- }
26
- }));
27
- CommandsRegistry.registerCommand({ id: 'showEditorScreenReaderNotification', handler: () => this.showScreenReaderNotification() });
28
- this.updateScreenReaderModeElement(this._accessibilityService.isScreenReaderOptimized());
29
- }
30
- showScreenReaderNotification() {
31
- this.screenReaderNotification = this.notificationService.prompt(Severity.Info, ( localize(
32
- 'screenReaderDetectedExplanation.question',
33
- "Are you using a screen reader to operate VS Code?"
34
- )), [{
35
- label: ( localize('screenReaderDetectedExplanation.answerYes', "Yes")),
36
- run: () => {
37
- this.configurationService.updateValue('editor.accessibilitySupport', 'on', 2 );
38
- }
39
- }, {
40
- label: ( localize('screenReaderDetectedExplanation.answerNo', "No")),
41
- run: () => {
42
- this.configurationService.updateValue('editor.accessibilitySupport', 'off', 2 );
43
- }
44
- }], {
45
- sticky: true,
46
- priority: NotificationPriority.URGENT
47
- });
48
- Event.once(this.screenReaderNotification.onDidClose)(() => this.screenReaderNotification = null);
49
- }
50
- updateScreenReaderModeElement(visible) {
51
- if (visible) {
52
- if (!this.screenReaderModeElement.value) {
53
- const text = ( localize('screenReaderDetected', "Screen Reader Optimized"));
54
- this.screenReaderModeElement.value = this.statusbarService.addEntry({
55
- name: ( localize('status.editor.screenReaderMode', "Screen Reader Mode")),
56
- text,
57
- ariaLabel: text,
58
- command: 'showEditorScreenReaderNotification',
59
- kind: 'prominent'
60
- }, 'status.editor.screenReaderMode', 1 , 100.6);
61
- }
62
- }
63
- else {
64
- this.screenReaderModeElement.clear();
65
- }
66
- }
67
- onScreenReaderModeChange() {
68
- const screenReaderDetected = this._accessibilityService.isScreenReaderOptimized();
69
- if (screenReaderDetected) {
70
- const screenReaderConfiguration = this.configurationService.getValue('editor.accessibilitySupport');
71
- if (screenReaderConfiguration === 'auto') {
72
- if (!this.promptedScreenReader) {
73
- this.promptedScreenReader = true;
74
- setTimeout(() => this.showScreenReaderNotification(), 100);
75
- }
76
- }
77
- }
78
- if (this.screenReaderNotification) {
79
- this.screenReaderNotification.close();
80
- }
81
- this.updateScreenReaderModeElement(this._accessibilityService.isScreenReaderOptimized());
82
- }
83
- };
84
- AccessibilityStatus = ( __decorate([
85
- ( __param(0, IConfigurationService)),
86
- ( __param(1, INotificationService)),
87
- ( __param(2, IAccessibilityService)),
88
- ( __param(3, IStatusbarService))
89
- ], AccessibilityStatus));
90
- export { AccessibilityStatus };
@@ -1,77 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
3
- import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
4
- import { TabFocus } from 'monaco-editor/esm/vs/editor/browser/config/tabFocus.js';
5
- import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
6
- import { IContextKeyService, RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
7
- import { terminalTabFocusModeContextKey } from '../../../../platform/terminal/common/terminal.js';
8
- const editorTabFocusContextKey = ( new RawContextKey('editorTabFocusMode', false, true));
9
- let TabFocusMode = class TabFocusMode extends Disposable {
10
- constructor(contextKeyService, configurationService) {
11
- super();
12
- this._onDidChange = this._register(( new Emitter()));
13
- this.onDidChange = this._onDidChange.event;
14
- this._editorContext = editorTabFocusContextKey.bindTo(contextKeyService);
15
- this._terminalContext = terminalTabFocusModeContextKey.bindTo(contextKeyService);
16
- const editorConfig = configurationService.getValue('editor.tabFocusMode');
17
- const terminalConfig = configurationService.getValue("terminal.integrated.tabFocusMode" ) ?? editorConfig;
18
- this._editorContext.set(editorConfig);
19
- this._terminalContext.set(terminalConfig);
20
- TabFocus.setTabFocusMode(editorConfig, "editorFocus" );
21
- TabFocus.setTabFocusMode(terminalConfig, "terminalFocus" );
22
- const viewKey = ( new Set());
23
- viewKey.add('focusedView');
24
- this._register(contextKeyService.onDidChangeContext((c) => {
25
- if (c.affectsSome(viewKey)) {
26
- const terminalFocus = contextKeyService.getContextKeyValue('focusedView') === 'terminal';
27
- const context = terminalFocus ? "terminalFocus" : "editorFocus" ;
28
- if (this._previousViewContext === context) {
29
- return;
30
- }
31
- if (terminalFocus) {
32
- this._editorContext.reset();
33
- }
34
- else {
35
- this._terminalContext.reset();
36
- }
37
- this._previousViewContext = context;
38
- this._onDidChange.fire();
39
- }
40
- }));
41
- this._register(configurationService.onDidChangeConfiguration(e => {
42
- if (e.affectsConfiguration('editor.tabFocusMode')) {
43
- const editorConfig = configurationService.getValue('editor.tabFocusMode');
44
- TabFocus.setTabFocusMode(editorConfig, "editorFocus" );
45
- this._editorContext.set(editorConfig);
46
- const terminalConfig = configurationService.getValue("terminal.integrated.tabFocusMode" );
47
- if (terminalConfig === null) {
48
- configurationService.updateValue("terminal.integrated.tabFocusMode" , editorConfig);
49
- TabFocus.setTabFocusMode(editorConfig, "terminalFocus" );
50
- this._terminalContext.set(editorConfig);
51
- }
52
- this._onDidChange.fire();
53
- }
54
- else if (e.affectsConfiguration("terminal.integrated.tabFocusMode" )) {
55
- const terminalConfig = configurationService.getValue("terminal.integrated.tabFocusMode" ) ?? configurationService.getValue('editor.tabFocusMode');
56
- configurationService.updateValue("terminal.integrated.tabFocusMode" , terminalConfig);
57
- TabFocus.setTabFocusMode(terminalConfig, "terminalFocus" );
58
- this._terminalContext.set(terminalConfig);
59
- this._onDidChange.fire();
60
- }
61
- }));
62
- TabFocus.onDidChangeTabFocus(() => {
63
- const focusedView = contextKeyService.getContextKeyValue('focusedView') === 'terminal' ? "terminalFocus" : "editorFocus" ;
64
- if (focusedView === "terminalFocus" ) {
65
- this._terminalContext.set(TabFocus.getTabFocusMode(focusedView));
66
- }
67
- else {
68
- this._editorContext.set(TabFocus.getTabFocusMode(focusedView));
69
- }
70
- });
71
- }
72
- };
73
- TabFocusMode = ( __decorate([
74
- ( __param(0, IContextKeyService)),
75
- ( __param(1, IConfigurationService))
76
- ], TabFocusMode));
77
- export { TabFocusMode, editorTabFocusContextKey };
@@ -1,67 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { localize } from 'monaco-editor/esm/vs/nls.js';
3
- import { basename, dirname } from 'monaco-editor/esm/vs/base/common/path.js';
4
- import { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
5
- import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
6
- import { ITextResourceConfigurationService } from 'monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js';
7
- import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
8
- import { AbstractTextResourceEditor } from '../../../browser/parts/editor/textResourceEditor.js';
9
- import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
10
- import { TextResourceEditorInput } from '../../../common/editor/textResourceEditorInput.js';
11
- import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
12
- import { ITextModelService } from 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
13
- import { LOG_SCHEME } from '../../../services/output/common/output.js';
14
- import { IEditorGroupsService } from '../../../services/editor/common/editorGroupsService.js';
15
- import { IEditorService } from '../../../services/editor/common/editorService.js';
16
- import { ITextFileService } from '../../../services/textfile/common/textfiles.js';
17
- import { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
18
- import { ILabelService } from 'monaco-editor/esm/vs/platform/label/common/label.js';
19
- import { IFilesConfigurationService } from '../../../services/filesConfiguration/common/filesConfigurationService.js';
20
- var LogViewerInput_1, LogViewer_1;
21
- let LogViewerInput = class LogViewerInput extends TextResourceEditorInput {
22
- static { LogViewerInput_1 = this; }
23
- static { this.ID = 'workbench.editorinputs.output'; }
24
- get typeId() {
25
- return LogViewerInput_1.ID;
26
- }
27
- constructor(outputChannelDescriptor, textModelResolverService, textFileService, editorService, fileService, labelService, filesConfigurationService) {
28
- super(( URI.from({ scheme: LOG_SCHEME, path: outputChannelDescriptor.id })), basename(outputChannelDescriptor.file.path), dirname(outputChannelDescriptor.file.path), undefined, undefined, textModelResolverService, textFileService, editorService, fileService, labelService, filesConfigurationService);
29
- }
30
- };
31
- LogViewerInput = LogViewerInput_1 = ( __decorate([
32
- ( __param(1, ITextModelService)),
33
- ( __param(2, ITextFileService)),
34
- ( __param(3, IEditorService)),
35
- ( __param(4, IFileService)),
36
- ( __param(5, ILabelService)),
37
- ( __param(6, IFilesConfigurationService))
38
- ], LogViewerInput));
39
- let LogViewer = class LogViewer extends AbstractTextResourceEditor {
40
- static { LogViewer_1 = this; }
41
- static { this.LOG_VIEWER_EDITOR_ID = 'workbench.editors.logViewer'; }
42
- constructor(telemetryService, instantiationService, storageService, textResourceConfigurationService, themeService, editorGroupService, editorService, fileService) {
43
- super(LogViewer_1.LOG_VIEWER_EDITOR_ID, telemetryService, instantiationService, storageService, textResourceConfigurationService, themeService, editorGroupService, editorService, fileService);
44
- }
45
- getConfigurationOverrides() {
46
- const options = super.getConfigurationOverrides();
47
- options.wordWrap = 'off';
48
- options.folding = false;
49
- options.scrollBeyondLastLine = false;
50
- options.renderValidationDecorations = 'editable';
51
- return options;
52
- }
53
- getAriaLabel() {
54
- return ( localize('logViewerAriaLabel', "Log viewer"));
55
- }
56
- };
57
- LogViewer = LogViewer_1 = ( __decorate([
58
- ( __param(0, ITelemetryService)),
59
- ( __param(1, IInstantiationService)),
60
- ( __param(2, IStorageService)),
61
- ( __param(3, ITextResourceConfigurationService)),
62
- ( __param(4, IThemeService)),
63
- ( __param(5, IEditorGroupsService)),
64
- ( __param(6, IEditorService)),
65
- ( __param(7, IFileService))
66
- ], LogViewer));
67
- export { LogViewer, LogViewerInput };