File tree Expand file tree Collapse file tree 4 files changed +17
-19
lines changed Expand file tree Collapse file tree 4 files changed +17
-19
lines changed Original file line number Diff line number Diff line change 1
- Processed 152 files (1s ) (16 warnings)
1
+ Processed 152 files (995ms ) (16 warnings)
2
2
3
3
1) Config/Settings.ts > Suggestor/Suggestor.ts
4
4
2) Task/Task.ts > Config/Settings.ts > Suggestor/Suggestor.ts
@@ -9,8 +9,7 @@ Processed 152 files (1s) (16 warnings)
9
9
7) Task/Task.ts > lib/LogTasksHelper.ts
10
10
8) Query/Query.ts > Query/Explain/Explainer.ts
11
11
9) Query/FilterParser.ts > Query/Filter/BooleanField.ts
12
- 10) Statuses/StatusRegistryReport.ts > Statuses/StatusSettingsReport.ts
13
- 11) main.ts > Config/SettingsTab.ts
14
- 12) Obsidian/Cache.ts > Obsidian/TasksEvents.ts
15
- 13) main.ts > Renderer/QueryRenderer.ts
12
+ 10) main.ts > Config/SettingsTab.ts
13
+ 11) Obsidian/Cache.ts > Obsidian/TasksEvents.ts
14
+ 12) main.ts > Renderer/QueryRenderer.ts
16
15
Original file line number Diff line number Diff line change @@ -47,14 +47,3 @@ ${settingsTable}
47
47
These are the settings actually used by Tasks.
48
48
${ mermaidText } `;
49
49
}
50
-
51
- export function getPrintableSymbol ( symbol : string ) {
52
- // Do not put backticks around an empty symbol, as the two backticks are rendered
53
- // by Obsidian as ordinary characters and the meaning is unclear.
54
- // Better to just display nothing in this situation.
55
- if ( symbol === '' ) {
56
- return symbol ;
57
- }
58
- const result = symbol !== ' ' ? symbol : 'space' ;
59
- return '`' + result + '`' ;
60
- }
Original file line number Diff line number Diff line change 1
1
import { StatusSettings } from '../Config/StatusSettings' ;
2
2
import { MarkdownTable } from '../lib/MarkdownTable' ;
3
3
import type { StatusConfiguration } from './StatusConfiguration' ;
4
- import { getPrintableSymbol } from './StatusRegistryReport' ;
5
- import { Status } from './Status' ;
6
4
import { StatusType } from './StatusConfiguration' ;
5
+ import { Status } from './Status' ;
7
6
8
7
function getFirstIndex ( statusConfigurations : StatusConfiguration [ ] , wantedSymbol : string ) {
9
8
return statusConfigurations . findIndex ( ( s ) => s . symbol === wantedSymbol ) ;
10
9
}
11
10
11
+ export function getPrintableSymbol ( symbol : string ) {
12
+ // Do not put backticks around an empty symbol, as the two backticks are rendered
13
+ // by Obsidian as ordinary characters and the meaning is unclear.
14
+ // Better to just display nothing in this situation.
15
+ if ( symbol === '' ) {
16
+ return symbol ;
17
+ }
18
+ const result = symbol !== ' ' ? symbol : 'space' ;
19
+ return '`' + result + '`' ;
20
+ }
21
+
12
22
function checkIfConventionalType ( status : StatusConfiguration , problems : string [ ] ) {
13
23
// Check if conventional type is being used:
14
24
const conventionalType = Status . getTypeForUnknownSymbol ( status . symbol ) ;
Original file line number Diff line number Diff line change 1
1
import { verify } from 'approvals/lib/Providers/Jest/JestApprovals' ;
2
- import { getPrintableSymbol } from '../../src/Statuses/StatusRegistryReport' ;
3
2
import type { Status } from '../../src/Statuses/Status' ;
4
3
import { MarkdownTable } from '../../src/lib/MarkdownTable' ;
5
4
import type { Task } from '../../src/Task/Task' ;
@@ -11,6 +10,7 @@ import { StatusField } from '../../src/Query/Filter/StatusField';
11
10
import { StatusTypeField } from '../../src/Query/Filter/StatusTypeField' ;
12
11
import { StatusNameField } from '../../src/Query/Filter/StatusNameField' ;
13
12
import { StatusRegistry } from '../../src/Statuses/StatusRegistry' ;
13
+ import { getPrintableSymbol } from '../../src/Statuses/StatusSettingsReport' ;
14
14
import { TaskBuilder } from './TaskBuilder' ;
15
15
import { verifyMarkdownForDocs } from './VerifyMarkdown' ;
16
16
import { verifyWithFileExtension } from './ApprovalTestHelpers' ;
You can’t perform that action at this time.
0 commit comments