-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
929ee4a
commit 41b2e63
Showing
7 changed files
with
139 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/php/changeFunk2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
languageId: php | ||
command: | ||
version: 6 | ||
spokenForm: change funk | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: namedFunction} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
<?php | ||
class MyClass | ||
{ | ||
public function helloWorld() | ||
{ | ||
} | ||
} | ||
selections: | ||
- anchor: {line: 6, character: 0} | ||
active: {line: 6, character: 0} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
<?php | ||
class MyClass | ||
{ | ||
} | ||
selections: | ||
- anchor: {line: 4, character: 4} | ||
active: {line: 4, character: 4} |
31 changes: 31 additions & 0 deletions
31
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/php/changeFunk3.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
languageId: php | ||
command: | ||
version: 6 | ||
spokenForm: change funk | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: namedFunction} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
<?php | ||
$myFunk = function() { | ||
}; | ||
selections: | ||
- anchor: {line: 3, character: 0} | ||
active: {line: 3, character: 0} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
<?php | ||
; | ||
selections: | ||
- anchor: {line: 2, character: 0} | ||
active: {line: 2, character: 0} |
29 changes: 29 additions & 0 deletions
29
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/php/changeFunk4.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
languageId: php | ||
command: | ||
version: 6 | ||
spokenForm: change funk | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: namedFunction} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: | | ||
<?php | ||
$myFunk = fn() => 'Hello world'; | ||
selections: | ||
- anchor: {line: 2, character: 24} | ||
active: {line: 2, character: 24} | ||
marks: {} | ||
finalState: | ||
documentContents: | | ||
<?php | ||
; | ||
selections: | ||
- anchor: {line: 2, character: 0} | ||
active: {line: 2, character: 0} |
16 changes: 10 additions & 6 deletions
16
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/php/chuckFunk.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 14 additions & 9 deletions
23
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/php/chuckFunk2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,29 @@ | ||
languageId: php | ||
command: | ||
version: 1 | ||
version: 6 | ||
spokenForm: chuck funk | ||
action: remove | ||
targets: | ||
- type: primitive | ||
modifier: {type: containingScope, scopeType: namedFunction, includeSiblings: false} | ||
action: | ||
name: remove | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: namedFunction} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
documentContents: | | ||
<?php | ||
$myFunc = fn() => 'Hello world'; | ||
$myFunk = fn() => 'Hello world'; | ||
selections: | ||
- anchor: {line: 2, character: 25} | ||
active: {line: 2, character: 25} | ||
- anchor: {line: 2, character: 24} | ||
active: {line: 2, character: 24} | ||
marks: {} | ||
finalState: | ||
documentContents: |+ | ||
<?php | ||
selections: | ||
- anchor: {line: 2, character: 0} | ||
active: {line: 2, character: 0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters