@codingame/monaco-vscode-notebook-service-override 7.1.0 → 7.1.1

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 (44) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +14 -20
  3. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +22 -23
  4. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +3 -4
  5. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +2 -3
  6. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +5 -7
  7. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +7 -8
  8. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +12 -13
  9. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +3 -4
  10. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +5 -6
  11. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +2 -3
  12. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +2 -3
  13. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +16 -19
  14. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +2 -3
  15. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +2 -3
  16. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -4
  17. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +4 -6
  18. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +13 -17
  19. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +2 -3
  20. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +15 -18
  21. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +4 -5
  22. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +25 -26
  23. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +3 -20
  24. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +629 -0
  25. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +23 -24
  26. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +25 -26
  27. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +18 -19
  28. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +208 -0
  29. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +13 -14
  30. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +2 -3
  31. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +11 -15
  32. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +12 -13
  33. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +2 -3
  34. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +95 -163
  35. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +38 -50
  36. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +11 -12
  37. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +43 -53
  38. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +2 -7
  39. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +2 -3
  40. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +5 -7
  41. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +2 -3
  42. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +2 -3
  43. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +16 -20
  44. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +2 -3
@@ -1,11 +1,10 @@
1
1
  import { NOTEBOOK_IS_ACTIVE_EDITOR } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
3
- import { AccessibleViewType, AccessibleViewProviderId } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleView';
2
+ import { localize } from 'vscode/vscode/vs/nls';
3
+ import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleView';
4
4
  import { AccessibilityVerbositySettingId } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
5
5
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
6
6
  import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
7
7
 
