Skip to content

Commit d51cea3

Browse files
Update name to directory
1 parent 2ac4d44 commit d51cea3

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

cursorless-talon/src/actions/generate_snippet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def private_cursorless_generate_snippet_action(target: CursorlessExplicitTarget)
3232
{
3333
"name": "generateSnippet",
3434
"target": target,
35-
"dirPath": str(get_dir_path()),
35+
"directory": str(get_dir_path()),
3636
}
3737
)
3838

data/fixtures/recorded/actions/snippets/snipMakeFunk2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ command:
44
spokenForm: snippet make funk
55
action:
66
name: generateSnippet
7-
dirPath: ""
7+
directory: ""
88
snippetName: snippetTest1
99
target:
1010
type: primitive

data/fixtures/recorded/actions/snippets/snipMakeState2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ command:
44
spokenForm: snippet make state
55
action:
66
name: generateSnippet
7-
dirPath: ""
7+
directory: ""
88
snippetName: snippetTest1
99
target:
1010
type: primitive

data/fixtures/recorded/actions/snippets/testSnippetMakeLine2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ command:
44
spokenForm: test snippet make line
55
action:
66
name: generateSnippet
7-
dirPath: ""
7+
directory: ""
88
snippetName: testSnippet
99
target:
1010
type: primitive

packages/common/src/types/command/ActionDescriptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export interface PasteActionDescriptor {
135135

136136
export interface GenerateSnippetActionDescriptor {
137137
name: "generateSnippet";
138-
dirPath?: string;
138+
directory?: string;
139139
snippetName?: string;
140140
target: PartialTargetDescriptor;
141141
}

packages/cursorless-engine/src/actions/GenerateSnippet/GenerateSnippetCommunity.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default class GenerateSnippetCommunity {
5858

5959
async run(
6060
targets: Target[],
61-
dirPath: string,
61+
directory: string,
6262
snippetName?: string,
6363
): Promise<ActionReturnValue> {
6464
const target = ensureSingleTarget(targets);
@@ -138,7 +138,7 @@ export default class GenerateSnippetCommunity {
138138
} else {
139139
// Otherwise, we create and open a new document for the snippet
140140
editableEditor = ide().getEditableTextEditor(
141-
await this.snippets.openNewSnippetFile(snippetName, dirPath),
141+
await this.snippets.openNewSnippetFile(snippetName, directory),
142142
);
143143
snippetDocuments = parseSnippetFile(editableEditor.document.getText());
144144
}

packages/cursorless-engine/src/core/commandRunner/CommandRunnerImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export class CommandRunnerImpl implements CommandRunner {
169169
case "generateSnippet":
170170
return this.actions.generateSnippet.run(
171171
this.getTargets(actionDescriptor.target),
172-
actionDescriptor.dirPath,
172+
actionDescriptor.directory,
173173
actionDescriptor.snippetName,
174174
);
175175

0 commit comments

Comments
 (0)