Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a200aa9

Browse filesBrowse files
committed
non-default args
1 parent 2857bb9 commit a200aa9
Copy full SHA for a200aa9

1 file changed

+5-5Lines changed: 5 additions & 5 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/harness/fourslash.ts‎

Copy file name to clipboardExpand all lines: src/harness/fourslash.ts
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,7 @@ namespace FourSlash {
15841584
}
15851585
}
15861586

1587-
public printCurrentFileState(makeWhitespaceVisible = false, makeCaretVisible = true) {
1587+
public printCurrentFileState(makeWhitespaceVisible: boolean, makeCaretVisible: boolean) {
15881588
for (const file of this.testData.files) {
15891589
const active = (this.activeFile === file);
15901590
Harness.IO.log(`=== Script (${file.fileName}) ${(active ? "(active, cursor at |)" : "")} ===`);
@@ -1769,7 +1769,7 @@ namespace FourSlash {
17691769
* @returns The number of characters added to the file as a result of the edits.
17701770
* May be negative.
17711771
*/
1772-
private applyEdits(fileName: string, edits: ts.TextChange[], isFormattingEdit = false): number {
1772+
private applyEdits(fileName: string, edits: ts.TextChange[], isFormattingEdit: boolean): number {
17731773
// We get back a set of edits, but langSvc.editScript only accepts one at a time. Use this to keep track
17741774
// of the incremental offset from each edit to the next. We assume these edit ranges don't overlap
17751775

@@ -2759,7 +2759,7 @@ namespace FourSlash {
27592759
const editInfo = this.languageService.getEditsForRefactor(this.activeFile.fileName, formattingOptions, markerPos, refactorNameToApply, actionName);
27602760

27612761
for (const edit of editInfo.edits) {
2762-
this.applyEdits(edit.fileName, edit.textChanges);
2762+
this.applyEdits(edit.fileName, edit.textChanges, /*isFormattingEdit*/ false);
27632763
}
27642764
const actualContent = this.getFileContent(this.activeFile.fileName);
27652765

@@ -4002,11 +4002,11 @@ namespace FourSlashInterface {
40024002
}
40034003

40044004
public printCurrentFileState() {
4005-
this.state.printCurrentFileState(/*makeWhitespaceVisible*/ true, /*makeCaretVisible*/ true);
4005+
this.state.printCurrentFileState(/*makeWhitespaceVisible*/ false, /*makeCaretVisible*/ true);
40064006
}
40074007

40084008
public printCurrentFileStateWithWhitespace() {
4009-
this.state.printCurrentFileState(/*makeWhitespaceVisible*/ true);
4009+
this.state.printCurrentFileState(/*makeWhitespaceVisible*/ true, /*makeCaretVisible*/ true);
40104010
}
40114011

40124012
public printCurrentFileStateWithoutCaret() {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.