@codingame/monaco-vscode-api 1.78.5 → 1.78.6

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 (80) hide show
  1. package/dist/node_modules/tslib/tslib.es6.js +2 -2
  2. package/dist/vscode/vs/platform/extensionManagement/common/extensionManagement.js +1 -2
  3. package/dist/vscode/vs/platform/extensionManagement/common/implicitActivationEvents.js +1 -1
  4. package/dist/vscode/vs/platform/files/common/fileService.js +3 -3
  5. package/dist/vscode/vs/platform/files/common/inMemoryFilesystemProvider.js +1 -1
  6. package/dist/vscode/vs/platform/telemetry/common/telemetryUtils.js +1 -1
  7. package/dist/vscode/vs/platform/workspaces/common/workspaces.js +1 -1
  8. package/dist/vscode/vs/workbench/api/browser/mainThreadDebugService.js +1 -1
  9. package/dist/vscode/vs/workbench/api/browser/mainThreadDiagnostics.js +1 -1
  10. package/dist/vscode/vs/workbench/api/browser/mainThreadDocuments.js +4 -4
  11. package/dist/vscode/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +1 -1
  12. package/dist/vscode/vs/workbench/api/browser/mainThreadFileSystem.js +1 -1
  13. package/dist/vscode/vs/workbench/api/browser/mainThreadQuickOpen.js +1 -1
  14. package/dist/vscode/vs/workbench/api/common/cache.js +1 -1
  15. package/dist/vscode/vs/workbench/api/common/configurationExtensionPoint.js +1 -1
  16. package/dist/vscode/vs/workbench/api/common/extHostApiDeprecationService.js +1 -1
  17. package/dist/vscode/vs/workbench/api/common/extHostCommands.js +2 -2
  18. package/dist/vscode/vs/workbench/api/common/extHostDebugService.js +2 -2
  19. package/dist/vscode/vs/workbench/api/common/extHostDecorations.js +1 -1
  20. package/dist/vscode/vs/workbench/api/common/extHostDiagnostics.js +3 -3
  21. package/dist/vscode/vs/workbench/api/common/extHostDocumentsAndEditors.js +3 -3
  22. package/dist/vscode/vs/workbench/api/common/extHostExtensionActivator.js +1 -1
  23. package/dist/vscode/vs/workbench/api/common/extHostExtensionService.js +1 -1
  24. package/dist/vscode/vs/workbench/api/common/extHostFileSystem.js +1 -1
  25. package/dist/vscode/vs/workbench/api/common/extHostFileSystemInfo.js +1 -1
  26. package/dist/vscode/vs/workbench/api/common/extHostLanguages.js +1 -1
  27. package/dist/vscode/vs/workbench/api/common/extHostLocalizationService.js +1 -1
  28. package/dist/vscode/vs/workbench/api/common/extHostQuickOpen.js +2 -2
  29. package/dist/vscode/vs/workbench/api/common/extHostTextEditor.js +1 -1
  30. package/dist/vscode/vs/workbench/api/common/extHostTypeConverters.js +2 -2
  31. package/dist/vscode/vs/workbench/api/common/extHostTypes.js +4 -4
  32. package/dist/vscode/vs/workbench/api/common/extHostWorkspace.js +1 -1
  33. package/dist/vscode/vs/workbench/browser/parts/editor/editor.contribution.js +6 -795
  34. package/dist/vscode/vs/workbench/browser/parts/editor/editorActions.js +110 -1487
  35. package/dist/vscode/vs/workbench/browser/parts/editor/editorPane.js +1 -1
  36. package/dist/vscode/vs/workbench/browser/parts/editor/editorQuickAccess.js +1 -1
  37. package/dist/vscode/vs/workbench/browser/parts/editor/editorWithViewState.js +1 -1
  38. package/dist/vscode/vs/workbench/browser/quickaccess.js +2 -4
  39. package/dist/vscode/vs/workbench/common/contextkeys.js +1 -30
  40. package/dist/vscode/vs/workbench/common/editor.js +1 -1
  41. package/dist/vscode/vs/workbench/common/resources.js +3 -3
  42. package/dist/vscode/vs/workbench/contrib/debug/browser/debugAdapterManager.js +1 -1
  43. package/dist/vscode/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +1 -1
  44. package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorContribution.js +5 -5
  45. package/dist/vscode/vs/workbench/contrib/debug/browser/debugSession.js +2 -2
  46. package/dist/vscode/vs/workbench/contrib/debug/browser/debugToolBar.js +1 -1
  47. package/dist/vscode/vs/workbench/contrib/debug/common/debugModel.js +3 -3
  48. package/dist/vscode/vs/workbench/contrib/debug/common/debugUtils.js +1 -1
  49. package/dist/vscode/vs/workbench/contrib/files/common/explorerFileNestingTrie.js +1 -1
  50. package/dist/vscode/vs/workbench/contrib/snippets/browser/snippetsFile.js +1 -1
  51. package/dist/vscode/vs/workbench/contrib/snippets/browser/snippetsService.js +5 -3
  52. package/dist/vscode/vs/workbench/contrib/testing/common/testItemCollection.js +1 -1
  53. package/dist/vscode/vs/workbench/services/configuration/browser/configurationService.js +1 -1
  54. package/dist/vscode/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +1 -1
  55. package/dist/vscode/vs/workbench/services/configurationResolver/common/variableResolver.js +1 -1
  56. package/dist/vscode/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +10 -10
  57. package/dist/vscode/vs/workbench/services/extensions/common/extensionsRegistry.js +3 -3
  58. package/dist/vscode/vs/workbench/services/keybinding/browser/keybindingService.js +3 -3
  59. package/dist/vscode/vs/workbench/services/keybinding/browser/unboundCommands.js +1 -1
  60. package/dist/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +1 -2
  61. package/dist/vscode/vs/workbench/services/layout/browser/layoutService.js +1 -9
  62. package/dist/vscode/vs/workbench/services/output/common/output.js +1 -1
  63. package/dist/vscode/vs/workbench/services/preferences/common/preferencesModels.js +1 -1
  64. package/dist/vscode/vs/workbench/services/search/common/searchService.js +7 -7
  65. package/dist/vscode/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +2 -2
  66. package/dist/vscode/vs/workbench/services/textMate/browser/workerHost/textMateWorkerHost.js +1 -1
  67. package/dist/vscode/vs/workbench/services/textMate/common/TMGrammarFactory.js +1 -1
  68. package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModelManager.js +4 -4
  69. package/dist/vscode/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +3 -3
  70. package/dist/vscode/vs/workbench/services/themes/browser/workbenchThemeService.js +1 -1
  71. package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +11 -7
  72. package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyService.js +1 -1
  73. package/monaco-editor-treemending.patch +531 -531
  74. package/package.json +1 -1
  75. package/dist/assets/editorstatus.css +0 -51
  76. package/dist/assets/panelpart.css +0 -75
  77. package/dist/vscode/vs/workbench/browser/actions/layoutActions.js +0 -1201
  78. package/dist/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +0 -146
  79. package/dist/vscode/vs/workbench/browser/parts/editor/editorStatus.js +0 -460
  80. package/dist/vscode/vs/workbench/browser/parts/panel/panelActions.js +0 -422
@@ -165,7 +165,7 @@ class EditorMemento extends Disposable {
165
165
  if (!this.editorDisposables) {
166
166
  this.editorDisposables = ( new Map());
167
167
  }
168
- if (!this.editorDisposables.has(editor)) {
168
+ if (!( this.editorDisposables.has(editor))) {
169
169
  this.editorDisposables.set(editor, Event.once(editor.onWillDispose)(() => {
170
170
  this.clearEditorState(resource);
171
171
  this.editorDisposables?.delete(editor);
@@ -87,7 +87,7 @@ let BaseEditorQuickAccessProvider = class BaseEditorQuickAccessProvider extends
87
87
  const editors = this.doGetEditors();
88
88
  const mapGroupIdToGroupAriaLabel = ( new Map());
89
89
  for (const { groupId } of editors) {
90
- if (!mapGroupIdToGroupAriaLabel.has(groupId)) {
90
+ if (!( mapGroupIdToGroupAriaLabel.has(groupId))) {
91
91
  const group = this.editorGroupService.getGroup(groupId);
92
92
  if (group) {
93
93
  mapGroupIdToGroupAriaLabel.set(groupId, group.ariaLabel);
@@ -50,7 +50,7 @@ let AbstractEditorWithViewState = class AbstractEditorWithViewState extends Edit
50
50
  if (!this.editorViewStateDisposables) {
51
51
  this.editorViewStateDisposables = ( new Map());
52
52
  }
53
- if (!this.editorViewStateDisposables.has(input)) {
53
+ if (!( this.editorViewStateDisposables.has(input))) {
54
54
  this.editorViewStateDisposables.set(input, Event.once(input.onWillDispose)(() => {
55
55
  this.clearEditorViewState(resource, this.group);
56
56
  this.editorViewStateDisposables?.delete(input);
@@ -2,9 +2,7 @@ import { ContextKeyExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/
2
2
  import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
3
3
  import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
4
4
  const inQuickPickContextKeyValue = 'inQuickOpen';
5
- const inQuickPickContext = ContextKeyExpr.has(inQuickPickContextKeyValue);
6
- const defaultQuickAccessContextKeyValue = 'inFilesPicker';
7
- ( ContextKeyExpr.and(inQuickPickContext, ContextKeyExpr.has(defaultQuickAccessContextKeyValue)));
5
+ const inQuickPickContext = ( ContextKeyExpr.has(inQuickPickContextKeyValue));
8
6
  function getQuickNavigateHandler(id, next) {
9
7
  return accessor => {
10
8
  const keybindingService = accessor.get(IKeybindingService);
@@ -14,4 +12,4 @@ function getQuickNavigateHandler(id, next) {
14
12
  quickInputService.navigate(!!next, quickNavigate);
15
13
  };
16
14
  }
17
- export { defaultQuickAccessContextKeyValue, getQuickNavigateHandler, inQuickPickContext, inQuickPickContextKeyValue };
15
+ export { getQuickNavigateHandler, inQuickPickContext, inQuickPickContextKeyValue };
@@ -7,47 +7,18 @@ import { ILanguageService } from 'monaco-editor/esm/vs/editor/common/languages/l
7
7
  import { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
8
8
  import { IModelService } from 'monaco-editor/esm/vs/editor/common/services/model.js';
9
9
  import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
10
- const IsFullscreenContext = ( new RawContextKey('isFullscreen', false, ( localize('isFullscreen', "Whether the window is in fullscreen mode"))));
11
- const ActiveEditorDirtyContext = ( new RawContextKey('activeEditorIsDirty', false, ( localize('activeEditorIsDirty', "Whether the active editor has unsaved changes"))));
12
- const ActiveEditorPinnedContext = ( new RawContextKey('activeEditorIsNotPreview', false, ( localize(
13
- 'activeEditorIsNotPreview',
14
- "Whether the active editor is not in preview mode"
15
- ))));
16
- const ActiveEditorLastInGroupContext = ( new RawContextKey('activeEditorIsLastInGroup', false, ( localize(
17
- 'activeEditorIsLastInGroup',
18
- "Whether the active editor is the last one in its group"
19
- ))));
20
10
  const ActiveEditorStickyContext = ( new RawContextKey('activeEditorIsPinned', false, ( localize('activeEditorIsPinned', "Whether the active editor is pinned"))));
21
11
  const ActiveEditorCanSplitInGroupContext = ( new RawContextKey('activeEditorCanSplitInGroup', true));
22
- const ActiveEditorAvailableEditorIdsContext = ( new RawContextKey('activeEditorAvailableEditorIds', '', ( localize(
23
- 'activeEditorAvailableEditorIds',
24
- "The available editor identifiers that are usable for the active editor"
25
- ))));
26
12
  const TextCompareEditorVisibleContext = ( new RawContextKey('textCompareEditorVisible', false, ( localize('textCompareEditorVisible', "Whether a text compare editor is visible"))));
27
13
  const TextCompareEditorActiveContext = ( new RawContextKey('textCompareEditorActive', false, ( localize('textCompareEditorActive', "Whether a text compare editor is active"))));
28
14
  const SideBySideEditorActiveContext = ( new RawContextKey('sideBySideEditorActive', false, ( localize('sideBySideEditorActive', "Whether a side by side editor is active"))));
29
- const EditorGroupEditorsCountContext = ( new RawContextKey('groupEditorsCount', 0, ( localize('groupEditorsCount', "The number of opened editor groups"))));
30
15
  const ActiveEditorGroupEmptyContext = ( new RawContextKey('activeEditorGroupEmpty', false, ( localize('activeEditorGroupEmpty', "Whether the active editor group is empty"))));
31
16
  const ActiveEditorGroupLockedContext = ( new RawContextKey('activeEditorGroupLocked', false, ( localize('activeEditorGroupLocked', "Whether the active editor group is locked"))));
32
17
  const MultipleEditorGroupsContext = ( new RawContextKey('multipleEditorGroups', false, ( localize('multipleEditorGroups', "Whether there are multiple editor groups opened"))));
33
- const InEditorZenModeContext = ( new RawContextKey('inZenMode', false, ( localize('inZenMode', "Whether Zen mode is enabled"))));
34
- const IsCenteredLayoutContext = ( new RawContextKey('isCenteredLayout', false, ( localize('isCenteredLayout', "Whether centered layout is enabled"))));
35
- const EditorAreaVisibleContext = ( new RawContextKey('editorAreaVisible', true, ( localize('editorAreaVisible', "Whether the editor area is visible"))));
36
- const EditorTabsVisibleContext = ( new RawContextKey('editorTabsVisible', true, ( localize('editorTabsVisible', "Whether editor tabs are visible"))));
37
- const SideBarVisibleContext = ( new RawContextKey('sideBarVisible', false, ( localize('sideBarVisible', "Whether the sidebar is visible"))));
38
18
  const NotificationFocusedContext = ( new RawContextKey('notificationFocus', true, ( localize('notificationFocus', "Whether a notification has keyboard focus"))));
39
19
  const NotificationsCenterVisibleContext = ( new RawContextKey('notificationCenterVisible', false, ( localize('notificationCenterVisible', "Whether the notifications center is visible"))));
40
20
  const NotificationsToastsVisibleContext = ( new RawContextKey('notificationToastsVisible', false, ( localize('notificationToastsVisible', "Whether a notification toast is visible"))));
41
- const AuxiliaryBarVisibleContext = ( new RawContextKey('auxiliaryBarVisible', false, ( localize('auxiliaryBarVisible', "Whether the auxiliary bar is visible"))));
42
21
  const PanelFocusContext = ( new RawContextKey('panelFocus', false, ( localize('panelFocus', "Whether the panel has keyboard focus"))));
43
- const PanelPositionContext = ( new RawContextKey('panelPosition', 'bottom', ( localize('panelPosition', "The position of the panel, always 'bottom'"))));
44
- const PanelAlignmentContext = ( new RawContextKey('panelAlignment', 'center', ( localize(
45
- 'panelAlignment',
46
- "The alignment of the panel, either 'center', 'left', 'right' or 'justify'"
47
- ))));
48
- const PanelVisibleContext = ( new RawContextKey('panelVisible', false, ( localize('panelVisible', "Whether the panel is visible"))));
49
- const PanelMaximizedContext = ( new RawContextKey('panelMaximized', false, ( localize('panelMaximized', "Whether the panel is maximized"))));
50
- const FocusedViewContext = ( new RawContextKey('focusedView', '', ( localize('focusedView', "The identifier of the view that has keyboard focus"))));
51
22
  let ResourceContextKey = class ResourceContextKey {
52
23
  constructor(_contextKeyService, _fileService, _languageService, _modelService) {
53
24
  this._contextKeyService = _contextKeyService;
@@ -167,4 +138,4 @@ ResourceContextKey = ( __decorate([
167
138
  ( __param(2, ILanguageService)),
168
139
  ( __param(3, IModelService))
169
140
  ], ResourceContextKey));
170
- export { ActiveEditorAvailableEditorIdsContext, ActiveEditorCanSplitInGroupContext, ActiveEditorDirtyContext, ActiveEditorGroupEmptyContext, ActiveEditorGroupLockedContext, ActiveEditorLastInGroupContext, ActiveEditorPinnedContext, ActiveEditorStickyContext, AuxiliaryBarVisibleContext, EditorAreaVisibleContext, EditorGroupEditorsCountContext, EditorTabsVisibleContext, FocusedViewContext, InEditorZenModeContext, IsCenteredLayoutContext, IsFullscreenContext, MultipleEditorGroupsContext, NotificationFocusedContext, NotificationsCenterVisibleContext, NotificationsToastsVisibleContext, PanelAlignmentContext, PanelFocusContext, PanelMaximizedContext, PanelPositionContext, PanelVisibleContext, ResourceContextKey, SideBarVisibleContext, SideBySideEditorActiveContext, TextCompareEditorActiveContext, TextCompareEditorVisibleContext };
141
+ export { ActiveEditorCanSplitInGroupContext, ActiveEditorGroupEmptyContext, ActiveEditorGroupLockedContext, ActiveEditorStickyContext, MultipleEditorGroupsContext, NotificationFocusedContext, NotificationsCenterVisibleContext, NotificationsToastsVisibleContext, PanelFocusContext, ResourceContextKey, SideBySideEditorActiveContext, TextCompareEditorActiveContext, TextCompareEditorVisibleContext };
@@ -266,7 +266,7 @@ class EditorFactoryRegistry {
266
266
  return assertIsDefined(this.fileEditorFactory);
267
267
  }
268
268
  registerEditorSerializer(editorTypeId, ctor) {
269
- if (this.editorSerializerConstructors.has(editorTypeId) || this.editorSerializerInstances.has(editorTypeId)) {
269
+ if (( this.editorSerializerConstructors.has(editorTypeId)) || ( this.editorSerializerInstances.has(editorTypeId))) {
270
270
  throw new Error(`A editor serializer with type ID '${editorTypeId}' was already registered.`);
271
271
  }
272
272
  if (!this.instantiationService) {
@@ -33,7 +33,7 @@ let ResourceGlobMatcher = class ResourceGlobMatcher extends Disposable {
33
33
  let changed = false;
34
34
  this.contextService.getWorkspace().folders.forEach(folder => {
35
35
  const rootExcludes = this.globFn(folder.uri);
36
- if (!this.mapRootToExpressionConfig.has(( folder.uri.toString())) || !equals(this.mapRootToExpressionConfig.get(( folder.uri.toString())), rootExcludes)) {
36
+ if (!( this.mapRootToExpressionConfig.has(( folder.uri.toString()))) || !equals(this.mapRootToExpressionConfig.get(( folder.uri.toString())), rootExcludes)) {
37
37
  changed = true;
38
38
  this.mapRootToParsedExpression.set(( folder.uri.toString()), parse(rootExcludes));
39
39
  this.mapRootToExpressionConfig.set(( folder.uri.toString()), deepClone(rootExcludes));
@@ -50,7 +50,7 @@ let ResourceGlobMatcher = class ResourceGlobMatcher extends Disposable {
50
50
  }
51
51
  });
52
52
  const globalExcludes = this.globFn();
53
- if (!this.mapRootToExpressionConfig.has(ResourceGlobMatcher.NO_ROOT) || !equals(this.mapRootToExpressionConfig.get(ResourceGlobMatcher.NO_ROOT), globalExcludes)) {
53
+ if (!( this.mapRootToExpressionConfig.has(ResourceGlobMatcher.NO_ROOT)) || !equals(this.mapRootToExpressionConfig.get(ResourceGlobMatcher.NO_ROOT), globalExcludes)) {
54
54
  changed = true;
55
55
  this.mapRootToParsedExpression.set(ResourceGlobMatcher.NO_ROOT, parse(globalExcludes));
56
56
  this.mapRootToExpressionConfig.set(ResourceGlobMatcher.NO_ROOT, deepClone(globalExcludes));
@@ -62,7 +62,7 @@ let ResourceGlobMatcher = class ResourceGlobMatcher extends Disposable {
62
62
  matches(resource, hasSibling) {
63
63
  const folder = this.contextService.getWorkspaceFolder(resource);
64
64
  let expressionForRoot;
65
- if (folder && this.mapRootToParsedExpression.has(( folder.uri.toString()))) {
65
+ if (folder && ( this.mapRootToParsedExpression.has(( folder.uri.toString())))) {
66
66
  expressionForRoot = this.mapRootToParsedExpression.get(( folder.uri.toString()));
67
67
  }
68
68
  else {
@@ -329,7 +329,7 @@ let AdapterManager = class AdapterManager extends Disposable {
329
329
  if (descriptor.id && !!this.earlyActivatedExtensions?.has(descriptor.id)) {
330
330
  suggestedCandidates.push(d);
331
331
  }
332
- else if (this.usedDebugTypes.has(d.type)) {
332
+ else if (( this.usedDebugTypes.has(d.type))) {
333
333
  suggestedCandidates.push(d);
334
334
  }
335
335
  else {
@@ -103,7 +103,7 @@ let ConfigurationManager = class ConfigurationManager {
103
103
  };
104
104
  let resolvedType = config.type ?? type;
105
105
  let result = config;
106
- for (let seen = ( new Set()); result && !seen.has(resolvedType);) {
106
+ for (let seen = ( new Set()); result && !( seen.has(resolvedType));) {
107
107
  seen.add(resolvedType);
108
108
  result = await resolveDebugConfigurationForType(resolvedType, result);
109
109
  result = await resolveDebugConfigurationForType('*', result);
@@ -118,7 +118,7 @@ function createInlineValueDecorationsInsideRange(expressions, range, model, word
118
118
  if (lineNumbers) {
119
119
  for (const lineNumber of lineNumbers) {
120
120
  if (range.containsPosition(( new Position(lineNumber, 0)))) {
121
- if (!lineToNamesMap.has(lineNumber)) {
121
+ if (!( lineToNamesMap.has(lineNumber))) {
122
122
  lineToNamesMap.set(lineNumber, []);
123
123
  }
124
124
  if (lineToNamesMap.get(lineNumber).indexOf(name) === -1) {
@@ -160,7 +160,7 @@ function getWordToLineNumbersMap(model) {
160
160
  const wordMatch = DEFAULT_WORD_REGEXP.exec(tokenStr);
161
161
  if (wordMatch) {
162
162
  const word = wordMatch[0];
163
- if (!result.has(word)) {
163
+ if (!( result.has(word))) {
164
164
  result.set(word, []);
165
165
  }
166
166
  result.get(word).push(lineNumber);
@@ -226,7 +226,7 @@ let DebugEditorContribution = class DebugEditorContribution {
226
226
  this.toDispose.push(this.editor.onDidScrollChange(() => {
227
227
  this.hideHoverWidget();
228
228
  const model = this.editor.getModel();
229
- if (model && this.languageFeaturesService.inlineValuesProvider.has(model)) {
229
+ if (model && ( this.languageFeaturesService.inlineValuesProvider.has(model))) {
230
230
  this.updateInlineValuesScheduler.schedule();
231
231
  }
232
232
  }));
@@ -522,7 +522,7 @@ let DebugEditorContribution = class DebugEditorContribution {
522
522
  const separator = ', ';
523
523
  const model = this.editor.getModel();
524
524
  const inlineValuesSetting = this.configurationService.getValue('debug').inlineValues;
525
- const inlineValuesTurnedOn = inlineValuesSetting === true || inlineValuesSetting === 'on' || (inlineValuesSetting === 'auto' && model && this.languageFeaturesService.inlineValuesProvider.has(model));
525
+ const inlineValuesTurnedOn = inlineValuesSetting === true || inlineValuesSetting === 'on' || (inlineValuesSetting === 'auto' && model && ( this.languageFeaturesService.inlineValuesProvider.has(model)));
526
526
  if (!inlineValuesTurnedOn || !model || !stackFrame || ( model.uri.toString()) !== ( stackFrame.source.uri.toString())) {
527
527
  if (!this.removeInlineValuesScheduler.isScheduled()) {
528
528
  this.removeInlineValuesScheduler.schedule();
@@ -531,7 +531,7 @@ let DebugEditorContribution = class DebugEditorContribution {
531
531
  }
532
532
  this.removeInlineValuesScheduler.cancel();
533
533
  let allDecorations;
534
- if (this.languageFeaturesService.inlineValuesProvider.has(model)) {
534
+ if (( this.languageFeaturesService.inlineValuesProvider.has(model))) {
535
535
  const findVariable = async (_key, caseSensitiveLookup) => {
536
536
  const scopes = await stackFrame.getMostSpecificScopes(stackFrame.range);
537
537
  const key = caseSensitiveLookup ? _key : _key.toLowerCase();
@@ -727,7 +727,7 @@ let DebugSession = class DebugSession {
727
727
  this.threadIds = [];
728
728
  data.threads.forEach(thread => {
729
729
  this.threadIds.push(thread.id);
730
- if (!this.threads.has(thread.id)) {
730
+ if (!( this.threads.has(thread.id))) {
731
731
  this.threads.set(thread.id, ( new Thread(this, thread.name, thread.id)));
732
732
  }
733
733
  else if (thread.name) {
@@ -808,7 +808,7 @@ let DebugSession = class DebugSession {
808
808
  this.stoppedDetails.push(event.body);
809
809
  await this.fetchThreads(event.body);
810
810
  const focusedThread = this.debugService.getViewModel().focusedThread;
811
- const focusedThreadDoesNotExist = focusedThread !== undefined && focusedThread.session === this && !this.threads.has(focusedThread.threadId);
811
+ const focusedThreadDoesNotExist = focusedThread !== undefined && focusedThread.session === this && !( this.threads.has(focusedThread.threadId));
812
812
  if (focusedThreadDoesNotExist) {
813
813
  this.debugService.focusStackFrame(undefined, undefined);
814
814
  }
@@ -257,7 +257,7 @@ const registerDebugToolBarItem = (id, title, order, icon, when, precondition, al
257
257
  }));
258
258
  };
259
259
  MenuRegistry.onDidChangeMenu(e => {
260
- if (e.has(MenuId.DebugToolBar)) {
260
+ if (( e.has(MenuId.DebugToolBar))) {
261
261
  dispose(debugViewTitleItems);
262
262
  const items = MenuRegistry.getMenuItems(MenuId.DebugToolBar);
263
263
  for (const i of items) {
@@ -373,7 +373,7 @@ class StackFrame {
373
373
  let id = 0;
374
374
  do {
375
375
  id = stringHash(`${rs.name}:${rs.line}:${rs.column}`, id);
376
- } while (usedIds.has(id));
376
+ } while (( (usedIds.has(id))));
377
377
  usedIds.add(id);
378
378
  return (
379
379
  (new Scope(
@@ -923,7 +923,7 @@ class ExceptionBreakpoint extends BaseBreakpoint {
923
923
  return true;
924
924
  }
925
925
  isSupportedSession(sessionId) {
926
- return sessionId ? this.supportedSessions.has(sessionId) : this.fallback;
926
+ return sessionId ? ( (this.supportedSessions.has(sessionId))) : this.fallback;
927
927
  }
928
928
  matches(filter) {
929
929
  return this.filter === filter.filter && this.label === filter.label && this.supportsCondition === !!filter.supportsCondition && this.conditionDescription === filter.conditionDescription && this.description === filter.description;
@@ -1056,7 +1056,7 @@ let DebugModel = class DebugModel {
1056
1056
  let topCallStack = Promise.resolve();
1057
1057
  const wholeCallStack = ( (new Promise((c, e) => {
1058
1058
  topCallStack = thread.fetchCallStack(1).then(() => {
1059
- if (!this.schedulers.has(thread.getId())) {
1059
+ if (!( (this.schedulers.has(thread.getId())))) {
1060
1060
  this.schedulers.set(thread.getId(), ( (new RunOnceScheduler(() => {
1061
1061
  thread.fetchCallStack(19).then(() => {
1062
1062
  const stale = thread.getStaleCallStack();
@@ -77,7 +77,7 @@ function getExactExpressionStartAndEnd(lineContent, looseStart, looseEnd) {
77
77
  { start: 0, end: 0 };
78
78
  }
79
79
  async function getEvaluatableExpressionAtPosition(languageFeaturesService, model, position, token) {
80
- if (languageFeaturesService.evaluatableExpressionProvider.has(model)) {
80
+ if (( (languageFeaturesService.evaluatableExpressionProvider.has(model)))) {
81
81
  const supports = languageFeaturesService.evaluatableExpressionProvider.ordered(model);
82
82
  const results = coalesce(await Promise.all(( (supports.map(async (support) => {
83
83
  try {
@@ -37,7 +37,7 @@ class ExplorerFileNestingTrie {
37
37
  }
38
38
  }
39
39
  const findAllRootAncestors = (file, seen = ( new Set())) => {
40
- if (seen.has(file)) {
40
+ if (( seen.has(file))) {
41
41
  return [];
42
42
  }
43
43
  seen.add(file);
@@ -33,7 +33,7 @@ class SnippetBodyInsights {
33
33
  const marker = stack.shift();
34
34
  if (marker instanceof Variable) {
35
35
  if (marker.children.length === 0 && !KnownSnippetVariableNames[marker.name]) {
36
- const index = placeholders.has(marker.name) ? placeholders.get(marker.name) : ++placeholderMax;
36
+ const index = ( placeholders.has(marker.name)) ? placeholders.get(marker.name) : ++placeholderMax;
37
37
  placeholders.set(marker.name, index);
38
38
  const synthetic = ( new Placeholder(index)).appendChild(( new Text(marker.name)));
39
39
  textmateSnippet.replace(marker, [synthetic]);
@@ -121,15 +121,17 @@ let SnippetEnablement = class SnippetEnablement {
121
121
  this._ignored = isStringArray(data) ? ( (new Set(data))) : ( (new Set()));
122
122
  }
123
123
  isIgnored(id) {
124
- return this._ignored.has(id);
124
+ return (
125
+ (this._ignored.has(id))
126
+ );
125
127
  }
126
128
  updateIgnored(id, value) {
127
129
  let changed = false;
128
- if (this._ignored.has(id) && !value) {
130
+ if (( (this._ignored.has(id))) && !value) {
129
131
  this._ignored.delete(id);
130
132
  changed = true;
131
133
  }
132
- else if (!this._ignored.has(id) && value) {
134
+ else if (!( (this._ignored.has(id))) && value) {
133
135
  this._ignored.add(id);
134
136
  changed = true;
135
137
  }
@@ -39,7 +39,7 @@ const createTestItemChildren = (api, getApi, checkCtor) => {
39
39
  if (itemController !== api.controllerId) {
40
40
  throw new MixedTestItemController(item.id, itemController, api.controllerId);
41
41
  }
42
- if (newMapped.has(item.id)) {
42
+ if (( newMapped.has(item.id))) {
43
43
  throw new DuplicateTestItemError(item.id);
44
44
  }
45
45
  newMapped.set(item.id, item);
@@ -811,7 +811,7 @@ class WorkspaceService extends Disposable {
811
811
  changes.push(this._configuration.compareAndDeleteFolderConfiguration(key));
812
812
  }
813
813
  }
814
- const toInitialize = this.workspace.folders.filter(folder => !this.cachedFolderConfigs.has(folder.uri));
814
+ const toInitialize = this.workspace.folders.filter(folder => !( (this.cachedFolderConfigs.has(folder.uri))));
815
815
  if (toInitialize.length) {
816
816
  const folderConfigurations = await this.loadFolderConfigurations(toInitialize);
817
817
  folderConfigurations.forEach((folderConfiguration, index) => {
@@ -168,7 +168,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
168
168
  break;
169
169
  }
170
170
  default:
171
- if (this._contributedVariables.has(variable)) {
171
+ if (( this._contributedVariables.has(variable))) {
172
172
  result = await this._contributedVariables.get(variable)();
173
173
  }
174
174
  }
@@ -74,7 +74,7 @@ class AbstractVariableResolverService {
74
74
  throw new Error('resolveWithInteraction not implemented.');
75
75
  }
76
76
  contributeVariable(variable, resolution) {
77
- if (this._contributedVariables.has(variable)) {
77
+ if (( this._contributedVariables.has(variable))) {
78
78
  throw new Error('Variable ' + variable + ' is contributed twice.');
79
79
  }
80
80
  else {
@@ -33,7 +33,7 @@ class ExtensionDescriptionRegistry {
33
33
  this._extensionsArr = [];
34
34
  this._activationMap = ( new Map());
35
35
  for (const extensionDescription of this._extensionDescriptions) {
36
- if (this._extensionsMap.has(extensionDescription.identifier)) {
36
+ if (( this._extensionsMap.has(extensionDescription.identifier))) {
37
37
  console.error('Extension `' + extensionDescription.identifier.value + '` is already registered');
38
38
  continue;
39
39
  }
@@ -45,7 +45,7 @@ class ExtensionDescriptionRegistry {
45
45
  if (activationEvent === 'onUri') {
46
46
  activationEvent = `onUri:${ExtensionIdentifier.toKey(extensionDescription.identifier)}`;
47
47
  }
48
- if (!this._activationMap.has(activationEvent)) {
48
+ if (!( this._activationMap.has(activationEvent))) {
49
49
  this._activationMap.set(activationEvent, []);
50
50
  }
51
51
  this._activationMap.get(activationEvent).push(extensionDescription);
@@ -75,7 +75,7 @@ class ExtensionDescriptionRegistry {
75
75
  this._nodesArr = [];
76
76
  }
77
77
  addNode(id) {
78
- if (!this._nodesSet.has(id)) {
78
+ if (!( this._nodesSet.has(id))) {
79
79
  this._nodesSet.add(id);
80
80
  this._nodesArr.push(id);
81
81
  }
@@ -83,7 +83,7 @@ class ExtensionDescriptionRegistry {
83
83
  addArc(from, to) {
84
84
  this.addNode(from);
85
85
  this.addNode(to);
86
- if (this._arcs.has(from)) {
86
+ if (( this._arcs.has(from))) {
87
87
  this._arcs.get(from).push(to);
88
88
  }
89
89
  else {
@@ -91,7 +91,7 @@ class ExtensionDescriptionRegistry {
91
91
  }
92
92
  }
93
93
  getArcs(id) {
94
- if (this._arcs.has(id)) {
94
+ if (( this._arcs.has(id))) {
95
95
  return this._arcs.get(id);
96
96
  }
97
97
  return [];
@@ -99,7 +99,7 @@ class ExtensionDescriptionRegistry {
99
99
  hasOnlyGoodArcs(id, good) {
100
100
  const dependencies = G.getArcs(id);
101
101
  for (let i = 0; i < dependencies.length; i++) {
102
- if (!good.has(dependencies[i])) {
102
+ if (!( good.has(dependencies[i]))) {
103
103
  return false;
104
104
  }
105
105
  }
@@ -120,7 +120,7 @@ class ExtensionDescriptionRegistry {
120
120
  }
121
121
  const good = ( new Set());
122
122
  G.getNodes().filter(id => G.getArcs(id).length === 0).forEach(id => good.add(id));
123
- const nodes = G.getNodes().filter(id => !good.has(id));
123
+ const nodes = G.getNodes().filter(id => !( good.has(id)));
124
124
  let madeProgress;
125
125
  do {
126
126
  madeProgress = false;
@@ -137,10 +137,10 @@ class ExtensionDescriptionRegistry {
137
137
  return ( nodes.map(id => descs.get(id)));
138
138
  }
139
139
  containsActivationEvent(activationEvent) {
140
- return this._activationMap.has(activationEvent);
140
+ return ( this._activationMap.has(activationEvent));
141
141
  }
142
142
  containsExtension(extensionId) {
143
- return this._extensionsMap.has(extensionId);
143
+ return ( this._extensionsMap.has(extensionId));
144
144
  }
145
145
  getExtensionDescriptionsForActivationEvent(activationEvent) {
146
146
  const extensions = this._activationMap.get(activationEvent);
@@ -184,6 +184,6 @@ function extensionCmp(a, b) {
184
184
  }
185
185
  function removeExtensions(arr, toRemove) {
186
186
  const toRemoveSet = ( new ExtensionIdentifierSet(toRemove));
187
- return arr.filter(extension => !toRemoveSet.has(extension.identifier));
187
+ return arr.filter(extension => !( toRemoveSet.has(extension.identifier)));
188
188
  }
189
189
  export { DeltaExtensionsResult, ExtensionDescriptionRegistry };
@@ -50,8 +50,8 @@ class ExtensionPointUserDelta {
50
50
  }
51
51
  const previousSet = this._toSet(previous);
52
52
  const currentSet = this._toSet(current);
53
- const added = current.filter(user => !previousSet.has(user.description.identifier));
54
- const removed = previous.filter(user => !currentSet.has(user.description.identifier));
53
+ const added = current.filter(user => !( previousSet.has(user.description.identifier)));
54
+ const removed = previous.filter(user => !( currentSet.has(user.description.identifier)));
55
55
  return ( new ExtensionPointUserDelta(added, removed));
56
56
  }
57
57
  constructor(added, removed) {
@@ -728,7 +728,7 @@ class ExtensionsRegistryImpl {
728
728
  this._extensionPoints = ( new Map());
729
729
  }
730
730
  registerExtensionPoint(desc) {
731
- if (this._extensionPoints.has(desc.extensionPoint)) {
731
+ if (( this._extensionPoints.has(desc.extensionPoint))) {
732
732
  throw new Error('Duplicate extension point: ' + desc.extensionPoint);
733
733
  }
734
734
  const result = ( new ExtensionPoint(desc.extensionPoint, desc.defaultExtensionKind));
@@ -300,7 +300,7 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
300
300
  continue;
301
301
  }
302
302
  const input = this._printKeybinding(item.keybinding);
303
- if (seenBindings.has(input)) {
303
+ if (( seenBindings.has(input))) {
304
304
  continue;
305
305
  }
306
306
  seenBindings.add(input);
@@ -313,7 +313,7 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
313
313
  continue;
314
314
  }
315
315
  const input = item._sourceKey ?? 'Impossible: missing source key, but has keybinding';
316
- if (seenBindings.has(input)) {
316
+ if (( seenBindings.has(input))) {
317
317
  continue;
318
318
  }
319
319
  seenBindings.add(input);
@@ -808,7 +808,7 @@ class KeybindingsJsonSchema {
808
808
  const knownCommands = ( new Set());
809
809
  const addKnownCommand = (commandId, description) => {
810
810
  if (!/^_/.test(commandId)) {
811
- if (!knownCommands.has(commandId)) {
811
+ if (!( knownCommands.has(commandId))) {
812
812
  knownCommands.add(commandId);
813
813
  this.commandsEnum.push(commandId);
814
814
  this.commandsEnumDescriptions.push(description);
@@ -6,7 +6,7 @@ function getAllUnboundCommands(boundCommands) {
6
6
  const unboundCommands = [];
7
7
  const seenMap = ( new Map());
8
8
  const addCommand = (id, includeCommandWithArgs) => {
9
- if (seenMap.has(id)) {
9
+ if (( seenMap.has(id))) {
10
10
  return;
11
11
  }
12
12
  seenMap.set(id, true);
@@ -1,5 +1,4 @@
1
1
  import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
2
2
  const ILanguageDetectionService = ( createDecorator('ILanguageDetectionService'));
3
3
  const LanguageDetectionLanguageEventSource = 'languageDetection';
4
- const AutomaticLanguageDetectionLikelyWrongId = 'automaticlanguagedetection.likelywrong';
5
- export { AutomaticLanguageDetectionLikelyWrongId, ILanguageDetectionService, LanguageDetectionLanguageEventSource };
4
+ export { ILanguageDetectionService, LanguageDetectionLanguageEventSource };
@@ -1,12 +1,4 @@
1
1
  import { refineServiceDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
2
2
  import { ILayoutService } from 'monaco-editor/esm/vs/platform/layout/browser/layoutService.js';
3
3
  const IWorkbenchLayoutService = refineServiceDecorator(ILayoutService);
4
- function positionToString(position) {
5
- switch (position) {
6
- case 0 : return 'left';
7
- case 1 : return 'right';
8
- case 2 : return 'bottom';
9
- default: return 'bottom';
10
- }
11
- }
12
- export { IWorkbenchLayoutService, positionToString };
4
+ export { IWorkbenchLayoutService };
@@ -28,7 +28,7 @@ class OutputChannelRegistry {
28
28
  this.onDidRemoveChannel = this._onDidRemoveChannel.event;
29
29
  }
30
30
  registerChannel(descriptor) {
31
- if (!this.channels.has(descriptor.id)) {
31
+ if (!( this.channels.has(descriptor.id))) {
32
32
  this.channels.set(descriptor.id, descriptor);
33
33
  this._onDidRegisterChannel.fire(descriptor.id);
34
34
  }
@@ -38,7 +38,7 @@ class AbstractSettingsModel extends EditorModel {
38
38
  .sort((a, b) => this._currentResultGroups.get(a).order - this._currentResultGroups.get(b).order)
39
39
  .forEach(groupId => {
40
40
  const group = this._currentResultGroups.get(groupId);
41
- group.result.filterMatches = group.result.filterMatches.filter(s => !settingKeys.has(s.setting.key));
41
+ group.result.filterMatches = group.result.filterMatches.filter(s => !( settingKeys.has(s.setting.key)));
42
42
  group.result.filterMatches.forEach(s => settingKeys.add(s.setting.key));
43
43
  });
44
44
  }
@@ -48,7 +48,7 @@ let SearchService = class SearchService extends Disposable {
48
48
  throw new Error('Unknown SearchProviderType');
49
49
  }
50
50
  list.set(scheme, provider);
51
- if (deferredMap.has(scheme)) {
51
+ if (( deferredMap.has(scheme))) {
52
52
  deferredMap.get(scheme).complete(provider);
53
53
  deferredMap.delete(scheme);
54
54
  }
@@ -63,7 +63,7 @@ let SearchService = class SearchService extends Disposable {
63
63
  }
64
64
  const onProviderProgress = (progress) => {
65
65
  if (isFileMatch(progress)) {
66
- if (!localResults.results.has(progress.resource) && !(notebookURIs && notebookURIs.has(progress.resource)) && onProgress) {
66
+ if (!( localResults.results.has(progress.resource)) && !(notebookURIs && ( notebookURIs.has(progress.resource))) && onProgress) {
67
67
  onProgress(progress);
68
68
  }
69
69
  }
@@ -141,7 +141,7 @@ let SearchService = class SearchService extends Disposable {
141
141
  const deferredMap = queryType === 1 ?
142
142
  this.deferredFileSearchesByScheme :
143
143
  this.deferredTextSearchesByScheme;
144
- if (deferredMap.has(scheme)) {
144
+ if (( deferredMap.has(scheme))) {
145
145
  return deferredMap.get(scheme).p;
146
146
  }
147
147
  else {
@@ -156,8 +156,8 @@ let SearchService = class SearchService extends Disposable {
156
156
  const fqs = this.groupFolderQueriesByScheme(query);
157
157
  const someSchemeHasProvider = ( [...( fqs.keys())].some(scheme => {
158
158
  return query.type === 1 ?
159
- this.fileSearchProviders.has(scheme) :
160
- this.textSearchProviders.has(scheme);
159
+ ( this.fileSearchProviders.has(scheme)) :
160
+ ( this.textSearchProviders.has(scheme));
161
161
  }));
162
162
  await Promise.all(( [...( fqs.keys())].map(async (scheme) => {
163
163
  const schemeFQs = fqs.get(scheme);
@@ -166,14 +166,14 @@ let SearchService = class SearchService extends Disposable {
166
166
  this.textSearchProviders.get(scheme);
167
167
  if (!provider) {
168
168
  if (someSchemeHasProvider) {
169
- if (!this.loggedSchemesMissingProviders.has(scheme)) {
169
+ if (!( this.loggedSchemesMissingProviders.has(scheme))) {
170
170
  this.logService.warn(`No search provider registered for scheme: ${scheme}. Another scheme has a provider, not waiting for ${scheme}`);
171
171
  this.loggedSchemesMissingProviders.add(scheme);
172
172
  }
173
173
  return;
174
174
  }
175
175
  else {
176
- if (!this.loggedSchemesMissingProviders.has(scheme)) {
176
+ if (!( this.loggedSchemesMissingProviders.has(scheme))) {
177
177
  this.logService.warn(`No search provider registered for scheme: ${scheme}, waiting`);
178
178
  this.loggedSchemesMissingProviders.add(scheme);
179
179
  }
@@ -215,7 +215,7 @@ let TextMateTokenizationFeature = class TextMateTokenizationFeature extends Disp
215
215
  }
216
216
  try {
217
217
  const grammarFactory = await this._getOrCreateGrammarFactory();
218
- if (!grammarFactory.has(languageId)) {
218
+ if (!( grammarFactory.has(languageId))) {
219
219
  return null;
220
220
  }
221
221
  const encodedLanguageId = this._languageService.languageIdCodec.encodeLanguageId(languageId);
@@ -269,7 +269,7 @@ let TextMateTokenizationFeature = class TextMateTokenizationFeature extends Disp
269
269
  return null;
270
270
  }
271
271
  const grammarFactory = await this._getOrCreateGrammarFactory();
272
- if (!grammarFactory.has(languageId)) {
272
+ if (!( grammarFactory.has(languageId))) {
273
273
  return null;
274
274
  }
275
275
  const encodedLanguageId = this._languageService.languageIdCodec.encodeLanguageId(languageId);