-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(agent): Hotfix 1.3.2: disable syntax-based replace range calculat…
…ion by default. (#1345) * fix(agent): Hotfix 1.3.2: disable syntax-based replace range calculation by default. * test(agent): update test description.
- Loading branch information
Showing
7 changed files
with
91 additions
and
3 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
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
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
2 changes: 1 addition & 1 deletion
2
...s/tabby-agent/src/postprocess/golden/replace_range/experimental_syntax_javascript_01.toml
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
30 changes: 30 additions & 0 deletions
30
clients/tabby-agent/src/postprocess/golden/replace_range/experimental_syntax_rust_01.toml
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,30 @@ | ||
description = 'Replace range experimental: syntax rust: bad case 01' | ||
|
||
[config.limitScope] | ||
experimentalSyntax = true | ||
[config.calculateReplaceRange] | ||
experimentalSyntax = true | ||
|
||
[context] | ||
filepath = 'myTest.rs' | ||
language = 'rust' | ||
# indentation = ' ' # not specified | ||
text = ''' | ||
pub fun myTest(&self, text: String) { | ||
let mut body = HashMap::new(); | ||
body.insert("├text".to_string(), text);┤") | ||
let mut headers = HashMap::new(); | ||
headers.insert("Content-Type".to_string(), "application/json".to_string()); | ||
} | ||
''' | ||
|
||
[expected] | ||
text = ''' | ||
pub fun myTest(&self, text: String) { | ||
let mut body = HashMap::new(); | ||
body.insert("├text".to_string(), text);┤")╣ | ||
let mut headers = HashMap::new(); | ||
headers.insert("Content-Type".to_string(), "application/json".to_string()); | ||
} | ||
''' | ||
notEqual = true |
29 changes: 29 additions & 0 deletions
29
...nts/tabby-agent/src/postprocess/golden/replace_range/experimental_syntax_rust_01_ref.toml
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 @@ | ||
description = 'Replace range experimental: syntax rust: case 01 (ref)' | ||
|
||
[config.limitScope] | ||
experimentalSyntax = true | ||
[config.calculateReplaceRange] | ||
experimentalSyntax = false | ||
|
||
[context] | ||
filepath = 'myTest.rs' | ||
language = 'rust' | ||
# indentation = ' ' # not specified | ||
text = ''' | ||
pub fun myTest(&self, text: String) { | ||
let mut body = HashMap::new(); | ||
body.insert("├text".to_string(), text);┤") | ||
let mut headers = HashMap::new(); | ||
headers.insert("Content-Type".to_string(), "application/json".to_string()); | ||
} | ||
''' | ||
|
||
[expected] | ||
text = ''' | ||
pub fun myTest(&self, text: String) { | ||
let mut body = HashMap::new(); | ||
body.insert("├text".to_string(), text);┤")╣ | ||
let mut headers = HashMap::new(); | ||
headers.insert("Content-Type".to_string(), "application/json".to_string()); | ||
} | ||
''' |
23 changes: 23 additions & 0 deletions
23
...s/tabby-agent/src/postprocess/golden/replace_range/experimental_syntax_typescript_01.toml
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,23 @@ | ||
description = 'Replace range experimental: syntax typescript: case 01' | ||
|
||
[config.limitScope] | ||
experimentalSyntax = true | ||
[config.calculateReplaceRange] | ||
experimentalSyntax = true | ||
|
||
[context] | ||
filepath = 'print.ts' | ||
language = 'typescript' | ||
# indentation = ' ' # not specified | ||
text = ''' | ||
function print(obj: any) { | ||
console.log("Obj: ├", obj);┤") | ||
} | ||
''' | ||
|
||
[expected] | ||
text = ''' | ||
function print(obj: any) { | ||
console.log("Obj: ├", obj);┤")╣ | ||
} | ||
''' |