8
- const _moduleId = "vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp";
9
8
  class NotebookAccessibilityHelp {
10
9
  constructor() {
11
10
  this.priority = 105;
@@ -17,78 +16,67 @@ class NotebookAccessibilityHelp {
17
16
  const activeEditor = accessor.get(ICodeEditorService).getActiveCodeEditor()
18
17
  || accessor.get(ICodeEditorService).getFocusedCodeEditor()
19
18
  || accessor.get(IEditorService).activeEditorPane;
20
- if (activeEditor) {
21
- return runAccessibilityHelpAction(accessor, activeEditor);
19
+ if (!activeEditor) {
20
+ return;
22
21
  }
23
- return;
22
+ return getAccessibilityHelpProvider(accessor, activeEditor);
24
23
  }
25
- dispose() { }
26
24
  }
27
25
  function getAccessibilityHelpText() {
28
26
  return [
29
- ( localizeWithPath(
30
- _moduleId,
31
- 0,
27
+ ( localize(
28
+ 8056,
32
29
  'The notebook view is a collection of code and markdown cells. Code cells can be executed and will produce output directly below the cell.'
33
30
  )),
34
- ( localizeWithPath(
35
- _moduleId,
36
- 1,
31
+ ( localize(
32
+ 8057,
37
33
  'The Edit Cell command<keybinding:notebook.cell.edit> will focus on the cell input.'
38
34
  )),
39
- ( localizeWithPath(
40
- _moduleId,
41
- 2,
35
+ ( localize(
36
+ 8058,
42
37
  'The Quit Edit command<keybinding:notebook.cell.quitEdit> will set focus on the cell container. The default (Escape) key may need to be pressed twice first exit the virtual cursor if active.'
43
38
  )),
44
- ( localizeWithPath(
45
- _moduleId,
46
- 3,
39
+ ( localize(
40
+ 8059,
47
41
  'The Focus Output command<keybinding:notebook.cell.focusInOutput> will set focus in the cell\'s output.'
48
42
  )),
49
- ( localizeWithPath(
50
- _moduleId,
51
- 4,
43
+ ( localize(
44
+ 8060,
52
45
  'The Focus Next Cell Editor command<keybinding:notebook.focusNextEditor> will set focus in the next cell\'s editor.'
53
46
  )),
54
- ( localizeWithPath(
55
- _moduleId,
56
- 5,
47
+ ( localize(
48
+ 8061,
57
49
  'The Focus Previous Cell Editor command<keybinding:notebook.focusPreviousEditor> will set focus in the previous cell\'s editor.'
58
50
  )),
59
- ( localizeWithPath(
60
- _moduleId,
61
- 6,
51
+ ( localize(
52
+ 8062,
62
53
  'The up and down arrows will also move focus between cells while focused on the outer cell container.'
63
54
  )),
64
- ( localizeWithPath(
65
- _moduleId,
66
- 7,
55
+ ( localize(
56
+ 8063,
67
57
  'The Execute Cell command<keybinding:notebook.cell.executeAndFocusContainer> executes the cell that currently has focus.'
68
58
  )),
69
- ( localizeWithPath(
70
- _moduleId,
71
- 8,
72
- 'The Insert Cell Above/Below commands will create new empty code cells'
59
+ ( localize(
60
+ 8064,
61
+ 'The Insert Cell Above/Below commands will create new empty code cells.'
73
62
  )),
74
- ( localizeWithPath(
75
- _moduleId,
76
- 9,
63
+ ( localize(
64
+ 8065,
77
65
  'The Change Cell to Code/Markdown commands are used to switch between cell types.'
78
66
  ))
79
- ].join('\n\n');
67
+ ].join('\n');
80
68
  }
81
- function runAccessibilityHelpAction(accessor, editor) {
69
+ function getAccessibilityHelpProvider(accessor, editor) {
82
70
  const helpText = getAccessibilityHelpText();
83
- return {
84
- id: AccessibleViewProviderId.Notebook,
85
- verbositySettingKey: AccessibilityVerbositySettingId.Notebook,
86
- provideContent: () => helpText,
87
- onClose: () => {
88
- editor.focus();
89
- },
90
- options: { type: AccessibleViewType.Help }
91
- };
71
+ return (
72
+ (new AccessibleContentProvider(
73
+ AccessibleViewProviderId.Notebook,
74
+ { type: AccessibleViewType.Help },
75
+ () => helpText,
76
+ () => editor.focus(),
77
+ AccessibilityVerbositySettingId.Notebook
78
+ ))
79
+ );
92
80
  }
93
81
 
94
- export { NotebookAccessibilityHelp, getAccessibilityHelpText, runAccessibilityHelpAction };
82
+ export { NotebookAccessibilityHelp, getAccessibilityHelpProvider, getAccessibilityHelpText };
@@ -1,4 +1,4 @@
1
- import { AccessibleViewType, AccessibleViewProviderId } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleView';
1
+ import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleView';
2
2
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
3
3
  import { AccessibilityVerbositySettingId } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
4
4
  import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
@@ -14,11 +14,10 @@ class NotebookAccessibleView {
14
14
  }
15
15
  getProvider(accessor) {
16
16
  const editorService = accessor.get(IEditorService);
17
- return showAccessibleOutput(editorService);
17
+ return getAccessibleOutputProvider(editorService);
18
18
  }
19
- dispose() { }
20
19
  }
21
- function showAccessibleOutput(editorService) {
20
+ function getAccessibleOutputProvider(editorService) {
22
21
  const activePane = editorService.activeEditorPane;
23
22
  const notebookEditor = getNotebookEditorFromEditorPane(activePane);
24
23
  const notebookViewModel = notebookEditor?.getViewModel();
@@ -58,16 +57,16 @@ function showAccessibleOutput(editorService) {
58
57
  if (!outputContent) {
59
58
  return;
60
59
  }
61
- return {
62
- id: AccessibleViewProviderId.Notebook,
63
- verbositySettingKey: AccessibilityVerbositySettingId.Notebook,
64
- provideContent() { return outputContent; },
65
- onClose() {
60
+ return ( new AccessibleContentProvider(
61
+ AccessibleViewProviderId.Notebook,
62
+ { type: AccessibleViewType.View },
63
+ () => { return outputContent; },
64
+ () => {
66
65
  notebookEditor?.setFocus(selections[0]);
67
66
  activePane?.focus();
68
67
  },
69
- options: { type: AccessibleViewType.View }
70
- };
68
+ AccessibilityVerbositySettingId.Notebook
69
+ ));
71
70
  }
72
71
 
73
- export { NotebookAccessibleView, showAccessibleOutput };
72
+ export { NotebookAccessibleView, getAccessibleOutputProvider };
@@ -1,4 +1,4 @@
1
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
1
+ import { localize } from 'vscode/vscode/vs/nls';
2
2
  import { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
3
3
  import { NotebookEditorPriority } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
4
4
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
@@ -6,7 +6,6 @@ import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/d
6
6
  import { Extensions } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
7
7
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
8
8
 
9
- const _moduleId = "vs/workbench/contrib/notebook/browser/notebookExtensionPoint";
10
9
  const NotebookEditorContribution = ( (Object.freeze({
11
10
  type: 'type',
12
11
  displayName: 'displayName',
@@ -28,7 +27,7 @@ const NotebookPreloadContribution = ( (Object.freeze({
28
27
  localResourceRoots: 'localResourceRoots',
29
28
  })));
30
29
  const notebookProviderContribution = {
31
- description: ( localizeWithPath(_moduleId, 0, 'Contributes notebook document provider.')),
30
+ description: ( localize(7598, 'Contributes notebook document provider.')),
32
31
  type: 'array',
33
32
  defaultSnippets: [{ body: [{ type: '', displayName: '', 'selector': [{ 'filenamePattern': '' }] }] }],
34
33
  items: {
@@ -41,34 +40,33 @@ const notebookProviderContribution = {
41
40
  properties: {
42
41
  [NotebookEditorContribution.type]: {
43
42
  type: 'string',
44
- description: ( localizeWithPath(_moduleId, 1, 'Type of the notebook.')),
43
+ description: ( localize(7599, 'Type of the notebook.')),
45
44
  },
46
45
  [NotebookEditorContribution.displayName]: {
47
46
  type: 'string',
48
- description: ( localizeWithPath(_moduleId, 2, 'Human readable name of the notebook.')),
47
+ description: ( localize(7600, 'Human readable name of the notebook.')),
49
48
  },
50
49
  [NotebookEditorContribution.selector]: {
51
50
  type: 'array',
52
- description: ( localizeWithPath(_moduleId, 3, 'Set of globs that the notebook is for.')),
51
+ description: ( localize(7601, 'Set of globs that the notebook is for.')),
53
52
  items: {
54
53
  type: 'object',
55
54
  properties: {
56
55
  filenamePattern: {
57
56
  type: 'string',
58
- description: ( localizeWithPath(_moduleId, 4, 'Glob that the notebook is enabled for.')),
57
+ description: ( localize(7602, 'Glob that the notebook is enabled for.')),
59
58
  },
60
59
  excludeFileNamePattern: {
61
60
  type: 'string',
62
- description: ( localizeWithPath(_moduleId, 5, 'Glob that the notebook is disabled for.'))
61
+ description: ( localize(7603, 'Glob that the notebook is disabled for.'))
63
62
  }
64
63
  }
65
64
  }
66
65
  },
67
66
  [NotebookEditorContribution.priority]: {
68
67
  type: 'string',
69
- markdownDeprecationMessage: ( localizeWithPath(
70
- _moduleId,
71
- 6,
68
+ markdownDeprecationMessage: ( localize(
69
+ 7604,
72
70
  'Controls if the custom editor is enabled automatically when the user opens a file. This may be overridden by users using the `workbench.editorAssociations` setting.'
73
71
  )),
74
72
  enum: [
@@ -76,14 +74,12 @@ const notebookProviderContribution = {
76
74
  NotebookEditorPriority.option,
77
75
  ],
78
76
  markdownEnumDescriptions: [
79
- ( localizeWithPath(
80
- _moduleId,
81
- 7,
77
+ ( localize(
78
+ 7605,
82
79
  'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
83
80
  )),
84
- ( localizeWithPath(
85
- _moduleId,
86
- 8,
81
+ ( localize(
82
+ 7606,
87
83
  'The editor is not automatically used when the user opens a resource, but a user can switch to the editor using the `Reopen With` command.'
88
84
  )),
89
85
  ],
@@ -94,7 +90,7 @@ const notebookProviderContribution = {
94
90
  };
95
91
  const defaultRendererSnippet = ( (Object.freeze({ id: '', displayName: '', mimeTypes: [''], entrypoint: '' })));
96
92
  const notebookRendererContribution = {
97
- description: ( localizeWithPath(_moduleId, 9, 'Contributes notebook output renderer provider.')),
93
+ description: ( localize(7607, 'Contributes notebook output renderer provider.')),
98
94
  type: 'array',
99
95
  defaultSnippets: [{ body: [defaultRendererSnippet] }],
100
96
  items: {
@@ -109,19 +105,18 @@ const notebookRendererContribution = {
109
105
  properties: {
110
106
  [NotebookRendererContribution.id]: {
111
107
  type: 'string',
112
- description: ( localizeWithPath(_moduleId, 10, 'Unique identifier of the notebook output renderer.')),
108
+ description: ( localize(7608, 'Unique identifier of the notebook output renderer.')),
113
109
  },
114
110
  [NotebookRendererContribution.displayName]: {
115
111
  type: 'string',
116
- description: ( localizeWithPath(_moduleId, 11, 'Human readable name of the notebook output renderer.')),
112
+ description: ( localize(7609, 'Human readable name of the notebook output renderer.')),
117
113
  },
118
114
  [NotebookRendererContribution.hardDependencies]: {
119
115
  type: 'array',
120
116
  uniqueItems: true,
121
117
  items: { type: 'string' },
122
- markdownDescription: ( localizeWithPath(
123
- _moduleId,
124
- 12,
118
+ markdownDescription: ( localize(
119
+ 7610,
125
120
  'List of kernel dependencies the renderer requires. If any of the dependencies are present in the `NotebookKernel.preloads`, the renderer can be used.'
126
121
  )),
127
122
  },
@@ -129,9 +124,8 @@ const notebookRendererContribution = {
129
124
  type: 'array',
130
125
  uniqueItems: true,
131
126
  items: { type: 'string' },
132
- markdownDescription: ( localizeWithPath(
133
- _moduleId,
134
- 13,
127
+ markdownDescription: ( localize(
128
+ 7611,
135
129
  'List of soft kernel dependencies the renderer can make use of. If any of the dependencies are present in the `NotebookKernel.preloads`, the renderer will be preferred over renderers that don\'t interact with the kernel.'
136
130
  )),
137
131
  },
@@ -143,21 +137,18 @@ const notebookRendererContribution = {
143
137
  'never',
144
138
  ],
145
139
  enumDescriptions: [
146
- ( localizeWithPath(
147
- _moduleId,
148
- 14,
140
+ ( localize(
141
+ 7612,
149
142
  'Messaging is required. The renderer will only be used when it\'s part of an extension that can be run in an extension host.'
150
143
  )),
151
- ( localizeWithPath(
152
- _moduleId,
153
- 15,
144
+ ( localize(
145
+ 7613,
154
146
  'The renderer is better with messaging available, but it\'s not requried.'
155
147
  )),
156
- ( localizeWithPath(_moduleId, 16, 'The renderer does not require messaging.')),
148
+ ( localize(7614, 'The renderer does not require messaging.')),
157
149
  ],
158
- description: ( localizeWithPath(
159
- _moduleId,
160
- 17,
150
+ description: ( localize(
151
+ 7615,
161
152
  'Defines how and if the renderer needs to communicate with an extension host, via `createRendererMessaging`. Renderers with stronger messaging requirements may not work in all environments.'
162
153
  )),
163
154
  },
@@ -173,13 +164,13 @@ const notebookRendererContribution = {
173
164
  properties: {
174
165
  [NotebookRendererContribution.mimeTypes]: {
175
166
  type: 'array',
176
- description: ( localizeWithPath(_moduleId, 18, 'Set of globs that the notebook is for.')),
167
+ description: ( localize(7616, 'Set of globs that the notebook is for.')),
177
168
  items: {
178
169
  type: 'string'
179
170
  }
180
171
  },
181
172
  [NotebookRendererContribution.entrypoint]: {
182
- description: ( localizeWithPath(_moduleId, 19, 'File to load in the webview to render the extension.')),
173
+ description: ( localize(7617, 'File to load in the webview to render the extension.')),
183
174
  type: 'string',
184
175
  },
185
176
  }
@@ -190,17 +181,17 @@ const notebookRendererContribution = {
190
181
  ],
191
182
  properties: {
192
183
  [NotebookRendererContribution.entrypoint]: {
193
- description: ( localizeWithPath(_moduleId, 19, 'File to load in the webview to render the extension.')),
184
+ description: ( localize(7617, 'File to load in the webview to render the extension.')),
194
185
  type: 'object',
195
186
  required: ['extends', 'path'],
196
187
  properties: {
197
188
  extends: {
198
189
  type: 'string',
199
- description: ( localizeWithPath(_moduleId, 20, 'Existing renderer that this one extends.')),
190
+ description: ( localize(7618, 'Existing renderer that this one extends.')),
200
191
  },
201
192
  path: {
202
193
  type: 'string',
203
- description: ( localizeWithPath(_moduleId, 19, 'File to load in the webview to render the extension.')),
194
+ description: ( localize(7618, 'File to load in the webview to render the extension.')),
204
195
  },
205
196
  }
206
197
  },
@@ -212,7 +203,7 @@ const notebookRendererContribution = {
212
203
  }
213
204
  };
214
205
  const notebookPreloadContribution = {
215
- description: ( localizeWithPath(_moduleId, 21, 'Contributes notebook preloads.')),
206
+ description: ( localize(7619, 'Contributes notebook preloads.')),
216
207
  type: 'array',
217
208
  defaultSnippets: [{ body: [{ type: '', entrypoint: '' }] }],
218
209
  items: {
@@ -224,18 +215,17 @@ const notebookPreloadContribution = {
224
215
  properties: {
225
216
  [NotebookPreloadContribution.type]: {
226
217
  type: 'string',
227
- description: ( localizeWithPath(_moduleId, 22, 'Type of the notebook.')),
218
+ description: ( localize(7620, 'Type of the notebook.')),
228
219
  },
229
220
  [NotebookPreloadContribution.entrypoint]: {
230
221
  type: 'string',
231
- description: ( localizeWithPath(_moduleId, 23, 'Path to file loaded in the webview.')),
222
+ description: ( localize(7621, 'Path to file loaded in the webview.')),
232
223
  },
233
224
  [NotebookPreloadContribution.localResourceRoots]: {
234
225
  type: 'array',
235
226
  items: { type: 'string' },
236
- description: ( localizeWithPath(
237
- _moduleId,
238
- 24,
227
+ description: ( localize(
228
+ 7622,
239
229
  'Paths to additional resources that should be allowed in the webview.'
240
230
  )),
241
231
  },
@@ -282,8 +272,8 @@ class NotebooksDataRenderer extends Disposable {
282
272
  return { data: { headers: [], rows: [] }, dispose: () => { } };
283
273
  }
284
274
  const headers = [
285
- ( localizeWithPath(_moduleId, 25, "ID")),
286
- ( localizeWithPath(_moduleId, 26, "Name")),
275
+ ( localize(7623, "ID")),
276
+ ( localize(7624, "Name")),
287
277
  ];
288
278
  const rows = ( (contrib
289
279
  .sort((a, b) => a.type.localeCompare(b.type))
@@ -316,8 +306,8 @@ class NotebookRenderersDataRenderer extends Disposable {
316
306
  return { data: { headers: [], rows: [] }, dispose: () => { } };
317
307
  }
318
308
  const headers = [
319
- ( localizeWithPath(_moduleId, 27, "Name")),
320
- ( localizeWithPath(_moduleId, 28, "Mimetypes")),
309
+ ( localize(7625, "Name")),
310
+ ( localize(7626, "Mimetypes")),
321
311
  ];
322
312
  const rows = ( (contrib
323
313
  .sort((a, b) => a.displayName.localeCompare(b.displayName))
@@ -338,7 +328,7 @@ class NotebookRenderersDataRenderer extends Disposable {
338
328
  }
339
329
  ( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
340
330
  id: 'notebooks',
341
- label: ( localizeWithPath(_moduleId, 29, "Notebooks")),
331
+ label: ( localize(7627, "Notebooks")),
342
332
  access: {
343
333
  canToggle: false
344
334
  },
@@ -346,7 +336,7 @@ class NotebookRenderersDataRenderer extends Disposable {
346
336
  });
347
337
  ( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
348
338
  id: 'notebookRenderer',
349
- label: ( localizeWithPath(_moduleId, 30, "Notebook Renderers")),
339
+ label: ( localize(7628, "Notebook Renderers")),
350
340
  access: {
351
341
  canToggle: false
352
342
  },
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
3
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
3
+ import { localize } from 'vscode/vscode/vs/nls';
4
4
  import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
5
5
  import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
6
6
  import { IWorkspaceTrustRequestService } from 'vscode/vscode/vs/platform/workspace/common/workspaceTrust.service';
@@ -9,7 +9,6 @@ import { CellKind, NotebookCellExecutionState } from 'vscode/vscode/vs/workbench
9
9
  import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
10
10
  import { INotebookKernelService, INotebookKernelHistoryService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
11
11
 
12
- const _moduleId = "vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl";
13
12
  let NotebookExecutionService = class NotebookExecutionService {
14
13
  constructor(_commandService, _notebookKernelService, _notebookKernelHistoryService, _workspaceTrustRequestService, _logService, _notebookExecutionStateService) {
15
14
  this._commandService = _commandService;
@@ -27,11 +26,7 @@ let NotebookExecutionService = class NotebookExecutionService {
27
26
  return;
28
27
  }
29
28
  this._logService.debug(`NotebookExecutionService#executeNotebookCells ${JSON.stringify(( (cellsArr.map(c => c.handle))))}`);
30
- const message = ( localizeWithPath(
31
- _moduleId,
32
- 0,
33
- "Executing a notebook cell will run code from this workspace."
34
- ));
29
+ const message = ( localize(3262, "Executing a notebook cell will run code from this workspace."));
35
30
  const trust = await this._workspaceTrustRequestService.requestWorkspaceTrust({ message });
36
31
  if (!trust) {
37
32
  return;
@@ -1,7 +1,7 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
3
3
  import { LinkedMap, Touch } from 'vscode/vscode/vs/base/common/map';
4
- import { localize2WithPath } from 'vscode/vscode/vs/nls';
4
+ import { localize2 } from 'vscode/vscode/vs/nls';
5
5
  import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
6
6
  import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
7
7
  import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
@@ -10,7 +10,6 @@ import { INotebookKernelService, INotebookKernelHistoryService } from 'vscode/vs
10
10
  import { INotebookLoggingService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService.service';
11
11
 
12
12
  var NotebookKernelHistoryService_1;
13
- const _moduleId = "vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl";
14
13
  const MAX_KERNELS_IN_HISTORY = 5;
15
14
  let NotebookKernelHistoryService = class NotebookKernelHistoryService extends Disposable {
16
15
  static { NotebookKernelHistoryService_1 = this; }
@@ -114,7 +113,7 @@ registerAction2(class extends Action2 {
114
113
  constructor() {
115
114
  super({
116
115
  id: 'notebook.clearNotebookKernelsMRUCache',
117
- title: ( localize2WithPath(_moduleId, 0, "Clear Notebook Kernels MRU Cache")),
116
+ title: ( localize2(3266, "Clear Notebook Kernels MRU Cache")),
118
117
  category: Categories.Developer,
119
118
  f1: true
120
119
  });
@@ -2,7 +2,7 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
3
3
  import { Event } from 'vscode/vscode/vs/base/common/event';
4
4
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
5
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
5
+ import { localize } from 'vscode/vscode/vs/nls';
6
6
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
7
7
  import 'vscode/vscode/vs/platform/notification/common/notification';
8
8
  import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
@@ -19,7 +19,6 @@ import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
19
19
  import { distinct } from 'vscode/vscode/vs/base/common/arrays';
20
20
  import Severity$1 from 'vscode/vscode/vs/base/common/severity';
21
21
 
22
- const _moduleId = "vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl";
23
22
  function onExtensionChanged(accessor) {
24
23
  const extensionService = accessor.get(IExtensionManagementService);
25
24
  const extensionEnablementService = accessor.get(IWorkbenchExtensionEnablementService);
@@ -74,16 +73,15 @@ let NotebookKeymapService = class NotebookKeymapService extends Disposable {
74
73
  this.extensionEnablementService.setEnablement(( (oldKeymaps.map(keymap => keymap.local))), EnablementState.DisabledGlobally);
75
74
  }
76
75
  };
77
- this.notificationService.prompt(Severity$1.Info, ( localizeWithPath(
78
- _moduleId,
79
- 0,
76
+ this.notificationService.prompt(Severity$1.Info, ( localize(
77
+ 3263,
80
78
  "Disable other keymaps ({0}) to avoid conflicts between keybindings?",
81
79
  ( (distinct(( (oldKeymaps.map(k => k.local.manifest.displayName)))).map(name => `'${name}'`))).join(', ')
82
80
  )), [{
83
- label: ( localizeWithPath(_moduleId, 1, "Yes")),
81
+ label: ( localize(3264, "Yes")),
84
82
  run: () => onPrompt(true)
85
83
  }, {
86
- label: ( localizeWithPath(_moduleId, 2, "No")),
84
+ label: ( localize(3265, "No")),
87
85
  run: () => onPrompt(false)
88
86
  }]);
89
87
  }
@@ -1,15 +1,14 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize } from 'vscode/vscode/vs/nls';
3
3
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
4
4
  import { ILoggerService } from 'vscode/vscode/vs/platform/log/common/log.service';
5
5
 
6
- const _moduleId = "vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl";
7
6
  const logChannelId = 'notebook.rendering';
8
7
  let NotebookLoggingService = class NotebookLoggingService extends Disposable {
9
8
  static { this.ID = 'notebook'; }
10
9
  constructor(loggerService) {
11
10
  super();
12
- this._logger = this._register(loggerService.createLogger(logChannelId, { name: ( localizeWithPath(_moduleId, 0, "Notebook rendering")) }));
11
+ this._logger = this._register(loggerService.createLogger(logChannelId, { name: ( localize(3267, "Notebook rendering")) }));
13
12
  }
14
13
  debug(category, output) {
15
14
  this._logger.debug(`[${category}] ${output}`);
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize } from 'vscode/vscode/vs/nls';
3
3
  import { toAction } from 'vscode/vscode/vs/base/common/actions';
4
4
  import { createErrorWithActions } from 'vscode/vscode/vs/base/common/errorMessage';
5
5
  import { Emitter } from 'vscode/vscode/vs/base/common/event';
@@ -37,7 +37,6 @@ import { INotebookDocumentService } from 'vscode/vscode/vs/workbench/services/no
37
37
  import { MergeEditorInput } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput';
38
38
 
39
39
  var NotebookProviderInfoStore_1, NotebookService_1;
40
- const _moduleId = "vs/workbench/contrib/notebook/browser/services/notebookServiceImpl";
41
40
  let NotebookProviderInfoStore = class NotebookProviderInfoStore extends Disposable {
42
41
  static { NotebookProviderInfoStore_1 = this; }
43
42
  static { this.CUSTOM_EDITORS_STORAGE_ID = 'notebookEditors'; }
@@ -549,7 +548,7 @@ let NotebookService = class NotebookService extends Disposable {
549
548
  const knownProvider = this.getViewTypeProvider(viewType);
550
549
  const actions = knownProvider ? [
551
550
  toAction({
552
- id: 'workbench.notebook.action.installMissingViewType', label: ( localizeWithPath(_moduleId, 0, "Install extension for '{0}'", viewType)), run: async () => {
551
+ id: 'workbench.notebook.action.installMissingViewType', label: ( localize(3261, "Install extension for '{0}'", viewType)), run: async () => {
553
552
  await this._instantiationService.createInstance(InstallRecommendedExtensionAction, knownProvider).run();
554
553
  }
555
554
  })