Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrebornix <penn.lv@gmail.com>2022-04-14 21:21:41 +0300
committerrebornix <penn.lv@gmail.com>2022-04-14 21:21:41 +0300
commit30caa88a453bc88d7eab70c6b1a0207efbbfd517 (patch)
tree54771798e7d3ce4e8ac1fd06355c944d89bccc26 /src/vs/workbench/contrib/notebook/common
parent280050dba576740f0350245409d147aa2c84aa94 (diff)
parent3c9c0e36cd536805b8d376d1f1e09b6db0c53522 (diff)
Merge remote-tracking branch 'origin/main' into rebornix/lazy-kernel
Diffstat (limited to 'src/vs/workbench/contrib/notebook/common')
-rw-r--r--src/vs/workbench/contrib/notebook/common/notebookEditorInput.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vs/workbench/contrib/notebook/common/notebookEditorInput.ts b/src/vs/workbench/contrib/notebook/common/notebookEditorInput.ts
index cffd2b0362d..6e28efdd088 100644
--- a/src/vs/workbench/contrib/notebook/common/notebookEditorInput.ts
+++ b/src/vs/workbench/contrib/notebook/common/notebookEditorInput.ts
@@ -102,6 +102,10 @@ export class NotebookEditorInput extends AbstractResourceEditorInput {
}
}
+ if (!(capabilities & EditorInputCapabilities.Readonly)) {
+ capabilities |= EditorInputCapabilities.CanDropIntoEditor;
+ }
+
return capabilities;
}