@codingame/monaco-vscode-notebook-service-override 1.85.6 → 2.0.0-v2.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.
- package/notebook.js +1 -1
- package/package.json +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +23 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +47 -47
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +52 -52
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +85 -85
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibility.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +20 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +6 -6
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +9 -9
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +6 -6
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +15 -15
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +15 -15
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +6 -6
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +8 -8
- package/workers/notebook.worker.js +1 -1
package/notebook.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SyncDescriptor } from '
|
|
1
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
2
2
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService';
|
|
3
3
|
import { NotebookService } from './vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js';
|
|
4
4
|
import { INotebookEditorModelResolverService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-notebook-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-v2.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git
|
|
12
|
+
"url": "git@github.com:CodinGame/monaco-vscode-api.git"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"private": false,
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
22
|
-
"
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.0.0-v2.1",
|
|
22
|
+
"vscode-marked": "npm:marked@=3.0.2"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|
|
25
25
|
".": {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './emptyTextEditorHint.css.js';
|
|
3
|
-
import
|
|
4
|
-
import { dispose, DisposableStore } from '
|
|
5
|
-
import { localizeWithPath } from '
|
|
3
|
+
import { addDisposableListener, $ as $$1 } from 'vscode/vscode/vs/base/browser/dom';
|
|
4
|
+
import { dispose, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
6
6
|
import { ChangeLanguageAction } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorStatus';
|
|
7
|
-
import { ICommandService } from '
|
|
8
|
-
import { PLAINTEXT_LANGUAGE_ID } from '
|
|
9
|
-
import { Schemas } from '
|
|
10
|
-
import { Event } from '
|
|
11
|
-
import { IConfigurationService } from '
|
|
12
|
-
import { registerEditorContribution } from '
|
|
13
|
-
import { IKeybindingService } from '
|
|
7
|
+
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
8
|
+
import { PLAINTEXT_LANGUAGE_ID } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
|
|
9
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
10
|
+
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
11
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
12
|
+
import { registerEditorContribution } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
13
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
14
14
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
15
|
-
import { renderFormattedText } from '
|
|
15
|
+
import { renderFormattedText } from 'vscode/vscode/vs/base/browser/formattedTextRenderer';
|
|
16
16
|
import { ApplyFileSnippetAction } from 'vscode/vscode/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets';
|
|
17
17
|
import { IInlineChatSessionService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSession';
|
|
18
18
|
import { IInlineChatService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
19
|
-
import { ITelemetryService } from '
|
|
20
|
-
import { IProductService } from '
|
|
21
|
-
import { KeybindingLabel } from '
|
|
22
|
-
import { OS } from '
|
|
23
|
-
import { status } from '
|
|
24
|
-
import { Registry } from '
|
|
19
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
20
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
21
|
+
import { KeybindingLabel } from 'vscode/vscode/vs/base/browser/ui/keybindingLabel/keybindingLabel';
|
|
22
|
+
import { OS } from 'vscode/vscode/vs/base/common/platform';
|
|
23
|
+
import { status } from 'vscode/vscode/vs/base/browser/ui/aria/aria';
|
|
24
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
25
25
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/configuration';
|
|
26
26
|
import { OUTPUT_MODE_ID, LOG_MODE_ID } from 'vscode/vscode/vs/workbench/services/output/common/output';
|
|
27
27
|
import { SEARCH_RESULT_LANGUAGE_ID } from 'vscode/vscode/vs/workbench/services/search/common/search';
|
|
28
28
|
|
|
29
|
-
const $ =
|
|
29
|
+
const $ = $$1;
|
|
30
30
|
( Registry.as(Extensions.ConfigurationMigration))
|
|
31
31
|
.registerConfigurationMigrations([{
|
|
32
32
|
key: 'workbench.editor.untitled.hint',
|
|
@@ -364,7 +364,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
364
364
|
' Toggle {0} in settings to disable this hint.',
|
|
365
365
|
"accessibility.verbosity.emptyEditorHint"
|
|
366
366
|
)));
|
|
367
|
-
this.toDispose.add(
|
|
367
|
+
this.toDispose.add(addDisposableListener(this.domNode, 'click', () => {
|
|
368
368
|
this.editor.focus();
|
|
369
369
|
}));
|
|
370
370
|
this.editor.applyFontInfo(this.domNode);
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { KeyChord } from '
|
|
2
|
-
import { Mimes } from '
|
|
3
|
-
import { IBulkEditService, ResourceTextEdit } from '
|
|
4
|
-
import { localizeWithPath } from '
|
|
5
|
-
import { registerAction2, MenuId } from '
|
|
6
|
-
import { ContextKeyExpr } from '
|
|
7
|
-
import { InputFocusedContext, InputFocusedContextKey } from '
|
|
1
|
+
import { KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
2
|
+
import { Mimes } from 'vscode/vscode/vs/base/common/mime';
|
|
3
|
+
import { IBulkEditService, ResourceTextEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
4
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
5
|
+
import { registerAction2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
6
|
+
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
|
+
import { InputFocusedContext, InputFocusedContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
|
|
8
8
|
import { ResourceNotebookCellEdit } from 'vscode/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits';
|
|
9
9
|
import { moveCellRange, copyCellRange, computeCellLinesContents, joinCellsWithSurrounds, joinSelectedCells, changeCellToKind } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
|
|
10
10
|
import { NotebookCellAction, CELL_TITLE_CELL_GROUP_ID, NotebookMultiCellAction, parseMultiCellExecutionArgs, cellExecutionArgs } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
@@ -12,9 +12,9 @@ import { CellFocusMode, EXPAND_CELL_INPUT_COMMAND_ID, EXPAND_CELL_OUTPUT_COMMAND
|
|
|
12
12
|
import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_CELL_INPUT_COLLAPSED, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_TYPE, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED, NOTEBOOK_CELL_HAS_OUTPUTS } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
13
13
|
import { moveUpIcon, moveDownIcon, splitCellIcon } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
14
14
|
import { CellKind, NotebookSetting } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
15
|
-
import { INotificationService } from '
|
|
16
|
-
import { EditorContextKeys } from '
|
|
17
|
-
import { IConfigurationService } from '
|
|
15
|
+
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
16
|
+
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
17
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
18
18
|
|
|
19
19
|
const MOVE_CELL_UP_COMMAND_ID = 'notebook.cell.moveUp';
|
|
20
20
|
const MOVE_CELL_DOWN_COMMAND_ID = 'notebook.cell.moveDown';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Throttler } from '
|
|
3
|
-
import { CancellationTokenSource } from '
|
|
4
|
-
import { Disposable, toDisposable } from '
|
|
2
|
+
import { Throttler } from 'vscode/vscode/vs/base/common/async';
|
|
3
|
+
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
4
|
+
import { Disposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
5
|
import { NotebookVisibleCellObserver } from './notebookVisibleCellObserver.js';
|
|
6
6
|
import { registerNotebookContribution } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
7
7
|
import { INotebookCellStatusBarService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { disposableTimeout, RunOnceScheduler } from '
|
|
3
|
-
import { Disposable, MutableDisposable, dispose } from '
|
|
4
|
-
import { language } from '
|
|
5
|
-
import { localizeWithPath } from '
|
|
6
|
-
import { IInstantiationService } from '
|
|
7
|
-
import { themeColorFromId } from '
|
|
8
|
-
import { ThemeIcon } from '
|
|
2
|
+
import { disposableTimeout, RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
3
|
+
import { Disposable, MutableDisposable, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { language } from 'vscode/vscode/vs/base/common/platform';
|
|
5
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
6
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
|
+
import { themeColorFromId } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
8
|
+
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
9
9
|
import { NotebookVisibleCellObserver } from './notebookVisibleCellObserver.js';
|
|
10
10
|
import { registerNotebookContribution } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
11
11
|
import { cellStatusIconSuccess, cellStatusIconError } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { diffSets } from '
|
|
2
|
-
import { Emitter } from '
|
|
3
|
-
import { Disposable, DisposableStore } from '
|
|
4
|
-
import { isDefined } from '
|
|
1
|
+
import { diffSets } from 'vscode/vscode/vs/base/common/collections';
|
|
2
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
+
import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { isDefined } from 'vscode/vscode/vs/base/common/types';
|
|
5
5
|
import { cellRangesToIndexes } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookRange';
|
|
6
6
|
|
|
7
7
|
class NotebookVisibleCellObserver extends Disposable {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Disposable } from '
|
|
3
|
-
import { ResourceMap } from '
|
|
4
|
-
import { ILanguageService } from '
|
|
5
|
-
import { localizeWithPath } from '
|
|
6
|
-
import { IConfigurationService } from '
|
|
7
|
-
import { IInstantiationService } from '
|
|
8
|
-
import { IKeybindingService } from '
|
|
9
|
-
import { Registry } from '
|
|
2
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
4
|
+
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
5
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
6
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
7
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
9
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
10
10
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
11
11
|
import { CHANGE_CELL_LANGUAGE, DETECT_CELL_LANGUAGE } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
12
12
|
import { INotebookCellStatusBarService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService';
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { localizeWithPath } from '
|
|
3
|
-
import { Disposable } from '
|
|
4
|
-
import { Registry } from '
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
5
5
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
6
6
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
7
7
|
import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
8
8
|
import { expandCellRangesWithHiddenCells, cellRangeToViewCells, getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
9
|
-
import { CopyAction, PasteAction, CutAction } from '
|
|
10
|
-
import { IClipboardService } from '
|
|
9
|
+
import { CopyAction, PasteAction, CutAction } from 'vscode/vscode/vs/editor/contrib/clipboard/browser/clipboard';
|
|
10
|
+
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService';
|
|
11
11
|
import { cloneNotebookCellTextModel } from 'vscode/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel';
|
|
12
12
|
import { SelectionStateType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
13
13
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService';
|
|
14
|
-
import
|
|
15
|
-
import { registerAction2, MenuId, Action2 } from '
|
|
14
|
+
import { isNative } from 'vscode/vscode/vs/base/common/platform';
|
|
15
|
+
import { registerAction2, MenuId, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
16
16
|
import { NotebookCellAction, NotebookAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
17
|
-
import { ContextKeyExpr } from '
|
|
18
|
-
import { InputFocusedContextKey } from '
|
|
19
|
-
import { UndoCommand, RedoCommand } from '
|
|
20
|
-
import { Categories } from '
|
|
21
|
-
import { ILogService } from '
|
|
22
|
-
import { ICommandService } from '
|
|
17
|
+
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
18
|
+
import { InputFocusedContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
|
|
19
|
+
import { UndoCommand, RedoCommand } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
20
|
+
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
21
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
22
|
+
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
23
23
|
import { showWindowLogActionId } from 'vscode/vscode/vs/workbench/services/log/common/logConstants';
|
|
24
|
-
import { getWindow, getActiveElement } from '
|
|
24
|
+
import { getWindow, getActiveElement } from 'vscode/vscode/vs/base/browser/dom';
|
|
25
25
|
|
|
26
26
|
let _logging = false;
|
|
27
27
|
function toggleLogging() {
|
|
@@ -339,7 +339,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
339
339
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
340
340
|
group: "1_copy" ,
|
|
341
341
|
},
|
|
342
|
-
keybinding:
|
|
342
|
+
keybinding: isNative ? undefined : {
|
|
343
343
|
primary: 2048 | 33 ,
|
|
344
344
|
win: { primary: 2048 | 33 , secondary: [2048 | 19 ] },
|
|
345
345
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
|
|
@@ -365,7 +365,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
365
365
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE)),
|
|
366
366
|
group: "1_copy" ,
|
|
367
367
|
},
|
|
368
|
-
keybinding:
|
|
368
|
+
keybinding: isNative ? undefined : {
|
|
369
369
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
|
|
370
370
|
primary: 2048 | 54 ,
|
|
371
371
|
win: { primary: 2048 | 54 , secondary: [1024 | 20 ] },
|
|
@@ -391,7 +391,7 @@ registerAction2(class extends NotebookAction {
|
|
|
391
391
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE)),
|
|
392
392
|
group: "1_copy" ,
|
|
393
393
|
},
|
|
394
|
-
keybinding:
|
|
394
|
+
keybinding: isNative ? undefined : {
|
|
395
395
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
|
|
396
396
|
primary: 2048 | 52 ,
|
|
397
397
|
win: { primary: 2048 | 52 , secondary: [1024 | 19 ] },
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Disposable } from '
|
|
3
|
-
import { ResourceMap } from '
|
|
4
|
-
import { Schemas } from '
|
|
5
|
-
import { isEqual } from '
|
|
6
|
-
import { Registry } from '
|
|
2
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
4
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
5
|
+
import { isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
6
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
7
7
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
8
8
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
9
9
|
import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { RunOnceScheduler } from '
|
|
3
|
-
import { Disposable } from '
|
|
4
|
-
import { URI } from '
|
|
5
|
-
import { Registry } from '
|
|
2
|
+
import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
3
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
5
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
6
6
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
7
7
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
8
8
|
import { CellUri } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Disposable } from '
|
|
3
|
-
import { Range } from '
|
|
4
|
-
import { IConfigurationService } from '
|
|
2
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
4
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
5
5
|
import { debugIconBreakpointForeground } from 'vscode/vscode/vs/workbench/contrib/debug/browser/breakpointEditorContribution';
|
|
6
6
|
import { topStackFrameColor, focusedStackFrameColor } from 'vscode/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution';
|
|
7
7
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Schemas } from '
|
|
3
|
-
import { registerEditorContribution } from '
|
|
4
|
-
import { ICommandService } from '
|
|
5
|
-
import { IConfigurationService } from '
|
|
6
|
-
import { IKeybindingService } from '
|
|
7
|
-
import { IProductService } from '
|
|
8
|
-
import { ITelemetryService } from '
|
|
2
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
3
|
+
import { registerEditorContribution } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
4
|
+
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
5
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
6
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
7
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
8
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
9
9
|
import { EmptyTextEditorHintContribution } from '../../../../codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js';
|
|
10
10
|
import { IInlineChatSessionService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSession';
|
|
11
11
|
import { IInlineChatService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Disposable, DisposableStore, MutableDisposable } from '
|
|
3
|
-
import { Schemas } from '
|
|
4
|
-
import { ILanguageFeaturesService } from '
|
|
5
|
-
import
|
|
6
|
-
import { IInstantiationService } from '
|
|
7
|
-
import { ILogService } from '
|
|
8
|
-
import { Registry } from '
|
|
2
|
+
import { Disposable, DisposableStore, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
4
|
+
import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
|
|
5
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
6
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
8
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
9
9
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
10
10
|
import { CENTER_ACTIVE_CELL } from '../navigation/arrow.js';
|
|
11
11
|
import { SELECT_KERNEL_ID } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
@@ -106,14 +106,14 @@ let KernelStatus = class KernelStatus extends Disposable {
|
|
|
106
106
|
}
|
|
107
107
|
const tooltip = kernel.description ?? kernel.detail ?? kernel.label;
|
|
108
108
|
this._kernelInfoElement.add(this._statusbarService.addEntry({
|
|
109
|
-
name: (
|
|
109
|
+
name: ( localizeWithPath(
|
|
110
110
|
'vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar',
|
|
111
111
|
'notebook.info',
|
|
112
112
|
"Notebook Kernel Info"
|
|
113
113
|
)),
|
|
114
114
|
text: `$(notebook-kernel-select) ${kernel.label}`,
|
|
115
115
|
ariaLabel: kernel.label,
|
|
116
|
-
tooltip: isSuggested ? (
|
|
116
|
+
tooltip: isSuggested ? ( localizeWithPath(
|
|
117
117
|
'vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar',
|
|
118
118
|
'tooltop',
|
|
119
119
|
"{0} (suggestion)",
|
|
@@ -125,17 +125,17 @@ let KernelStatus = class KernelStatus extends Disposable {
|
|
|
125
125
|
}
|
|
126
126
|
else {
|
|
127
127
|
this._kernelInfoElement.add(this._statusbarService.addEntry({
|
|
128
|
-
name: (
|
|
128
|
+
name: ( localizeWithPath(
|
|
129
129
|
'vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar',
|
|
130
130
|
'notebook.select',
|
|
131
131
|
"Notebook Kernel Selection"
|
|
132
132
|
)),
|
|
133
|
-
text: (
|
|
133
|
+
text: ( localizeWithPath(
|
|
134
134
|
'vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar',
|
|
135
135
|
'kernel.select.label',
|
|
136
136
|
"Select Kernel"
|
|
137
137
|
)),
|
|
138
|
-
ariaLabel: (
|
|
138
|
+
ariaLabel: ( localizeWithPath(
|
|
139
139
|
'vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar',
|
|
140
140
|
'kernel.select.label',
|
|
141
141
|
"Select Kernel"
|
|
@@ -185,7 +185,7 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
|
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
187
|
const entry = {
|
|
188
|
-
name: (
|
|
188
|
+
name: ( localizeWithPath(
|
|
189
189
|
'vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar',
|
|
190
190
|
'notebook.activeCellStatusName',
|
|
191
191
|
"Notebook Editor Selections"
|
|
@@ -213,14 +213,14 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
|
|
|
213
213
|
const numSelected = editor.getSelections().reduce((prev, range) => prev + (range.end - range.start), 0);
|
|
214
214
|
const totalCells = editor.getLength();
|
|
215
215
|
return numSelected > 1 ?
|
|
216
|
-
(
|
|
216
|
+
( localizeWithPath(
|
|
217
217
|
'vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar',
|
|
218
218
|
'notebook.multiActiveCellIndicator',
|
|
219
219
|
"Cell {0} ({1} selected)",
|
|
220
220
|
idxFocused,
|
|
221
221
|
numSelected
|
|
222
222
|
)) :
|
|
223
|
-
(
|
|
223
|
+
( localizeWithPath(
|
|
224
224
|
'vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar',
|
|
225
225
|
'notebook.singleActiveCellIndicator',
|
|
226
226
|
"Cell {0} of {1}",
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { throttle } from '
|
|
3
|
-
import { Disposable, MutableDisposable } from '
|
|
2
|
+
import { throttle } from 'vscode/vscode/vs/base/common/decorators';
|
|
3
|
+
import { Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { registerNotebookContribution } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
5
5
|
import { NotebookCellExecutionState } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
6
6
|
import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './media/notebookFind.css.js';
|
|
2
|
-
import { Schemas } from '
|
|
3
|
-
import { isEqual } from '
|
|
4
|
-
import { ICodeEditorService } from '
|
|
5
|
-
import { EditorContextKeys } from '
|
|
6
|
-
import { StartFindAction, StartFindReplaceAction, getSelectionSearchString } from '
|
|
7
|
-
import { localizeWithPath } from '
|
|
8
|
-
import { registerAction2, Action2 } from '
|
|
9
|
-
import { ContextKeyExpr } from '
|
|
2
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
3
|
+
import { isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
4
|
+
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
5
|
+
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
6
|
+
import { StartFindAction, StartFindReplaceAction, getSelectionSearchString } from 'vscode/vscode/vs/editor/contrib/find/browser/findController';
|
|
7
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
8
|
+
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
9
|
+
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
10
10
|
import { NotebookFindContrib } from './notebookFindWidget.js';
|
|
11
11
|
import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
12
12
|
import { registerNotebookContribution } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
3
|
-
import { alert } from '
|
|
4
|
-
import { Lazy } from '
|
|
5
|
-
import { Disposable } from '
|
|
6
|
-
import
|
|
7
|
-
import { MATCHES_LIMIT } from '
|
|
8
|
-
import { FindReplaceState } from '
|
|
9
|
-
import { NLS_MATCHES_LOCATION, NLS_NO_RESULTS } from '
|
|
10
|
-
import { localizeWithPath } from '
|
|
11
|
-
import { IMenuService } from '
|
|
12
|
-
import { IConfigurationService } from '
|
|
13
|
-
import { IContextKeyService } from '
|
|
14
|
-
import { IContextViewService, IContextMenuService } from '
|
|
15
|
-
import { IInstantiationService } from '
|
|
2
|
+
import { append, addDisposableListener, EventType, getWindow } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
|
+
import { alert } from 'vscode/vscode/vs/base/browser/ui/aria/aria';
|
|
4
|
+
import { Lazy } from 'vscode/vscode/vs/base/common/lazy';
|
|
5
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { format } from 'vscode/vscode/vs/base/common/strings';
|
|
7
|
+
import { MATCHES_LIMIT } from 'vscode/vscode/vs/editor/contrib/find/browser/findModel';
|
|
8
|
+
import { FindReplaceState } from 'vscode/vscode/vs/editor/contrib/find/browser/findState';
|
|
9
|
+
import { NLS_MATCHES_LOCATION, NLS_NO_RESULTS } from 'vscode/vscode/vs/editor/contrib/find/browser/findWidget';
|
|
10
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
11
|
+
import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
12
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
13
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
14
|
+
import { IContextViewService, IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView';
|
|
15
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
16
16
|
import { FindModel } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/contrib/find/findModel';
|
|
17
17
|
import { SimpleFindReplaceWidget } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget';
|
|
18
18
|
import { CellEditState } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
@@ -51,7 +51,7 @@ let NotebookFindWidget = class NotebookFindWidget extends SimpleFindReplaceWidge
|
|
|
51
51
|
this._showTimeout = null;
|
|
52
52
|
this._hideTimeout = null;
|
|
53
53
|
this._findModel = ( new FindModel(this._notebookEditor, this._state, this._configurationService));
|
|
54
|
-
|
|
54
|
+
append(this._notebookEditor.getDomNode(), this.getDomNode());
|
|
55
55
|
this._findWidgetFocused = KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED.bindTo(contextKeyService);
|
|
56
56
|
this._register(this._findInput.onKeyDown((e) => this._onFindInputKeyDown(e)));
|
|
57
57
|
this._register(this._replaceInput.onKeyDown((e) => this._onReplaceInputKeyDown(e)));
|
|
@@ -75,7 +75,7 @@ let NotebookFindWidget = class NotebookFindWidget extends SimpleFindReplaceWidge
|
|
|
75
75
|
this._findInput.updateFilterState(this._state.filters?.isModified() ?? false);
|
|
76
76
|
}
|
|
77
77
|
}));
|
|
78
|
-
this._register(
|
|
78
|
+
this._register(addDisposableListener(this.getDomNode(), EventType.FOCUS, e => {
|
|
79
79
|
this._previousFocusElement = e.relatedTarget instanceof HTMLElement ? e.relatedTarget : undefined;
|
|
80
80
|
}, true));
|
|
81
81
|
}
|
|
@@ -190,12 +190,12 @@ let NotebookFindWidget = class NotebookFindWidget extends SimpleFindReplaceWidge
|
|
|
190
190
|
}
|
|
191
191
|
if (this._showTimeout === null) {
|
|
192
192
|
if (this._hideTimeout !== null) {
|
|
193
|
-
|
|
193
|
+
getWindow(this.getDomNode()).clearTimeout(this._hideTimeout);
|
|
194
194
|
this._hideTimeout = null;
|
|
195
195
|
this._notebookEditor.removeClassName(FIND_HIDE_TRANSITION);
|
|
196
196
|
}
|
|
197
197
|
this._notebookEditor.addClassName(FIND_SHOW_TRANSITION);
|
|
198
|
-
this._showTimeout =
|
|
198
|
+
this._showTimeout = getWindow(this.getDomNode()).setTimeout(() => {
|
|
199
199
|
this._notebookEditor.removeClassName(FIND_SHOW_TRANSITION);
|
|
200
200
|
this._showTimeout = null;
|
|
201
201
|
}, 200);
|
|
@@ -207,12 +207,12 @@ let NotebookFindWidget = class NotebookFindWidget extends SimpleFindReplaceWidge
|
|
|
207
207
|
this._replaceInput.select();
|
|
208
208
|
if (this._showTimeout === null) {
|
|
209
209
|
if (this._hideTimeout !== null) {
|
|
210
|
-
|
|
210
|
+
getWindow(this.getDomNode()).clearTimeout(this._hideTimeout);
|
|
211
211
|
this._hideTimeout = null;
|
|
212
212
|
this._notebookEditor.removeClassName(FIND_HIDE_TRANSITION);
|
|
213
213
|
}
|
|
214
214
|
this._notebookEditor.addClassName(FIND_SHOW_TRANSITION);
|
|
215
|
-
this._showTimeout =
|
|
215
|
+
this._showTimeout = getWindow(this.getDomNode()).setTimeout(() => {
|
|
216
216
|
this._notebookEditor.removeClassName(FIND_SHOW_TRANSITION);
|
|
217
217
|
this._showTimeout = null;
|
|
218
218
|
}, 200);
|
|
@@ -226,12 +226,12 @@ let NotebookFindWidget = class NotebookFindWidget extends SimpleFindReplaceWidge
|
|
|
226
226
|
this._progressBar.stop();
|
|
227
227
|
if (this._hideTimeout === null) {
|
|
228
228
|
if (this._showTimeout !== null) {
|
|
229
|
-
|
|
229
|
+
getWindow(this.getDomNode()).clearTimeout(this._showTimeout);
|
|
230
230
|
this._showTimeout = null;
|
|
231
231
|
this._notebookEditor.removeClassName(FIND_SHOW_TRANSITION);
|
|
232
232
|
}
|
|
233
233
|
this._notebookEditor.addClassName(FIND_HIDE_TRANSITION);
|
|
234
|
-
this._hideTimeout =
|
|
234
|
+
this._hideTimeout = getWindow(this.getDomNode()).setTimeout(() => {
|
|
235
235
|
this._notebookEditor.removeClassName(FIND_HIDE_TRANSITION);
|
|
236
236
|
}, 200);
|
|
237
237
|
}
|
|
@@ -264,7 +264,7 @@ let NotebookFindWidget = class NotebookFindWidget extends SimpleFindReplaceWidge
|
|
|
264
264
|
matchesCount += '+';
|
|
265
265
|
}
|
|
266
266
|
const matchesPosition = this._findModel.currentMatch < 0 ? '?' : String((this._findModel.currentMatch + 1));
|
|
267
|
-
label =
|
|
267
|
+
label = format(NLS_MATCHES_LOCATION, matchesPosition, matchesCount);
|
|
268
268
|
}
|
|
269
269
|
else {
|
|
270
270
|
label = NLS_NO_RESULTS;
|