-
-
Notifications
You must be signed in to change notification settings - Fork 88
Move node dependencies out of commons and engine #2500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 24 commits
62ce2d8
08de803
824800f
c4181e9
13cd65b
71ce24c
035375d
65d54a2
52da088
700ad47
2794e79
d018fd1
5aeea77
7acf1b1
19b24fc
ec6c48b
bf96dca
54ce838
b51f3c3
80224b0
b72c485
eb41192
23817e7
1229e4b
f21dc26
cd71783
15d0850
73a2f35
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import { getFixturePath } from "../../index"; | ||
import { GeneralizedRange } from "../../types/GeneralizedRange"; | ||
import { TextEditor } from "../../types/TextEditor"; | ||
import FakeConfiguration from "../fake/FakeConfiguration"; | ||
|
@@ -17,6 +16,7 @@ export class NormalizedIDE extends PassthroughIDEBase { | |
original: IDE, | ||
public fakeIde: FakeIDE, | ||
private isSilent: boolean, | ||
private cursorlessSnippetsDir: string, | ||
) { | ||
super(original); | ||
|
||
|
@@ -46,7 +46,7 @@ export class NormalizedIDE extends PassthroughIDEBase { | |
hatStability: this.configuration.getOwnConfiguration( | ||
"experimental.hatStability", | ||
), | ||
snippetsDir: getFixturePath("cursorless-snippets"), | ||
snippetsDir: this.cursorlessSnippetsDir, | ||
keyboardTargetFollowsSelection: false, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This implementation I'm not quite happy with. The problem is that normalized ide is used in the extension bundle and uses a environment fixture path. I will happily take any suggestions here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mean |
||
}); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type { FakeCommandServerApi } from "../FakeCommandServerApi"; | ||
import type { IDE } from "../ide/types/ide.types"; | ||
import type { | ||
ExcludableSnapshotField, | ||
ExtraSnapshotField, | ||
TestCaseSnapshot, | ||
} from "../testUtil/TestCaseSnapshot"; | ||
import type { SerializedMarks, TargetPlainObject } from "../util/toPlainObject"; | ||
import type { HatTokenMap } from "./HatTokenMap"; | ||
import type { TextEditor } from "./TextEditor"; | ||
|
||
export interface TestHelpers { | ||
hatTokenMap: HatTokenMap; | ||
|
||
// FIXME: Remove this once we have a better way to get this function | ||
// accessible from our tests | ||
takeSnapshot( | ||
excludeFields: ExcludableSnapshotField[], | ||
extraFields: ExtraSnapshotField[], | ||
editor: TextEditor, | ||
ide: IDE, | ||
marks: SerializedMarks | undefined, | ||
): Promise<TestCaseSnapshot>; | ||
|
||
setStoredTarget( | ||
editor: TextEditor, | ||
key: string, | ||
targets: TargetPlainObject[] | undefined, | ||
): void; | ||
|
||
commandServerApi: FakeCommandServerApi; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,9 @@ | |
"references": [ | ||
{ | ||
"path": "../common" | ||
}, | ||
{ | ||
"path": "../node-common" | ||
} | ||
] | ||
} |
Uh oh!
There was an error while loading. Please reload this page.