You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,14 +39,15 @@ You can invoke command `TypeScript Code Organizer: Organize Current File` by usi
39
39
Extensions supports the following configuration options:
40
40
41
41
-`tsco.organizeOnSave`: Organizes TypeScripot code on save (set to false by default).
42
+
-`tsco.configurationFilePath`: Specifies the file path to the TSCO configuraiton file. Can be absolute or relative to the workspace root.
42
43
43
44
## Code Organization Configuration
44
45
45
46
Code organization is configured by a `tsco.json` configuration file. To create a default TypeScript Code Organizer configuration file, invoke the following command:
This will create a `tsco.json` file at the workspace root directory. For configuration reference, see [TypeScript Code Organizer Configuration Reference](https://www.npmjs.com/package/tsco-cli). The configuration file should be commited to the repository and shared with team members to ensure consistent code organization configuration.
50
+
This will create a `tsco.json` file at the workspace root directory. For configuration reference, see [TypeScript Code Organizer Configuration Reference](https://www.npmjs.com/package/tsco-cli). The configuration file should be commited to the repository and shared with team members to ensure consistent code organization configuration. If you would like to specify an alternative location for the configuration file, you con do it using `tsco.configurationFilePath` setting. If no configuration file is found, TSCO will look in the parent directory until `tsco.json` or the root of file system is found. If `tsco.json` is not found, the default configuration will be used.
50
51
51
52
## Ignoring files
52
53
@@ -62,6 +63,12 @@ or
62
63
// <auto-generated />
63
64
```
64
65
66
+
## Debugging TSCO
67
+
68
+
If you have issues with TSCO, like not using the correct configuration file, you can use tye output window to investigate issues:
Copy file name to clipboardExpand all lines: package.json
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
"name": "tsco",
3
3
"displayName": "TypeScript Code Organizer",
4
4
"description": "TypeScript Code Organizer for VS Code",
5
-
"version": "2.0.6",
5
+
"version": "2.0.7",
6
6
"publisher": "aljazsim",
7
7
"author": {
8
8
"name": "aljazsim",
@@ -51,6 +51,11 @@
51
51
"type": "boolean",
52
52
"default": false,
53
53
"description": "Source code will get organized automatically on file saved."
54
+
},
55
+
"tsco.configurationFilePath": {
56
+
"type": "string",
57
+
"default": "",
58
+
"description": "Location of tsco.json. Can be absolute file path or relative to the workspace root. If configuration file path isn't specified, default configuration will be used."
0 commit comments