File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
cursorless-vscode/src/ide/vscode Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
import type { Capabilities , CommandCapabilityMap } from "@cursorless/common" ;
2
+ import { nodeGetRunMode } from "@cursorless/node-common" ;
3
+ import * as semver from "semver" ;
4
+ import * as vscode from "vscode" ;
5
+
6
+ // FIXME: In newer versions of vscode the `editor.action.clipboardCopyAction`
7
+ // command appears to be disabled / sandboxed in test mode.
8
+ const supportsCopy =
9
+ nodeGetRunMode ( ) !== "test" || semver . lt ( vscode . version , "1.98.0" ) ;
2
10
3
11
const COMMAND_CAPABILITIES : CommandCapabilityMap = {
12
+ clipboardCopy : supportsCopy ? { acceptsLocation : false } : undefined ,
4
13
clipboardPaste : true ,
5
- clipboardCopy : { acceptsLocation : false } ,
6
14
toggleLineComment : { acceptsLocation : false } ,
7
15
indentLine : { acceptsLocation : false } ,
8
16
outdentLine : { acceptsLocation : false } ,
Original file line number Diff line number Diff line change @@ -35,10 +35,7 @@ export async function launchVscodeAndRunTests(extensionTestsPath: string) {
35
35
// we don't have to update the branch protection rules every time we bump
36
36
// the legacy VSCode version.
37
37
38
- // NB: Because of a CI crashing issue the vscode version is pinned.
39
- // https://github.com/cursorless-dev/cursorless/issues/2878
40
-
41
- const vscodeVersion = useLegacyVscode ? "1.82.0" : "1.97.2" ;
38
+ const vscodeVersion = useLegacyVscode ? "1.82.0" : "stable" ;
42
39
const vscodeExecutablePath = await downloadAndUnzipVSCode ( vscodeVersion ) ;
43
40
const [ cli , ...args ] =
44
41
resolveCliArgsFromVSCodeExecutablePath ( vscodeExecutablePath ) ;
You can’t perform that action at this time.
0 commit comments