File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/vs/workbench/contrib/notebook/browser/contrib/viewportCustomMarkdown Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import { RunOnceScheduler } from 'vs/base/common/async' ;
7
7
import { Disposable } from 'vs/base/common/lifecycle' ;
8
- import { INotebookEditor , INotebookEditorContribution } from 'vs/workbench/contrib/notebook/browser/notebookBrowser' ;
8
+ import { CellEditState , INotebookEditor , INotebookEditorContribution } from 'vs/workbench/contrib/notebook/browser/notebookBrowser' ;
9
9
import { registerNotebookContribution } from 'vs/workbench/contrib/notebook/browser/notebookEditorExtensions' ;
10
10
import { CellKind , cellRangesToIndexes } from 'vs/workbench/contrib/notebook/common/notebookCommon' ;
11
11
@@ -28,7 +28,7 @@ class NotebookClipboardContribution extends Disposable implements INotebookEdito
28
28
cellRangesToIndexes ( visibleRanges ) . forEach ( index => {
29
29
const cell = this . _notebookEditor . viewModel ?. viewCells [ index ] ;
30
30
31
- if ( cell ?. cellKind === CellKind . Markdown ) {
31
+ if ( cell ?. cellKind === CellKind . Markdown && cell ?. editState === CellEditState . Preview ) {
32
32
this . _notebookEditor . createMarkdownPreview ( cell ) ;
33
33
}
34
34
} ) ;
You can’t perform that action at this time.
0 commit comments