Skip to content

Commit b055a26

Browse files
committed
Remove log statement from copy
1 parent 2bc6e1a commit b055a26

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

scripts/vscode.patch

+8-10
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ index c69ea3f..b8d87f7 100644
247247
-const GOLDEN_LINE_HEIGHT_RATIO = platform.isMacintosh ? 1.5 : 1.35;
248248
+const GOLDEN_LINE_HEIGHT_RATIO = browser.isMacintosh ? 1.5 : 1.35;
249249
diff --git a/src/vs/editor/contrib/clipboard/clipboard.ts b/src/vs/editor/contrib/clipboard/clipboard.ts
250-
index 990be3a..4bec789 100644
250+
index 990be3a..18ae0d5 100644
251251
--- a/src/vs/editor/contrib/clipboard/clipboard.ts
252252
+++ b/src/vs/editor/contrib/clipboard/clipboard.ts
253253
@@ -18,0 +19 @@ import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegis
@@ -256,27 +256,25 @@ index 990be3a..4bec789 100644
256256
-const supportsPaste = (platform.isNative || (!browser.isChrome && document.queryCommandSupported('paste')));
257257
+// const supportsPaste = (platform.isNative || (!browser.isChrome && document.queryCommandSupported('paste')));
258258
+const supportsPaste = true;
259-
@@ -54,0 +57 @@ abstract class ExecCommandAction extends EditorAction {
260-
+ console.log(document.activeElement!.cloneNode(true));
261-
@@ -71 +74 @@ class ExecCommandCutAction extends ExecCommandAction {
259+
@@ -71 +73 @@ class ExecCommandCutAction extends ExecCommandAction {
262260
- kbOpts = null;
263261
+ // kbOpts = null;
264-
@@ -119 +122 @@ class ExecCommandCopyAction extends ExecCommandAction {
262+
@@ -119 +121 @@ class ExecCommandCopyAction extends ExecCommandAction {
265263
- kbOpts = null;
266264
+ // kbOpts = null;
267-
@@ -174 +177 @@ class ExecCommandPasteAction extends ExecCommandAction {
265+
@@ -174 +176 @@ class ExecCommandPasteAction extends ExecCommandAction {
268266
- kbOpts = null;
269267
+ // kbOpts = null;
270-
@@ -176,0 +180 @@ class ExecCommandPasteAction extends ExecCommandAction {
268+
@@ -176,0 +179 @@ class ExecCommandPasteAction extends ExecCommandAction {
271269
+ const { workbench } = require('vs/../../../../packages/vscode/src/workbench') as typeof import ('vs/../../../../packages/vscode/src/workbench');
272-
@@ -181 +185 @@ class ExecCommandPasteAction extends ExecCommandAction {
270+
@@ -181 +184 @@ class ExecCommandPasteAction extends ExecCommandAction {
273271
- precondition: EditorContextKeys.writable,
274272
+ precondition: (require('vs/platform/contextkey/common/contextkey') as typeof import('vs/platform/contextkey/common/contextkey')).ContextKeyExpr.and(EditorContextKeys.writable, workbench.clipboardContextKey),
275-
@@ -191 +195,2 @@ class ExecCommandPasteAction extends ExecCommandAction {
273+
@@ -191 +194,2 @@ class ExecCommandPasteAction extends ExecCommandAction {
276274
- order: 3
277275
+ order: 3,
278276
+ when: workbench.clipboardContextKey,
279-
@@ -194,0 +200,26 @@ class ExecCommandPasteAction extends ExecCommandAction {
277+
@@ -194,0 +199,26 @@ class ExecCommandPasteAction extends ExecCommandAction {
280278
+
281279
+ public async run(accessor, editor: ICodeEditor): Promise<void> {
282280
+ if (editor instanceof (require('vs/editor/browser/widget/codeEditorWidget') as typeof import('vs/editor/browser/widget/codeEditorWidget')).CodeEditorWidget) {

0 commit comments

Comments
 (0)