summaryrefslogtreecommitdiff
path: root/Library/Artifacts/66/6625ff97dde6e0071a0837006a373527
blob: 77253fc801f6f886156550bc9daa996a550e243b (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 45 68 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......Eh............2019.3.6f1..
0020 ff ff ff 01 02 00 00 00 0b 04 00 00 00 ff ff 66 9a 86 21 eb 14 35 98 39 dd 34 1d 51 0e c1 f3 42 ...............f..!..5.9.4.Q...B
0040 00 00 00 ed 00 00 00 02 00 00 00 00 00 00 00 37 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 ...............7................
0060 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 ................................
0080 00 00 00 00 00 00 00 01 00 01 00 0d 00 00 00 45 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 ...............E................
00a0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 ...............#................
00c0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 ...............,................
00e0 00 00 00 00 00 00 00 01 00 01 00 35 00 00 00 61 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 ...........5...a................
0100 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 ...............#................
0120 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 ...............,................
0140 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 ...............r................
0160 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 ...............#................
0180 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 ...............,................
01a0 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 ...........H....................
01c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 ...........1...1............@...
01e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 ................................
0200 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 ...........Q...j................
0220 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 4a 00 00 00 ff ff ff ff 0f 00 00 00 00 c0 00 00 00 ...............J................
0240 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 10 00 00 00 00 80 00 00 00 ...........1...1................
0260 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 11 00 00 00 00 00 00 00 00 ................................
0280 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 12 00 00 00 00 80 00 00 00 ...............j................
02a0 00 00 00 00 00 00 00 01 00 04 00 5c 00 00 00 9b 00 00 80 ff ff ff ff 13 00 00 00 00 80 00 00 00 ...........\....................
02c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 72 00 00 00 ff ff ff ff 14 00 00 00 00 80 00 00 00 ...........H...r................
02e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 15 00 00 00 01 40 00 00 00 ...........1...1............@...
0300 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 16 00 00 00 01 00 00 00 00 ................................
0320 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 17 00 00 00 01 00 00 00 00 ...........Q...j................
0340 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 77 00 00 00 ff ff ff ff 18 00 00 00 00 80 00 00 00 ...........H...w................
0360 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 19 00 00 00 01 40 00 00 00 ...........1...1............@...
0380 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1a 00 00 00 01 00 00 00 00 ................................
03a0 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1b 00 00 00 01 00 00 00 00 ...........Q...j................
03c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 80 00 00 00 ff ff ff ff 1c 00 00 00 00 80 00 00 00 ...........H....................
03e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 1d 00 00 00 01 40 00 00 00 ...........1...1............@...
0400 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1e 00 00 00 01 00 00 00 00 ................................
0420 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1f 00 00 00 01 00 00 00 00 ...........Q...j................
0440 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 20 00 00 00 00 00 00 00 00 ...........y....................
0460 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 21 00 00 00 01 00 80 00 00 ...............#.......!........
0480 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 22 00 00 00 01 00 80 00 00 ...............,......."........
04a0 00 00 00 00 00 00 00 01 00 01 00 11 03 00 80 85 00 00 00 ff ff ff ff 23 00 00 00 01 40 08 00 00 .......................#....@...
04c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 24 00 00 00 01 00 08 00 00 ...........1...1.......$........
04e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 25 00 00 00 01 00 08 00 00 .......................%........
0500 00 00 00 00 00 00 00 01 00 03 00 2e 03 00 80 6a 00 00 80 08 00 00 00 26 00 00 00 01 00 08 00 00 ...............j.......&........
0520 00 00 00 00 00 00 00 01 00 01 00 d5 03 00 80 93 00 00 00 ff ff ff ff 27 00 00 00 00 80 00 00 00 .......................'........
0540 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 28 00 00 00 00 c0 00 00 00 ...........1...1.......(........
0560 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 29 00 00 00 00 00 00 00 00 .......................)........
0580 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 2a 00 00 00 00 80 00 00 00 ...............j.......*........
05a0 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b 00 00 80 ff ff ff ff 2b 00 00 00 00 80 00 00 00 ...........H...........+........
05c0 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 00 00 80 ff ff ff ff 2c 00 00 00 01 40 00 00 00 ...........1...1.......,....@...
05e0 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b 03 00 80 04 00 00 00 2d 00 00 00 01 00 00 00 00 .......................-........
0600 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a 00 00 80 01 00 00 00 2e 00 00 00 01 00 00 00 00 ...........Q...j................
0620 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 2f 00 00 00 00 00 00 00 00 ...........y.........../........
0640 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 30 00 00 00 01 00 80 00 00 ...............#.......0........
0660 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 31 00 00 00 01 00 80 00 00 ...............,.......1........
0680 00 00 00 00 00 00 00 01 00 01 00 20 03 00 80 a7 00 00 00 02 00 00 00 32 00 00 00 00 40 00 00 00 .......................2....@...
06a0 00 00 00 00 00 00 00 01 00 01 00 be 02 00 80 b6 00 00 00 0c 00 00 00 33 00 00 00 00 40 00 00 00 .......................3....@...
06c0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 34 00 00 00 01 00 80 00 00 ...............#.......4........
06e0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 35 00 00 00 01 00 80 00 00 ...............,.......5........
0700 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 bb 00 00 00 ff ff ff ff 36 00 00 00 01 80 00 00 00 ...........H...........6........
0720 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 37 00 00 00 01 40 00 00 00 ...........1...1.......7....@...
0740 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 38 00 00 00 01 00 00 00 00 .......................8........
0760 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 39 00 00 00 01 00 00 00 00 ...........Q...j.......9........
0780 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 c6 00 00 00 ff ff ff ff 3a 00 00 00 01 80 00 00 00 ...........H...........:........
07a0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3b 00 00 00 01 40 00 00 00 ...........1...1.......;....@...
07c0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 3c 00 00 00 01 00 00 00 00 .......................<........
07e0 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 3d 00 00 00 01 00 00 00 00 ...........Q...j.......=........
0800 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 d8 00 00 00 ff ff ff ff 3e 00 00 00 01 80 00 00 00 ...........H...........>........
0820 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3f 00 00 00 01 40 00 00 00 ...........1...1.......?....@...
0840 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 40 00 00 00 01 00 00 00 00 .......................@........
0860 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 41 00 00 00 01 00 00 00 00 ...........Q...j.......A........
0880 00 00 00 00 00 00 00 4d 6f 6e 6f 49 6d 70 6f 72 74 65 72 00 50 50 74 72 3c 45 64 69 74 6f 72 45 .......MonoImporter.PPtr<EditorE
08a0 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 50 74 72 xtension>.m_FileID.m_PathID.PPtr
08c0 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 45 78 74 65 72 6e 61 6c 4f 62 6a 65 63 <PrefabInstance>.m_ExternalObjec
08e0 74 73 00 53 6f 75 72 63 65 41 73 73 65 74 49 64 65 6e 74 69 66 69 65 72 00 74 79 70 65 00 61 73 ts.SourceAssetIdentifier.type.as
0900 73 65 6d 62 6c 79 00 6e 61 6d 65 00 6d 5f 55 73 65 64 46 69 6c 65 49 44 73 00 6d 5f 44 65 66 61 sembly.name.m_UsedFileIDs.m_Defa
0920 75 6c 74 52 65 66 65 72 65 6e 63 65 73 00 65 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 69 63 6f ultReferences.executionOrder.ico
0940 6e 00 6d 5f 55 73 65 72 44 61 74 61 00 6d 5f 41 73 73 65 74 42 75 6e 64 6c 65 4e 61 6d 65 00 6d n.m_UserData.m_AssetBundleName.m
0960 5f 41 73 73 65 74 42 75 6e 64 6c 65 56 61 72 69 61 6e 74 00 00 00 00 00 73 00 00 00 00 ff ff a3 _AssetBundleVariant.....s.......
0980 47 f1 d7 dc 8f 5a 35 36 a0 3a 21 40 69 c1 4a 2a 00 00 00 81 00 00 00 05 00 00 00 15 01 00 80 37 G....Z56.:!@i.J*...............7
09a0 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 ................................
09c0 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00 45 ...............................E
09e0 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a00 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a20 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 28 00 00 00 61 ...........................(...a
0a40 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a60 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a80 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 ...............................r
0aa0 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0ac0 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0ae0 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab ...........................H....
0b00 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0b20 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0b40 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0b60 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ea ...........................H....
0b80 01 00 80 ff ff ff ff 0f 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0ba0 00 00 80 ff ff ff ff 10 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0bc0 03 00 80 04 00 00 00 11 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0be0 00 00 80 01 00 00 00 12 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 3d ...............................=
0c00 00 00 00 ff ff ff ff 13 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0c20 00 00 80 ff ff ff ff 14 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ................................
0c40 03 00 80 04 00 00 00 15 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a ...............................j
0c60 00 00 80 ff ff ff ff 16 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b ...........................H....
0c80 00 00 80 ff ff ff ff 17 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 ...........................1...1
0ca0 00 00 80 ff ff ff ff 18 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b ............@...................
0cc0 03 00 80 04 00 00 00 19 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a ...........................Q...j
0ce0 00 00 80 01 00 00 00 1a 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a ...........................y....
0d00 03 00 80 0c 00 00 00 1b 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 16 ................................
0d20 00 00 00 04 00 00 00 1c 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 1f ................................
0d40 00 00 00 08 00 00 00 1d 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 79 02 00 80 51 ...........................y...Q
0d60 00 00 00 0c 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0d80 00 00 00 04 00 00 00 1f 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0da0 00 00 00 08 00 00 00 20 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 de 00 00 80 58 ...............................X
0dc0 00 00 00 04 00 00 00 21 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 69 .......!...................H...i
0de0 00 00 00 ff ff ff ff 22 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ......."...................1...1
0e00 00 00 80 ff ff ff ff 23 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......#....@...................
0e20 03 00 80 04 00 00 00 24 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......$...................Q...j
0e40 00 00 80 01 00 00 00 25 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 75 .......%...................H...u
0e60 00 00 00 ff ff ff ff 26 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 .......&...................1...1
0e80 00 00 80 ff ff ff ff 27 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......'....@...................
0ea0 03 00 80 04 00 00 00 28 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......(...................Q...j
0ec0 00 00 80 01 00 00 00 29 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 50 50 74 72 3c 45 64 69 74 .......)...............PPtr<Edit
0ee0 6f 72 45 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 orExtension>.m_FileID.m_PathID.P
0f00 50 74 72 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 44 65 66 61 75 6c 74 52 65 66 Ptr<PrefabInstance>.m_DefaultRef
0f20 65 72 65 6e 63 65 73 00 6d 5f 49 63 6f 6e 00 6d 5f 45 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 erences.m_Icon.m_ExecutionOrder.
0f40 6d 5f 43 6c 61 73 73 4e 61 6d 65 00 6d 5f 4e 61 6d 65 73 70 61 63 65 00 00 00 00 00 02 00 00 00 m_ClassName.m_Namespace.........
0f60 03 00 00 00 00 00 00 00 00 00 00 00 5c 00 00 00 00 00 00 00 e0 79 af 00 00 00 00 00 60 00 00 00 ............\........y......`...
0f80 08 35 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .5..............................
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 .....................y..........
1040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1080 00 00 00 00 00 00 00 00 11 00 00 00 52 69 64 65 72 53 63 72 69 70 74 45 64 69 74 6f 72 00 00 00 ............RiderScriptEditor...
10a0 79 34 00 00 75 73 69 6e 67 20 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e y4..using.System;..using.System.
10c0 44 69 61 67 6e 6f 73 74 69 63 73 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 49 4f 3b 0d 0a Diagnostics;..using.System.IO;..
10e0 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 4c 69 6e 71 3b 0d 0a 75 73 69 6e 67 20 50 61 63 6b 61 67 using.System.Linq;..using.Packag
1100 65 73 2e 52 69 64 65 72 2e 45 64 69 74 6f 72 2e 55 74 69 6c 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 es.Rider.Editor.Util;..using.Uni
1120 74 79 2e 43 6f 64 65 45 64 69 74 6f 72 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f ty.CodeEditor;..using.UnityEdito
1140 72 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 3b 0d 0a 75 73 69 6e 67 20 44 65 r;..using.UnityEngine;..using.De
1160 62 75 67 20 3d 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 44 65 62 75 67 3b 0d 0a 0d 0a 6e 61 6d 65 bug.=.UnityEngine.Debug;....name
1180 73 70 61 63 65 20 50 61 63 6b 61 67 65 73 2e 52 69 64 65 72 2e 45 64 69 74 6f 72 0d 0a 7b 0d 0a space.Packages.Rider.Editor..{..
11a0 20 20 5b 49 6e 69 74 69 61 6c 69 7a 65 4f 6e 4c 6f 61 64 5d 0d 0a 20 20 70 75 62 6c 69 63 20 63 ..[InitializeOnLoad]....public.c
11c0 6c 61 73 73 20 52 69 64 65 72 53 63 72 69 70 74 45 64 69 74 6f 72 20 3a 20 49 45 78 74 65 72 6e lass.RiderScriptEditor.:.IExtern
11e0 61 6c 43 6f 64 65 45 64 69 74 6f 72 0d 0a 20 20 7b 0d 0a 20 20 20 20 49 44 69 73 63 6f 76 65 72 alCodeEditor....{......IDiscover
1200 79 20 6d 5f 44 69 73 63 6f 76 65 72 61 62 69 6c 69 74 79 3b 0d 0a 20 20 20 20 49 47 65 6e 65 72 y.m_Discoverability;......IGener
1220 61 74 6f 72 20 6d 5f 50 72 6f 6a 65 63 74 47 65 6e 65 72 61 74 69 6f 6e 3b 0d 0a 20 20 20 20 52 ator.m_ProjectGeneration;......R
1240 69 64 65 72 49 6e 69 74 69 61 6c 69 7a 65 72 20 6d 5f 49 6e 69 74 69 6c 69 61 7a 65 72 20 3d 20 iderInitializer.m_Initiliazer.=.
1260 6e 65 77 20 52 69 64 65 72 49 6e 69 74 69 61 6c 69 7a 65 72 28 29 3b 0d 0a 0d 0a 20 20 20 20 73 new.RiderInitializer();........s
1280 74 61 74 69 63 20 52 69 64 65 72 53 63 72 69 70 74 45 64 69 74 6f 72 28 29 0d 0a 20 20 20 20 7b tatic.RiderScriptEditor()......{
12a0 0d 0a 20 20 20 20 20 20 74 72 79 0d 0a 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 76 61 ........try........{..........va
12c0 72 20 70 72 6f 6a 65 63 74 47 65 6e 65 72 61 74 69 6f 6e 20 3d 20 6e 65 77 20 50 72 6f 6a 65 63 r.projectGeneration.=.new.Projec
12e0 74 47 65 6e 65 72 61 74 69 6f 6e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 76 61 72 20 65 64 69 74 tGeneration();..........var.edit
1300 6f 72 20 3d 20 6e 65 77 20 52 69 64 65 72 53 63 72 69 70 74 45 64 69 74 6f 72 28 6e 65 77 20 44 or.=.new.RiderScriptEditor(new.D
1320 69 73 63 6f 76 65 72 79 28 29 2c 20 70 72 6f 6a 65 63 74 47 65 6e 65 72 61 74 69 6f 6e 29 3b 0d iscovery(),.projectGeneration);.
1340 0a 20 20 20 20 20 20 20 20 43 6f 64 65 45 64 69 74 6f 72 2e 52 65 67 69 73 74 65 72 28 65 64 69 .........CodeEditor.Register(edi
1360 74 6f 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 76 61 72 20 70 61 74 68 20 3d 20 47 65 74 45 64 69 tor);..........var.path.=.GetEdi
1380 74 6f 72 52 65 61 6c 50 61 74 68 28 43 6f 64 65 45 64 69 74 6f 72 2e 43 75 72 72 65 6e 74 45 64 torRealPath(CodeEditor.CurrentEd
13a0 69 74 6f 72 49 6e 73 74 61 6c 6c 61 74 69 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 0d 0a 20 20 itorInstallation);..............
13c0 20 20 20 20 20 20 69 66 20 28 49 73 52 69 64 65 72 49 6e 73 74 61 6c 6c 61 74 69 6f 6e 28 70 61 ......if.(IsRiderInstallation(pa
13e0 74 68 29 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 th))..........{............if.(!
1400 52 69 64 65 72 53 63 72 69 70 74 45 64 69 74 6f 72 44 61 74 61 2e 69 6e 73 74 61 6e 63 65 2e 49 RiderScriptEditorData.instance.I
1420 6e 69 74 69 61 6c 69 7a 65 64 4f 6e 63 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 nitializedOnce)............{....
1440 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 6e 73 74 61 6c 6c 61 74 69 6f 6e 73 20 3d 20 65 64 ..........var.installations.=.ed
1460 69 74 6f 72 2e 49 6e 73 74 61 6c 6c 61 74 69 6f 6e 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 itor.Installations;.............
1480 20 2f 2f 20 69 73 20 74 6f 6f 6c 62 6f 78 20 61 6e 64 20 6f 75 74 64 61 74 65 64 20 2d 20 75 70 .//.is.toolbox.and.outdated.-.up
14a0 64 61 74 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 73 74 61 6c 6c 61 74 69 date..............if.(installati
14c0 6f 6e 73 2e 41 6e 79 28 29 20 26 26 20 52 69 64 65 72 50 61 74 68 4c 6f 63 61 74 6f 72 2e 49 73 ons.Any().&&.RiderPathLocator.Is
14e0 54 6f 6f 6c 62 6f 78 28 70 61 74 68 29 20 26 26 20 69 6e 73 74 61 6c 6c 61 74 69 6f 6e 73 2e 41 Toolbox(path).&&.installations.A
1500 6c 6c 28 61 20 3d 3e 20 61 2e 50 61 74 68 20 21 3d 20 70 61 74 68 29 29 0d 0a 20 20 20 20 20 20 ll(a.=>.a.Path.!=.path))........
1520 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 74 6f 6f 6c 62 ......{................var.toolb
1540 6f 78 49 6e 73 74 61 6c 6c 61 74 69 6f 6e 73 20 3d 20 69 6e 73 74 61 6c 6c 61 74 69 6f 6e 73 2e oxInstallations.=.installations.
1560 57 68 65 72 65 28 61 20 3d 3e 20 61 2e 4e 61 6d 65 2e 43 6f 6e 74 61 69 6e 73 28 22 28 4a 65 74 Where(a.=>.a.Name.Contains("(Jet
1580 42 72 61 69 6e 73 20 54 6f 6f 6c 62 6f 78 29 22 29 29 2e 54 6f 41 72 72 61 79 28 29 3b 0d 0a 20 Brains.Toolbox)")).ToArray();...
15a0 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 6f 6f 6c 62 6f 78 49 6e 73 74 61 6c 6c 61 .............if.(toolboxInstalla
15c0 74 69 6f 6e 73 2e 41 6e 79 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 tions.Any())................{...
15e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 77 45 64 69 74 6f 72 20 3d 20 74 ...............var.newEditor.=.t
1600 6f 6f 6c 62 6f 78 49 6e 73 74 61 6c 6c 61 74 69 6f 6e 73 2e 4c 61 73 74 28 29 2e 50 61 74 68 3b oolboxInstallations.Last().Path;
1620 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 43 6f 64 65 45 64 69 74 6f 72 2e 53 65 74 ..................CodeEditor.Set
1640 45 78 74 65 72 6e 61 6c 53 63 72 69 70 74 45 64 69 74 6f 72 28 6e 65 77 45 64 69 74 6f 72 29 3b ExternalScriptEditor(newEditor);
1660 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 61 74 68 20 3d 20 6e 65 77 45 64 69 74 ..................path.=.newEdit
1680 6f 72 3b 20 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 or;..................}..........
16a0 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 ......else................{.....
16c0 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 77 45 64 69 74 6f 72 20 3d 20 69 6e 73 .............var.newEditor.=.ins
16e0 74 61 6c 6c 61 74 69 6f 6e 73 2e 4c 61 73 74 28 29 2e 50 61 74 68 3b 0d 0a 20 20 20 20 20 20 20 tallations.Last().Path;.........
1700 20 20 20 20 20 20 20 20 20 43 6f 64 65 45 64 69 74 6f 72 2e 53 65 74 45 78 74 65 72 6e 61 6c 53 .........CodeEditor.SetExternalS
1720 63 72 69 70 74 45 64 69 74 6f 72 28 6e 65 77 45 64 69 74 6f 72 29 3b 0d 0a 20 20 20 20 20 20 20 criptEditor(newEditor);.........
1740 20 20 20 20 20 20 20 20 20 70 61 74 68 20 3d 20 6e 65 77 45 64 69 74 6f 72 3b 20 20 0d 0a 20 20 .........path.=.newEditor;......
1760 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 ............}..............}....
1780 20 20 20 20 20 20 20 20 20 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 65 78 69 73 74 ........................//.exist
17a0 73 2c 20 69 73 20 6e 6f 6e 20 74 6f 6f 6c 62 6f 78 20 61 6e 64 20 6f 75 74 64 61 74 65 64 20 2d s,.is.non.toolbox.and.outdated.-
17c0 20 6e 6f 74 69 66 79 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 73 74 61 6c 6c .notify..............if.(install
17e0 61 74 69 6f 6e 73 2e 41 6e 79 28 29 20 26 26 20 46 69 6c 65 53 79 73 74 65 6d 55 74 69 6c 2e 45 ations.Any().&&.FileSystemUtil.E
1800 64 69 74 6f 72 50 61 74 68 45 78 69 73 74 73 28 70 61 74 68 29 20 26 26 20 69 6e 73 74 61 6c 6c ditorPathExists(path).&&.install
1820 61 74 69 6f 6e 73 2e 41 6c 6c 28 61 20 3d 3e 20 61 2e 50 61 74 68 20 21 3d 20 70 61 74 68 29 29 ations.All(a.=>.a.Path.!=.path))
1840 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 ..............{................v
1860 61 72 20 6e 65 77 45 64 69 74 6f 72 4e 61 6d 65 20 3d 20 69 6e 73 74 61 6c 6c 61 74 69 6f 6e 73 ar.newEditorName.=.installations
1880 2e 4c 61 73 74 28 29 2e 4e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 .Last().Name;................Deb
18a0 75 67 2e 4c 6f 67 57 61 72 6e 69 6e 67 28 24 22 43 6f 6e 73 69 64 65 72 20 75 70 64 61 74 69 6e ug.LogWarning($"Consider.updatin
18c0 67 20 45 78 74 65 72 6e 61 6c 20 45 64 69 74 6f 72 20 69 6e 20 55 6e 69 74 79 20 74 6f 20 52 69 g.External.Editor.in.Unity.to.Ri
18e0 64 65 72 20 7b 6e 65 77 45 64 69 74 6f 72 4e 61 6d 65 7d 2e 22 29 3b 0d 0a 20 20 20 20 20 20 20 der.{newEditorName}.");.........
1900 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 68 6f 77 57 61 72 6e 69 6e .....}................ShowWarnin
1920 67 4f 6e 55 6e 65 78 70 65 63 74 65 64 53 63 72 69 70 74 45 64 69 74 6f 72 28 70 61 74 68 29 3b gOnUnexpectedScriptEditor(path);
1940 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 69 64 65 72 53 63 72 69 70 74 45 64 69 74 6f 72 44 ..............RiderScriptEditorD
1960 61 74 61 2e 69 6e 73 74 61 6e 63 65 2e 49 6e 69 74 69 61 6c 69 7a 65 64 4f 6e 63 65 20 3d 20 74 ata.instance.InitializedOnce.=.t
1980 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 69 rue;............}..............i
19a0 66 20 28 21 46 69 6c 65 53 79 73 74 65 6d 55 74 69 6c 2e 45 64 69 74 6f 72 50 61 74 68 45 78 69 f.(!FileSystemUtil.EditorPathExi
19c0 73 74 73 28 70 61 74 68 29 29 20 2f 2f 20 70 72 65 76 69 6f 75 73 6c 79 20 75 73 65 64 20 72 69 sts(path)).//.previously.used.ri
19e0 64 65 72 20 77 61 73 20 72 65 6d 6f 76 65 64 0d 0a 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 der.was.removed............{....
1a00 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 6e 73 74 61 6c 6c 61 74 69 6f 6e 73 20 3d 20 65 64 ..........var.installations.=.ed
1a20 69 74 6f 72 2e 49 6e 73 74 61 6c 6c 61 74 69 6f 6e 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 itor.Installations;.............
1a40 20 69 66 20 28 69 6e 73 74 61 6c 6c 61 74 69 6f 6e 73 2e 41 6e 79 28 29 29 0d 0a 20 20 20 20 20 .if.(installations.Any()).......
1a60 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 77 45 .......{................var.newE
1a80 64 69 74 6f 72 20 3d 20 69 6e 73 74 61 6c 6c 61 74 69 6f 6e 73 2e 4c 61 73 74 28 29 2e 50 61 74 ditor.=.installations.Last().Pat
1aa0 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 43 6f 64 65 45 64 69 74 6f 72 2e 53 65 74 h;................CodeEditor.Set
1ac0 45 78 74 65 72 6e 61 6c 53 63 72 69 70 74 45 64 69 74 6f 72 28 6e 65 77 45 64 69 74 6f 72 29 3b ExternalScriptEditor(newEditor);
1ae0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 61 74 68 20 3d 20 6e 65 77 45 64 69 74 6f 72 ................path.=.newEditor
1b00 3b 20 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 7d 0d ;................}............}.
1b20 0a 20 20 20 20 20 20 20 20 20 20 52 69 64 65 72 53 63 72 69 70 74 45 64 69 74 6f 72 44 61 74 61 ...........RiderScriptEditorData
1b40 2e 69 6e 73 74 61 6e 63 65 2e 49 6e 69 74 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 65 .instance.Init();..............e
1b60 64 69 74 6f 72 2e 43 72 65 61 74 65 53 6f 6c 75 74 69 6f 6e 49 66 44 6f 65 73 6e 74 45 78 69 73 ditor.CreateSolutionIfDoesntExis
1b80 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 69 66 20 28 52 69 64 65 72 53 63 72 69 70 74 45 t();............if.(RiderScriptE
1ba0 64 69 74 6f 72 44 61 74 61 2e 69 6e 73 74 61 6e 63 65 2e 73 68 6f 75 6c 64 4c 6f 61 64 45 64 69 ditorData.instance.shouldLoadEdi
1bc0 74 6f 72 50 6c 75 67 69 6e 29 0d 0a 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 torPlugin)............{.........
1be0 20 20 20 20 20 65 64 69 74 6f 72 2e 6d 5f 49 6e 69 74 69 6c 69 61 7a 65 72 2e 49 6e 69 74 69 61 .....editor.m_Initiliazer.Initia
1c00 6c 69 7a 65 28 70 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 lize(path);............}........
1c20 20 20 20 20 20 20 49 6e 69 74 50 72 6f 6a 65 63 74 46 69 6c 65 73 57 61 74 63 68 65 72 28 29 3b ......InitProjectFilesWatcher();
1c40 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 63 61 74 63 ..........}........}........catc
1c60 68 20 28 45 78 63 65 70 74 69 6f 6e 20 65 29 0d 0a 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 h.(Exception.e)........{........
1c80 20 20 44 65 62 75 67 2e 4c 6f 67 45 78 63 65 70 74 69 6f 6e 28 65 29 3b 0d 0a 20 20 20 20 20 20 ..Debug.LogException(e);........
1ca0 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 76 }......}........private.static.v
1cc0 6f 69 64 20 53 68 6f 77 57 61 72 6e 69 6e 67 4f 6e 55 6e 65 78 70 65 63 74 65 64 53 63 72 69 70 oid.ShowWarningOnUnexpectedScrip
1ce0 74 45 64 69 74 6f 72 28 73 74 72 69 6e 67 20 70 61 74 68 29 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 tEditor(string.path)......{.....
1d00 20 20 20 2f 2f 20 53 68 6f 77 20 77 61 72 6e 69 6e 67 2c 20 77 68 65 6e 20 55 6e 69 74 79 20 77 ...//.Show.warning,.when.Unity.w
1d20 61 73 20 73 74 61 72 74 65 64 20 66 72 6f 6d 20 52 69 64 65 72 2c 20 62 75 74 20 65 78 74 65 72 as.started.from.Rider,.but.exter
1d40 6e 61 6c 20 65 64 69 74 6f 72 20 69 73 20 64 69 66 66 65 72 65 6e 74 20 68 74 74 70 73 3a 2f 2f nal.editor.is.different.https://
1d60 67 69 74 68 75 62 2e 63 6f 6d 2f 4a 65 74 42 72 61 69 6e 73 2f 72 65 73 68 61 72 70 65 72 2d 75 github.com/JetBrains/resharper-u
1d80 6e 69 74 79 2f 69 73 73 75 65 73 2f 31 31 32 37 0d 0a 20 20 20 20 20 20 76 61 72 20 61 72 67 73 nity/issues/1127........var.args
1da0 20 3d 20 45 6e 76 69 72 6f 6e 6d 65 6e 74 2e 47 65 74 43 6f 6d 6d 61 6e 64 4c 69 6e 65 41 72 67 .=.Environment.GetCommandLineArg
1dc0 73 28 29 3b 0d 0a 20 20 20 20 20 20 76 61 72 20 63 6f 6d 6d 61 6e 64 6c 69 6e 65 50 61 72 73 65 s();........var.commandlineParse
1de0 72 20 3d 20 6e 65 77 20 43 6f 6d 6d 61 6e 64 4c 69 6e 65 50 61 72 73 65 72 28 61 72 67 73 29 3b r.=.new.CommandLineParser(args);
1e00 0d 0a 20 20 20 20 20 20 69 66 20 28 63 6f 6d 6d 61 6e 64 6c 69 6e 65 50 61 72 73 65 72 2e 4f 70 ........if.(commandlineParser.Op
1e20 74 69 6f 6e 73 2e 43 6f 6e 74 61 69 6e 73 4b 65 79 28 22 2d 72 69 64 65 72 50 61 74 68 22 29 29 tions.ContainsKey("-riderPath"))
1e40 0d 0a 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 76 61 72 20 6f 72 69 67 69 6e 52 69 64 ........{..........var.originRid
1e60 65 72 50 61 74 68 20 3d 20 63 6f 6d 6d 61 6e 64 6c 69 6e 65 50 61 72 73 65 72 2e 4f 70 74 69 6f erPath.=.commandlineParser.Optio
1e80 6e 73 5b 22 2d 72 69 64 65 72 50 61 74 68 22 5d 3b 0d 0a 20 20 20 20 20 20 20 20 76 61 72 20 6f ns["-riderPath"];..........var.o
1ea0 72 69 67 69 6e 52 65 61 6c 50 61 74 68 20 3d 20 47 65 74 45 64 69 74 6f 72 52 65 61 6c 50 61 74 riginRealPath.=.GetEditorRealPat
1ec0 68 28 6f 72 69 67 69 6e 52 69 64 65 72 50 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 76 61 72 h(originRiderPath);..........var
1ee0 20 6f 72 69 67 69 6e 56 65 72 73 69 6f 6e 20 3d 20 52 69 64 65 72 50 61 74 68 4c 6f 63 61 74 6f .originVersion.=.RiderPathLocato
1f00 72 2e 47 65 74 42 75 69 6c 64 4e 75 6d 62 65 72 28 6f 72 69 67 69 6e 52 65 61 6c 50 61 74 68 29 r.GetBuildNumber(originRealPath)
1f20 3b 0d 0a 20 20 20 20 20 20 20 20 76 61 72 20 76 65 72 73 69 6f 6e 20 3d 20 52 69 64 65 72 50 61 ;..........var.version.=.RiderPa
1f40 74 68 4c 6f 63 61 74 6f 72 2e 47 65 74 42 75 69 6c 64 4e 75 6d 62 65 72 28 70 61 74 68 29 3b 0d thLocator.GetBuildNumber(path);.
1f60 0a 20 20 20 20 20 20 20 20 69 66 20 28 6f 72 69 67 69 6e 56 65 72 73 69 6f 6e 20 21 3d 20 73 74 .........if.(originVersion.!=.st
1f80 72 69 6e 67 2e 45 6d 70 74 79 20 26 26 20 6f 72 69 67 69 6e 56 65 72 73 69 6f 6e 20 21 3d 20 76 ring.Empty.&&.originVersion.!=.v
1fa0 65 72 73 69 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 44 65 ersion)..........{............De
1fc0 62 75 67 2e 4c 6f 67 57 61 72 6e 69 6e 67 28 22 55 6e 69 74 79 20 77 61 73 20 73 74 61 72 74 65 bug.LogWarning("Unity.was.starte
1fe0 64 20 62 79 20 61 20 76 65 72 73 69 6f 6e 20 6f 66 20 52 69 64 65 72 20 74 68 61 74 20 69 73 20 d.by.a.version.of.Rider.that.is.
2000 6e 6f 74 20 74 68 65 20 63 75 72 72 65 6e 74 20 64 65 66 61 75 6c 74 20 65 78 74 65 72 6e 61 6c not.the.current.default.external
2020 20 65 64 69 74 6f 72 2e 20 41 64 76 61 6e 63 65 64 20 69 6e 74 65 67 72 61 74 69 6f 6e 20 66 65 .editor..Advanced.integration.fe
2040 61 74 75 72 65 73 20 63 61 6e 6e 6f 74 20 62 65 20 65 6e 61 62 6c 65 64 2e 22 29 3b 0d 0a 20 20 atures.cannot.be.enabled.");....
2060 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 4c 6f 67 28 24 22 55 6e 69 74 79 20 77 61 73 20 73 74 ........Debug.Log($"Unity.was.st
2080 61 72 74 65 64 20 62 79 20 52 69 64 65 72 20 7b 6f 72 69 67 69 6e 56 65 72 73 69 6f 6e 7d 2c 20 arted.by.Rider.{originVersion},.
20a0 62 75 74 20 65 78 74 65 72 6e 61 6c 20 65 64 69 74 6f 72 20 69 73 20 73 65 74 20 74 6f 3a 20 7b but.external.editor.is.set.to:.{
20c0 70 61 74 68 7d 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 7d 0d 0a 20 20 path}");..........}........}....
20e0 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 76 6f 69 64 20 49 ..}........private.static.void.I
2100 6e 69 74 50 72 6f 6a 65 63 74 46 69 6c 65 73 57 61 74 63 68 65 72 28 29 0d 0a 20 20 20 20 7b 0d nitProjectFilesWatcher()......{.
2120 0a 20 20 20 20 20 20 76 61 72 20 77 61 74 63 68 65 72 20 3d 20 6e 65 77 20 46 69 6c 65 53 79 73 .......var.watcher.=.new.FileSys
2140 74 65 6d 57 61 74 63 68 65 72 28 29 3b 0d 0a 20 20 20 20 20 20 77 61 74 63 68 65 72 2e 50 61 74 temWatcher();........watcher.Pat
2160 68 20 3d 20 44 69 72 65 63 74 6f 72 79 2e 47 65 74 43 75 72 72 65 6e 74 44 69 72 65 63 74 6f 72 h.=.Directory.GetCurrentDirector
2180 79 28 29 3b 0d 0a 20 20 20 20 20 20 77 61 74 63 68 65 72 2e 4e 6f 74 69 66 79 46 69 6c 74 65 72 y();........watcher.NotifyFilter
21a0 20 3d 20 4e 6f 74 69 66 79 46 69 6c 74 65 72 73 2e 4c 61 73 74 57 72 69 74 65 3b 20 2f 2f 57 61 .=.NotifyFilters.LastWrite;.//Wa
21c0 74 63 68 20 66 6f 72 20 63 68 61 6e 67 65 73 20 69 6e 20 4c 61 73 74 57 72 69 74 65 20 74 69 6d tch.for.changes.in.LastWrite.tim
21e0 65 73 0d 0a 20 20 20 20 20 20 77 61 74 63 68 65 72 2e 46 69 6c 74 65 72 20 3d 20 22 2a 2e 2a 22 es........watcher.Filter.=."*.*"
2200 3b 0d 0a 0d 0a 20 20 20 20 20 20 2f 2f 20 41 64 64 20 65 76 65 6e 74 20 68 61 6e 64 6c 65 72 73 ;..........//.Add.event.handlers
2220 2e 0d 0a 20 20 20 20 20 20 77 61 74 63 68 65 72 2e 43 68 61 6e 67 65 64 20 2b 3d 20 4f 6e 43 68 .........watcher.Changed.+=.OnCh
2240 61 6e 67 65 64 3b 0d 0a 20 20 20 20 20 20 77 61 74 63 68 65 72 2e 43 72 65 61 74 65 64 20 2b 3d anged;........watcher.Created.+=
2260 20 4f 6e 43 68 61 6e 67 65 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 77 61 74 63 68 65 72 2e 45 6e 61 .OnChanged;..........watcher.Ena
2280 62 6c 65 52 61 69 73 69 6e 67 45 76 65 6e 74 73 20 3d 20 74 72 75 65 3b 20 2f 2f 20 42 65 67 69 bleRaisingEvents.=.true;.//.Begi
22a0 6e 20 77 61 74 63 68 69 6e 67 2e 0d 0a 20 20 20 20 20 20 0d 0a 20 20 20 20 20 20 41 70 70 44 6f n.watching.................AppDo
22c0 6d 61 69 6e 2e 43 75 72 72 65 6e 74 44 6f 6d 61 69 6e 2e 44 6f 6d 61 69 6e 55 6e 6c 6f 61 64 20 main.CurrentDomain.DomainUnload.
22e0 2b 3d 20 28 45 76 65 6e 74 48 61 6e 64 6c 65 72 29 20 28 28 5f 2c 20 5f 5f 29 20 3d 3e 0d 0a 20 +=.(EventHandler).((_,.__).=>...
2300 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 77 61 74 63 68 65 72 2e 44 69 73 70 6f 73 65 28 .....{..........watcher.Dispose(
2320 29 3b 0d 0a 20 20 20 20 20 20 7d 29 3b 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 72 69 76 );........});......}........priv
2340 61 74 65 20 73 74 61 74 69 63 20 76 6f 69 64 20 4f 6e 43 68 61 6e 67 65 64 28 6f 62 6a 65 63 74 ate.static.void.OnChanged(object
2360 20 73 65 6e 64 65 72 2c 20 46 69 6c 65 53 79 73 74 65 6d 45 76 65 6e 74 41 72 67 73 20 65 29 0d .sender,.FileSystemEventArgs.e).
2380 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 76 61 72 20 65 78 74 65 6e 73 69 6f 6e 20 3d 20 50 61 .....{........var.extension.=.Pa
23a0 74 68 2e 47 65 74 45 78 74 65 6e 73 69 6f 6e 28 65 2e 46 75 6c 6c 50 61 74 68 29 3b 0d 0a 20 20 th.GetExtension(e.FullPath);....
23c0 20 20 20 20 69 66 20 28 65 78 74 65 6e 73 69 6f 6e 20 3d 3d 20 22 2e 73 6c 6e 22 20 7c 7c 20 65 ....if.(extension.==.".sln".||.e
23e0 78 74 65 6e 73 69 6f 6e 20 3d 3d 20 22 2e 63 73 70 72 6f 6a 22 29 20 0d 0a 20 20 20 20 20 20 20 xtension.==.".csproj")..........
2400 20 52 69 64 65 72 53 63 72 69 70 74 45 64 69 74 6f 72 44 61 74 61 2e 69 6e 73 74 61 6e 63 65 2e .RiderScriptEditorData.instance.
2420 48 61 73 43 68 61 6e 67 65 73 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 HasChanges.=.true;......}.......
2440 20 69 6e 74 65 72 6e 61 6c 20 73 74 61 74 69 63 20 73 74 72 69 6e 67 20 47 65 74 45 64 69 74 6f .internal.static.string.GetEdito
2460 72 52 65 61 6c 50 61 74 68 28 73 74 72 69 6e 67 20 70 61 74 68 29 0d 0a 20 20 20 20 7b 0d 0a 20 rRealPath(string.path)......{...
2480 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 70 61 .....if.(string.IsNullOrEmpty(pa
24a0 74 68 29 29 0d 0a 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 70 61 th))........{..........return.pa
24c0 74 68 3b 0d 0a 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 69 66 20 28 21 46 69 6c 65 53 th;........}..........if.(!FileS
24e0 79 73 74 65 6d 55 74 69 6c 2e 45 64 69 74 6f 72 50 61 74 68 45 78 69 73 74 73 28 70 61 74 68 29 ystemUtil.EditorPathExists(path)
2500 29 0d 0a 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 70 61 74 68 3b 0d 0a 0d 0a 20 20 20 20 20 )..........return.path;.........
2520 20 69 66 20 28 53 79 73 74 65 6d 49 6e 66 6f 2e 6f 70 65 72 61 74 69 6e 67 53 79 73 74 65 6d 46 .if.(SystemInfo.operatingSystemF
2540 61 6d 69 6c 79 20 21 3d 20 4f 70 65 72 61 74 69 6e 67 53 79 73 74 65 6d 46 61 6d 69 6c 79 2e 57 amily.!=.OperatingSystemFamily.W
2560 69 6e 64 6f 77 73 29 0d 0a 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 76 61 72 20 72 65 indows)........{..........var.re
2580 61 6c 50 61 74 68 20 3d 20 46 69 6c 65 53 79 73 74 65 6d 55 74 69 6c 2e 47 65 74 46 69 6e 61 6c alPath.=.FileSystemUtil.GetFinal
25a0 50 61 74 68 4e 61 6d 65 28 70 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 0d 0a 20 20 20 20 20 PathName(path);.................
25c0 20 20 20 2f 2f 20 63 61 73 65 20 6f 66 20 73 6e 61 70 20 69 6e 73 74 61 6c 6c 61 74 69 6f 6e 0d ...//.case.of.snap.installation.
25e0 0a 20 20 20 20 20 20 20 20 69 66 20 28 53 79 73 74 65 6d 49 6e 66 6f 2e 6f 70 65 72 61 74 69 6e .........if.(SystemInfo.operatin
2600 67 53 79 73 74 65 6d 46 61 6d 69 6c 79 20 3d 3d 20 4f 70 65 72 61 74 69 6e 67 53 79 73 74 65 6d gSystemFamily.==.OperatingSystem
2620 46 61 6d 69 6c 79 2e 4c 69 6e 75 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 Family.Linux)..........{........
2640 20 20 20 20 69 66 20 28 6e 65 77 20 46 69 6c 65 49 6e 66 6f 28 70 61 74 68 29 2e 4e 61 6d 65 2e ....if.(new.FileInfo(path).Name.
2660 54 6f 4c 6f 77 65 72 49 6e 76 61 72 69 61 6e 74 28 29 20 3d 3d 20 22 72 69 64 65 72 22 20 26 26 ToLowerInvariant().==."rider".&&
2680 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 20 46 69 6c 65 49 6e 66 6f 28 72 65 61 ................new.FileInfo(rea
26a0 6c 50 61 74 68 29 2e 4e 61 6d 65 2e 54 6f 4c 6f 77 65 72 49 6e 76 61 72 69 61 6e 74 28 29 20 3d lPath).Name.ToLowerInvariant().=
26c0 3d 20 22 73 6e 61 70 22 29 0d 0a 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 =."snap")............{..........
26e0 20 20 20 20 76 61 72 20 73 6e 61 70 49 6e 73 74 61 6c 6c 50 61 74 68 20 3d 20 22 2f 73 6e 61 70 ....var.snapInstallPath.=."/snap
2700 2f 72 69 64 65 72 2f 63 75 72 72 65 6e 74 2f 62 69 6e 2f 72 69 64 65 72 2e 73 68 22 3b 0d 0a 20 /rider/current/bin/rider.sh";...
2720 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6e 65 77 20 46 69 6c 65 49 6e 66 6f 28 73 6e 61 70 ...........if.(new.FileInfo(snap
2740 49 6e 73 74 61 6c 6c 50 61 74 68 29 2e 45 78 69 73 74 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 InstallPath).Exists)............
2760 20 20 20 20 72 65 74 75 72 6e 20 73 6e 61 70 49 6e 73 74 61 6c 6c 50 61 74 68 3b 0d 0a 20 20 20 ....return.snapInstallPath;.....
2780 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 0d 0a 20 .......}..........}.............
27a0 20 20 20 20 20 20 20 2f 2f 20 69 6e 20 63 61 73 65 20 6f 66 20 73 79 6d 6c 69 6e 6b 0d 0a 20 20 .......//.in.case.of.symlink....
27c0 20 20 20 20 20 20 72 65 74 75 72 6e 20 72 65 61 6c 50 61 74 68 3b 0d 0a 20 20 20 20 20 20 7d 0d ......return.realPath;........}.
27e0 0a 0d 0a 20 20 20 20 20 20 72 65 74 75 72 6e 20 70 61 74 68 3b 0d 0a 20 20 20 20 7d 0d 0a 0d 0a .........return.path;......}....
2800 20 20 20 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 75 6e 69 74 79 5f 67 65 6e 65 72 61 74 65 5f ....const.string.unity_generate_
2820 61 6c 6c 20 3d 20 22 75 6e 69 74 79 5f 67 65 6e 65 72 61 74 65 5f 61 6c 6c 5f 63 73 70 72 6f 6a all.=."unity_generate_all_csproj
2840 22 3b 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 52 69 64 65 72 53 63 72 69 70 74 45 64 69 74 ";........public.RiderScriptEdit
2860 6f 72 28 49 44 69 73 63 6f 76 65 72 79 20 64 69 73 63 6f 76 65 72 79 2c 20 49 47 65 6e 65 72 61 or(IDiscovery.discovery,.IGenera
2880 74 6f 72 20 70 72 6f 6a 65 63 74 47 65 6e 65 72 61 74 69 6f 6e 29 0d 0a 20 20 20 20 7b 0d 0a 20 tor.projectGeneration)......{...
28a0 20 20 20 20 20 6d 5f 44 69 73 63 6f 76 65 72 61 62 69 6c 69 74 79 20 3d 20 64 69 73 63 6f 76 65 .....m_Discoverability.=.discove
28c0 72 79 3b 0d 0a 20 20 20 20 20 20 6d 5f 50 72 6f 6a 65 63 74 47 65 6e 65 72 61 74 69 6f 6e 20 3d ry;........m_ProjectGeneration.=
28e0 20 70 72 6f 6a 65 63 74 47 65 6e 65 72 61 74 69 6f 6e 3b 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 .projectGeneration;......}......
2900 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 73 74 72 69 6e 67 5b 5d 20 64 65 66 61 75 6c ..private.static.string[].defaul
2920 74 45 78 74 65 6e 73 69 6f 6e 73 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 67 65 74 0d 0a 20 tExtensions......{........get...
2940 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 76 61 72 20 63 75 73 74 6f 6d 45 78 74 65 6e 73 .....{..........var.customExtens
2960 69 6f 6e 73 20 3d 20 6e 65 77 5b 5d 20 7b 22 6a 73 6f 6e 22 2c 20 22 61 73 6d 64 65 66 22 2c 20 ions.=.new[].{"json",."asmdef",.
2980 22 6c 6f 67 22 2c 20 22 78 61 6d 6c 22 7d 3b 0d 0a 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 "log",."xaml"};..........return.
29a0 45 64 69 74 6f 72 53 65 74 74 69 6e 67 73 2e 70 72 6f 6a 65 63 74 47 65 6e 65 72 61 74 69 6f 6e EditorSettings.projectGeneration
29c0 42 75 69 6c 74 69 6e 45 78 74 65 6e 73 69 6f 6e 73 2e 43 6f 6e 63 61 74 28 45 64 69 74 6f 72 53 BuiltinExtensions.Concat(EditorS
29e0 65 74 74 69 6e 67 73 2e 70 72 6f 6a 65 63 74 47 65 6e 65 72 61 74 69 6f 6e 55 73 65 72 45 78 74 ettings.projectGenerationUserExt
2a00 65 6e 73 69 6f 6e 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 2e 43 6f 6e 63 61 74 28 63 75 73 74 ensions).............Concat(cust
2a20 6f 6d 45 78 74 65 6e 73 69 6f 6e 73 29 2e 44 69 73 74 69 6e 63 74 28 29 2e 54 6f 41 72 72 61 79 omExtensions).Distinct().ToArray
2a40 28 29 3b 0d 0a 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 72 69 76 61 ();........}......}........priva
2a60 74 65 20 73 74 61 74 69 63 20 73 74 72 69 6e 67 5b 5d 20 48 61 6e 64 6c 65 64 45 78 74 65 6e 73 te.static.string[].HandledExtens
2a80 69 6f 6e 73 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 7b 0d ions......{........get........{.
2aa0 0a 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 48 61 6e 64 6c 65 64 45 78 74 65 6e 73 69 6f 6e .........return.HandledExtension
2ac0 73 53 74 72 69 6e 67 2e 53 70 6c 69 74 28 6e 65 77 5b 5d 20 7b 27 3b 27 7d 2c 20 53 74 72 69 6e sString.Split(new[].{';'},.Strin
2ae0 67 53 70 6c 69 74 4f 70 74 69 6f 6e 73 2e 52 65 6d 6f 76 65 45 6d 70 74 79 45 6e 74 72 69 65 73 gSplitOptions.RemoveEmptyEntries
2b00 29 2e 53 65 6c 65 63 74 28 73 20 3d 3e 20 73 2e 54 72 69 6d 53 74 61 72 74 28 27 2e 27 2c 20 27 ).Select(s.=>.s.TrimStart('.',.'
2b20 2a 27 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 2e 54 6f 41 72 72 61 79 28 29 3b 0d 0a 20 20 20 *')).............ToArray();.....
2b40 20 20 20 7d 20 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 ...}.......}........private.stat
2b60 69 63 20 73 74 72 69 6e 67 20 48 61 6e 64 6c 65 64 45 78 74 65 6e 73 69 6f 6e 73 53 74 72 69 6e ic.string.HandledExtensionsStrin
2b80 67 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 45 64 69 g......{........get.{.return.Edi
2ba0 74 6f 72 50 72 65 66 73 2e 47 65 74 53 74 72 69 6e 67 28 22 52 69 64 65 72 5f 55 73 65 72 45 78 torPrefs.GetString("Rider_UserEx
2bc0 74 65 6e 73 69 6f 6e 73 22 2c 20 73 74 72 69 6e 67 2e 4a 6f 69 6e 28 22 3b 22 2c 20 64 65 66 61 tensions",.string.Join(";",.defa
2be0 75 6c 74 45 78 74 65 6e 73 69 6f 6e 73 29 29 3b 7d 0d 0a 20 20 20 20 20 20 73 65 74 20 7b 20 45 ultExtensions));}........set.{.E
2c00 64 69 74 6f 72 50 72 65 66 73 2e 53 65 74 53 74 72 69 6e 67 28 22 52 69 64 65 72 5f 55 73 65 72 ditorPrefs.SetString("Rider_User
2c20 45 78 74 65 6e 73 69 6f 6e 73 22 2c 20 76 61 6c 75 65 29 3b 20 7d 0d 0a 20 20 20 20 7d 0d 0a 20 Extensions",.value);.}......}...
2c40 20 20 20 0d 0a 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 53 75 70 .........private.static.bool.Sup
2c60 70 6f 72 74 73 45 78 74 65 6e 73 69 6f 6e 28 73 74 72 69 6e 67 20 70 61 74 68 29 0d 0a 20 20 20 portsExtension(string.path).....
2c80 20 7b 0d 0a 20 20 20 20 20 20 76 61 72 20 65 78 74 65 6e 73 69 6f 6e 20 3d 20 50 61 74 68 2e 47 .{........var.extension.=.Path.G
2ca0 65 74 45 78 74 65 6e 73 69 6f 6e 28 70 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 69 66 20 28 73 74 etExtension(path);........if.(st
2cc0 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 65 78 74 65 6e 73 69 6f 6e 29 29 0d 0a ring.IsNullOrEmpty(extension))..
2ce0 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 20 0d 0a 20 20 20 20 20 20 72 65 ........return.false;.........re
2d00 74 75 72 6e 20 48 61 6e 64 6c 65 64 45 78 74 65 6e 73 69 6f 6e 73 2e 43 6f 6e 74 61 69 6e 73 28 turn.HandledExtensions.Contains(
2d20 65 78 74 65 6e 73 69 6f 6e 2e 54 72 69 6d 53 74 61 72 74 28 27 2e 27 29 29 3b 0d 0a 20 20 20 20 extension.TrimStart('.'));......
2d40 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4f 6e 47 55 49 28 29 0d 0a 20 20 }........public.void.OnGUI()....
2d60 20 20 7b 0d 0a 20 20 20 20 20 20 76 61 72 20 70 72 65 76 47 65 6e 65 72 61 74 65 20 3d 20 45 64 ..{........var.prevGenerate.=.Ed
2d80 69 74 6f 72 50 72 65 66 73 2e 47 65 74 42 6f 6f 6c 28 75 6e 69 74 79 5f 67 65 6e 65 72 61 74 65 itorPrefs.GetBool(unity_generate
2da0 5f 61 6c 6c 2c 20 66 61 6c 73 65 29 3b 0d 0a 20 20 20 20 20 20 76 61 72 20 67 65 6e 65 72 61 74 _all,.false);........var.generat
2dc0 65 41 6c 6c 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 54 6f 67 67 6c 65 28 22 47 eAll.=.EditorGUILayout.Toggle("G
2de0 65 6e 65 72 61 74 65 20 61 6c 6c 20 2e 63 73 70 72 6f 6a 20 66 69 6c 65 73 2e 22 2c 20 70 72 65 enerate.all..csproj.files.",.pre
2e00 76 47 65 6e 65 72 61 74 65 29 3b 0d 0a 20 20 20 20 20 20 69 66 20 28 67 65 6e 65 72 61 74 65 41 vGenerate);........if.(generateA
2e20 6c 6c 20 21 3d 20 70 72 65 76 47 65 6e 65 72 61 74 65 29 0d 0a 20 20 20 20 20 20 7b 0d 0a 20 20 ll.!=.prevGenerate)........{....
2e40 20 20 20 20 20 20 45 64 69 74 6f 72 50 72 65 66 73 2e 53 65 74 42 6f 6f 6c 28 75 6e 69 74 79 5f ......EditorPrefs.SetBool(unity_
2e60 67 65 6e 65 72 61 74 65 5f 61 6c 6c 2c 20 67 65 6e 65 72 61 74 65 41 6c 6c 29 3b 0d 0a 20 20 20 generate_all,.generateAll);.....
2e80 20 20 20 7d 0d 0a 20 20 20 20 20 20 0d 0a 20 20 20 20 20 20 6d 5f 50 72 6f 6a 65 63 74 47 65 6e ...}................m_ProjectGen
2ea0 65 72 61 74 69 6f 6e 2e 47 65 6e 65 72 61 74 65 41 6c 6c 28 67 65 6e 65 72 61 74 65 41 6c 6c 29 eration.GenerateAll(generateAll)
2ec0 3b 0d 0a 0d 0a 20 20 20 20 20 20 69 66 20 28 52 69 64 65 72 53 63 72 69 70 74 45 64 69 74 6f 72 ;..........if.(RiderScriptEditor
2ee0 44 61 74 61 2e 69 6e 73 74 61 6e 63 65 2e 73 68 6f 75 6c 64 4c 6f 61 64 45 64 69 74 6f 72 50 6c Data.instance.shouldLoadEditorPl
2f00 75 67 69 6e 29 0d 0a 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 48 61 6e 64 6c 65 64 45 ugin)........{..........HandledE
2f20 78 74 65 6e 73 69 6f 6e 73 53 74 72 69 6e 67 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 xtensionsString.=.EditorGUILayou
2f40 74 2e 54 65 78 74 46 69 65 6c 64 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 45 78 74 65 t.TextField(new.GUIContent("Exte
2f60 6e 73 69 6f 6e 73 20 68 61 6e 64 6c 65 64 3a 20 22 29 2c 20 48 61 6e 64 6c 65 64 45 78 74 65 6e nsions.handled:."),.HandledExten
2f80 73 69 6f 6e 73 53 74 72 69 6e 67 29 3b 20 20 0d 0a 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d sionsString);..........}......}.
2fa0 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 53 79 6e 63 49 66 4e 65 65 64 65 64 28 .......public.void.SyncIfNeeded(
2fc0 73 74 72 69 6e 67 5b 5d 20 61 64 64 65 64 46 69 6c 65 73 2c 20 73 74 72 69 6e 67 5b 5d 20 64 65 string[].addedFiles,.string[].de
2fe0 6c 65 74 65 64 46 69 6c 65 73 2c 20 73 74 72 69 6e 67 5b 5d 20 6d 6f 76 65 64 46 69 6c 65 73 2c letedFiles,.string[].movedFiles,
3000 20 73 74 72 69 6e 67 5b 5d 20 6d 6f 76 65 64 46 72 6f 6d 46 69 6c 65 73 2c 0d 0a 20 20 20 20 20 .string[].movedFromFiles,.......
3020 20 73 74 72 69 6e 67 5b 5d 20 69 6d 70 6f 72 74 65 64 46 69 6c 65 73 29 0d 0a 20 20 20 20 7b 0d .string[].importedFiles)......{.
3040 0a 20 20 20 20 20 20 6d 5f 50 72 6f 6a 65 63 74 47 65 6e 65 72 61 74 69 6f 6e 2e 53 79 6e 63 49 .......m_ProjectGeneration.SyncI
3060 66 4e 65 65 64 65 64 28 61 64 64 65 64 46 69 6c 65 73 2e 55 6e 69 6f 6e 28 64 65 6c 65 74 65 64 fNeeded(addedFiles.Union(deleted
3080 46 69 6c 65 73 29 2e 55 6e 69 6f 6e 28 6d 6f 76 65 64 46 69 6c 65 73 29 2e 55 6e 69 6f 6e 28 6d Files).Union(movedFiles).Union(m
30a0 6f 76 65 64 46 72 6f 6d 46 69 6c 65 73 29 2c 0d 0a 20 20 20 20 20 20 20 20 69 6d 70 6f 72 74 65 ovedFromFiles),..........importe
30c0 64 46 69 6c 65 73 29 3b 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 76 6f dFiles);......}........public.vo
30e0 69 64 20 53 79 6e 63 41 6c 6c 28 29 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 41 73 73 65 74 id.SyncAll()......{........Asset
3100 44 61 74 61 62 61 73 65 2e 52 65 66 72 65 73 68 28 29 3b 0d 0a 20 20 20 20 20 20 69 66 20 28 52 Database.Refresh();........if.(R
3120 69 64 65 72 53 63 72 69 70 74 45 64 69 74 6f 72 44 61 74 61 2e 69 6e 73 74 61 6e 63 65 2e 48 61 iderScriptEditorData.instance.Ha
3140 73 43 68 61 6e 67 65 73 29 0d 0a 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 6d 5f 50 72 sChanges)........{..........m_Pr
3160 6f 6a 65 63 74 47 65 6e 65 72 61 74 69 6f 6e 2e 53 79 6e 63 28 29 3b 0d 0a 20 20 20 20 20 20 20 ojectGeneration.Sync();.........
3180 20 52 69 64 65 72 53 63 72 69 70 74 45 64 69 74 6f 72 44 61 74 61 2e 69 6e 73 74 61 6e 63 65 2e .RiderScriptEditorData.instance.
31a0 48 61 73 43 68 61 6e 67 65 73 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 7d 0d 0a 20 20 HasChanges.=.false;........}....
31c0 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a ..}........public.void.Initializ
31e0 65 28 73 74 72 69 6e 67 20 65 64 69 74 6f 72 49 6e 73 74 61 6c 6c 61 74 69 6f 6e 50 61 74 68 29 e(string.editorInstallationPath)
3200 20 2f 2f 20 69 73 20 63 61 6c 6c 65 64 20 65 61 63 68 20 74 69 6d 65 20 45 78 74 65 72 6e 61 6c .//.is.called.each.time.External
3220 45 64 69 74 6f 72 20 69 73 20 63 68 61 6e 67 65 64 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 Editor.is.changed......{........
3240 52 69 64 65 72 53 63 72 69 70 74 45 64 69 74 6f 72 44 61 74 61 2e 69 6e 73 74 61 6e 63 65 2e 49 RiderScriptEditorData.instance.I
3260 6e 76 61 6c 69 64 61 74 65 28 65 64 69 74 6f 72 49 6e 73 74 61 6c 6c 61 74 69 6f 6e 50 61 74 68 nvalidate(editorInstallationPath
3280 29 3b 0d 0a 20 20 20 20 20 20 6d 5f 50 72 6f 6a 65 63 74 47 65 6e 65 72 61 74 69 6f 6e 2e 53 79 );........m_ProjectGeneration.Sy
32a0 6e 63 28 29 3b 20 2f 2f 20 72 65 67 65 6e 65 72 61 74 65 20 63 73 70 72 6f 6a 20 61 6e 64 20 73 nc();.//.regenerate.csproj.and.s
32c0 6c 6e 20 66 6f 72 20 6e 65 77 20 65 64 69 74 6f 72 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 ln.for.new.editor......}........
32e0 70 75 62 6c 69 63 20 62 6f 6f 6c 20 4f 70 65 6e 50 72 6f 6a 65 63 74 28 73 74 72 69 6e 67 20 70 public.bool.OpenProject(string.p
3300 61 74 68 2c 20 69 6e 74 20 6c 69 6e 65 2c 20 69 6e 74 20 63 6f 6c 75 6d 6e 29 0d 0a 20 20 20 20 ath,.int.line,.int.column)......
3320 7b 0d 0a 20 20 20 20 20 20 69 66 20 28 70 61 74 68 20 21 3d 20 22 22 20 26 26 20 21 53 75 70 70 {........if.(path.!=."".&&.!Supp
3340 6f 72 74 73 45 78 74 65 6e 73 69 6f 6e 28 70 61 74 68 29 29 20 2f 2f 20 41 73 73 65 74 73 20 2d ortsExtension(path)).//.Assets.-
3360 20 4f 70 65 6e 20 43 23 20 50 72 6f 6a 65 63 74 20 70 61 73 73 65 73 20 65 6d 70 74 79 20 70 61 .Open.C#.Project.passes.empty.pa
3380 74 68 20 68 65 72 65 0d 0a 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 72 65 74 75 72 6e th.here........{..........return
33a0 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 0d 0a 20 20 20 20 20 20 .false;........}................
33c0 69 66 20 28 70 61 74 68 20 3d 3d 20 22 22 20 26 26 20 53 79 73 74 65 6d 49 6e 66 6f 2e 6f 70 65 if.(path.==."".&&.SystemInfo.ope
33e0 72 61 74 69 6e 67 53 79 73 74 65 6d 46 61 6d 69 6c 79 20 3d 3d 20 4f 70 65 72 61 74 69 6e 67 53 ratingSystemFamily.==.OperatingS
3400 79 73 74 65 6d 46 61 6d 69 6c 79 2e 4d 61 63 4f 53 58 29 0d 0a 20 20 20 20 20 20 7b 0d 0a 20 20 ystemFamily.MacOSX)........{....
3420 20 20 20 20 20 20 2f 2f 20 74 68 65 72 65 20 69 73 20 61 20 62 75 67 20 69 6e 20 44 6c 6c 49 6d ......//.there.is.a.bug.in.DllIm
3440 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 2d 20 75 73 65 20 70 61 63 6b 61 67 65 20 69 6d 70 6c 65 plementation.-.use.package.imple
3460 6d 65 6e 74 61 74 69 6f 6e 20 68 65 72 65 20 69 6e 73 74 65 61 64 20 68 74 74 70 73 3a 2f 2f 67 mentation.here.instead.https://g
3480 69 74 68 75 62 2e 63 64 73 2e 69 6e 74 65 72 6e 61 6c 2e 75 6e 69 74 79 33 64 2e 63 6f 6d 2f 75 ithub.cds.internal.unity3d.com/u
34a0 6e 69 74 79 2f 63 6f 6d 2e 75 6e 69 74 79 2e 69 64 65 2e 72 69 64 65 72 2f 69 73 73 75 65 73 2f nity/com.unity.ide.rider/issues/
34c0 32 31 0d 0a 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 4f 70 65 6e 4f 53 58 41 70 70 28 70 61 21..........return.OpenOSXApp(pa
34e0 74 68 2c 20 6c 69 6e 65 2c 20 63 6f 6c 75 6d 6e 29 3b 0d 0a 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 th,.line,.column);........}.....
3500 20 20 20 20 20 69 66 20 28 21 49 73 55 6e 69 74 79 53 63 72 69 70 74 28 70 61 74 68 29 29 0d 0a .....if.(!IsUnityScript(path))..
3520 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 76 61 72 20 66 61 73 74 4f 70 65 6e 52 65 73 ......{..........var.fastOpenRes
3540 75 6c 74 20 3d 20 45 64 69 74 6f 72 50 6c 75 67 69 6e 49 6e 74 65 72 6f 70 2e 4f 70 65 6e 46 69 ult.=.EditorPluginInterop.OpenFi
3560 6c 65 44 6c 6c 49 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 28 70 61 74 68 2c 20 6c 69 6e 65 2c 20 leDllImplementation(path,.line,.
3580 63 6f 6c 75 6d 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 69 66 20 28 66 61 73 74 4f 70 65 6e 52 65 column);..........if.(fastOpenRe
35a0 73 75 6c 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 sult)............return.true;...
35c0 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 69 66 20 28 53 79 73 74 65 6d 49 6e 66 6f 2e 6f .....}..........if.(SystemInfo.o
35e0 70 65 72 61 74 69 6e 67 53 79 73 74 65 6d 46 61 6d 69 6c 79 20 3d 3d 20 4f 70 65 72 61 74 69 6e peratingSystemFamily.==.Operatin
3600 67 53 79 73 74 65 6d 46 61 6d 69 6c 79 2e 4d 61 63 4f 53 58 29 0d 0a 20 20 20 20 20 20 7b 0d 0a gSystemFamily.MacOSX)........{..
3620 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 4f 70 65 6e 4f 53 58 41 70 70 28 70 61 74 68 2c 20 ........return.OpenOSXApp(path,.
3640 6c 69 6e 65 2c 20 63 6f 6c 75 6d 6e 29 3b 0d 0a 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 line,.column);........}.........
3660 20 76 61 72 20 73 6f 6c 75 74 69 6f 6e 20 3d 20 47 65 74 53 6f 6c 75 74 69 6f 6e 46 69 6c 65 28 .var.solution.=.GetSolutionFile(
3680 70 61 74 68 29 3b 20 2f 2f 20 54 4f 44 4f 3a 20 49 66 20 73 6f 6c 75 74 69 6f 6e 20 66 69 6c 65 path);.//.TODO:.If.solution.file
36a0 20 64 6f 65 73 6e 27 74 20 65 78 69 73 74 20 72 65 73 79 6e 63 2e 0d 0a 20 20 20 20 20 20 73 6f .doesn't.exist.resync.........so
36c0 6c 75 74 69 6f 6e 20 3d 20 73 6f 6c 75 74 69 6f 6e 20 3d 3d 20 22 22 20 3f 20 22 22 20 3a 20 24 lution.=.solution.==."".?."".:.$
36e0 22 5c 22 7b 73 6f 6c 75 74 69 6f 6e 7d 5c 22 22 3b 0d 0a 20 20 20 20 20 20 76 61 72 20 70 72 6f "\"{solution}\"";........var.pro
3700 63 65 73 73 20 3d 20 6e 65 77 20 50 72 6f 63 65 73 73 0d 0a 20 20 20 20 20 20 7b 0d 0a 20 20 20 cess.=.new.Process........{.....
3720 20 20 20 20 20 53 74 61 72 74 49 6e 66 6f 20 3d 20 6e 65 77 20 50 72 6f 63 65 73 73 53 74 61 72 .....StartInfo.=.new.ProcessStar
3740 74 49 6e 66 6f 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 46 69 6c 65 tInfo..........{............File
3760 4e 61 6d 65 20 3d 20 43 6f 64 65 45 64 69 74 6f 72 2e 43 75 72 72 65 6e 74 45 64 69 74 6f 72 49 Name.=.CodeEditor.CurrentEditorI
3780 6e 73 74 61 6c 6c 61 74 69 6f 6e 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 41 72 67 75 6d 65 6e 74 nstallation,............Argument
37a0 73 20 3d 20 24 22 7b 73 6f 6c 75 74 69 6f 6e 7d 20 2d 6c 20 7b 6c 69 6e 65 7d 20 5c 22 7b 70 61 s.=.$"{solution}.-l.{line}.\"{pa
37c0 74 68 7d 5c 22 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 55 73 65 53 68 65 6c 6c 45 78 65 63 75 th}\"",............UseShellExecu
37e0 74 65 20 3d 20 74 72 75 65 2c 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 7d 3b 0d te.=.true,..........}........};.
3800 0a 0d 0a 20 20 20 20 20 20 70 72 6f 63 65 73 73 2e 53 74 61 72 74 28 29 3b 0d 0a 0d 0a 20 20 20 .........process.Start();.......
3820 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 72 ...return.true;......}........pr
3840 69 76 61 74 65 20 62 6f 6f 6c 20 4f 70 65 6e 4f 53 58 41 70 70 28 73 74 72 69 6e 67 20 70 61 74 ivate.bool.OpenOSXApp(string.pat
3860 68 2c 20 69 6e 74 20 6c 69 6e 65 2c 20 69 6e 74 20 63 6f 6c 75 6d 6e 29 0d 0a 20 20 20 20 7b 0d h,.int.line,.int.column)......{.
3880 0a 20 20 20 20 20 20 76 61 72 20 73 6f 6c 75 74 69 6f 6e 20 3d 20 47 65 74 53 6f 6c 75 74 69 6f .......var.solution.=.GetSolutio
38a0 6e 46 69 6c 65 28 70 61 74 68 29 3b 20 2f 2f 20 54 4f 44 4f 3a 20 49 66 20 73 6f 6c 75 74 69 6f nFile(path);.//.TODO:.If.solutio
38c0 6e 20 66 69 6c 65 20 64 6f 65 73 6e 27 74 20 65 78 69 73 74 20 72 65 73 79 6e 63 2e 0d 0a 20 20 n.file.doesn't.exist.resync.....
38e0 20 20 20 20 73 6f 6c 75 74 69 6f 6e 20 3d 20 73 6f 6c 75 74 69 6f 6e 20 3d 3d 20 22 22 20 3f 20 ....solution.=.solution.==."".?.
3900 22 22 20 3a 20 24 22 5c 22 7b 73 6f 6c 75 74 69 6f 6e 7d 5c 22 22 3b 0d 0a 20 20 20 20 20 20 76 "".:.$"\"{solution}\"";........v
3920 61 72 20 70 61 74 68 41 72 67 75 6d 65 6e 74 73 20 3d 20 70 61 74 68 20 3d 3d 20 22 22 20 3f 20 ar.pathArguments.=.path.==."".?.
3940 22 22 20 3a 20 24 22 2d 6c 20 7b 6c 69 6e 65 7d 20 5c 22 7b 70 61 74 68 7d 5c 22 22 3b 0d 0a 20 "".:.$"-l.{line}.\"{path}\"";...
3960 20 20 20 20 20 76 61 72 20 70 72 6f 63 65 73 73 20 3d 20 6e 65 77 20 50 72 6f 63 65 73 73 0d 0a .....var.process.=.new.Process..
3980 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 53 74 61 72 74 49 6e 66 6f 20 3d 20 6e 65 77 ......{..........StartInfo.=.new
39a0 20 50 72 6f 63 65 73 73 53 74 61 72 74 49 6e 66 6f 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 .ProcessStartInfo..........{....
39c0 20 20 20 20 20 20 20 20 46 69 6c 65 4e 61 6d 65 20 3d 20 22 6f 70 65 6e 22 2c 0d 0a 20 20 20 20 ........FileName.=."open",......
39e0 20 20 20 20 20 20 41 72 67 75 6d 65 6e 74 73 20 3d 20 24 22 2d 6e 20 5c 22 7b 43 6f 64 65 45 64 ......Arguments.=.$"-n.\"{CodeEd
3a00 69 74 6f 72 2e 43 75 72 72 65 6e 74 45 64 69 74 6f 72 49 6e 73 74 61 6c 6c 61 74 69 6f 6e 7d 5c itor.CurrentEditorInstallation}\
3a20 22 20 2d 2d 61 72 67 73 20 7b 73 6f 6c 75 74 69 6f 6e 7d 20 7b 70 61 74 68 41 72 67 75 6d 65 6e ".--args.{solution}.{pathArgumen
3a40 74 73 7d 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 43 72 65 61 74 65 4e 6f 57 69 6e 64 6f 77 20 ts}",............CreateNoWindow.
3a60 3d 20 74 72 75 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 55 73 65 53 68 65 6c 6c 45 78 65 63 75 =.true,............UseShellExecu
3a80 74 65 20 3d 20 74 72 75 65 2c 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 7d 3b 0d te.=.true,..........}........};.
3aa0 0a 0d 0a 20 20 20 20 20 20 70 72 6f 63 65 73 73 2e 53 74 61 72 74 28 29 3b 0d 0a 0d 0a 20 20 20 .........process.Start();.......
3ac0 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 72 ...return.true;......}........pr
3ae0 69 76 61 74 65 20 73 74 72 69 6e 67 20 47 65 74 53 6f 6c 75 74 69 6f 6e 46 69 6c 65 28 73 74 72 ivate.string.GetSolutionFile(str
3b00 69 6e 67 20 70 61 74 68 29 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 69 66 20 28 49 73 55 6e ing.path)......{........if.(IsUn
3b20 69 74 79 53 63 72 69 70 74 28 70 61 74 68 29 29 0d 0a 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 ityScript(path))........{.......
3b40 20 20 20 72 65 74 75 72 6e 20 50 61 74 68 2e 43 6f 6d 62 69 6e 65 28 47 65 74 42 61 73 65 55 6e ...return.Path.Combine(GetBaseUn
3b60 69 74 79 44 65 76 65 6c 6f 70 65 72 46 6f 6c 64 65 72 28 29 2c 20 22 50 72 6f 6a 65 63 74 73 2f ityDeveloperFolder(),."Projects/
3b80 43 53 68 61 72 70 2f 55 6e 69 74 79 2e 43 53 68 61 72 70 50 72 6f 6a 65 63 74 73 2e 67 65 6e 2e CSharp/Unity.CSharpProjects.gen.
3ba0 73 6c 6e 22 29 3b 0d 0a 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 76 61 72 20 73 6f 6c sln");........}..........var.sol
3bc0 75 74 69 6f 6e 46 69 6c 65 20 3d 20 6d 5f 50 72 6f 6a 65 63 74 47 65 6e 65 72 61 74 69 6f 6e 2e utionFile.=.m_ProjectGeneration.
3be0 53 6f 6c 75 74 69 6f 6e 46 69 6c 65 28 29 3b 0d 0a 20 20 20 20 20 20 69 66 20 28 46 69 6c 65 2e SolutionFile();........if.(File.
3c00 45 78 69 73 74 73 28 73 6f 6c 75 74 69 6f 6e 46 69 6c 65 29 29 0d 0a 20 20 20 20 20 20 7b 0d 0a Exists(solutionFile))........{..
3c20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 73 6f 6c 75 74 69 6f 6e 46 69 6c 65 3b 0d 0a 20 20 ........return.solutionFile;....
3c40 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 72 65 74 75 72 6e 20 22 22 3b 0d 0a 20 20 20 20 7d ....}..........return."";......}
3c60 0d 0a 0d 0a 20 20 20 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 49 73 55 6e 69 74 79 53 63 72 69 70 ........static.bool.IsUnityScrip
3c80 74 28 73 74 72 69 6e 67 20 70 61 74 68 29 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 69 66 20 t(string.path)......{........if.
3ca0 28 55 6e 69 74 79 45 64 69 74 6f 72 2e 55 6e 73 75 70 70 6f 72 74 65 64 2e 49 73 44 65 76 65 6c (UnityEditor.Unsupported.IsDevel
3cc0 6f 70 65 72 42 75 69 6c 64 28 29 29 0d 0a 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 76 operBuild())........{..........v
3ce0 61 72 20 62 61 73 65 46 6f 6c 64 65 72 20 3d 20 47 65 74 42 61 73 65 55 6e 69 74 79 44 65 76 65 ar.baseFolder.=.GetBaseUnityDeve
3d00 6c 6f 70 65 72 46 6f 6c 64 65 72 28 29 2e 52 65 70 6c 61 63 65 28 22 5c 5c 22 2c 20 22 2f 22 29 loperFolder().Replace("\\",."/")
3d20 3b 0d 0a 20 20 20 20 20 20 20 20 76 61 72 20 6c 6f 77 65 72 50 61 74 68 20 3d 20 70 61 74 68 2e ;..........var.lowerPath.=.path.
3d40 54 6f 4c 6f 77 65 72 49 6e 76 61 72 69 61 6e 74 28 29 2e 52 65 70 6c 61 63 65 28 22 5c 5c 22 2c ToLowerInvariant().Replace("\\",
3d60 20 22 2f 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 66 20 28 6c 6f 77 65 72 50 61 74 68 2e ."/");............if.(lowerPath.
3d80 43 6f 6e 74 61 69 6e 73 28 28 62 61 73 65 46 6f 6c 64 65 72 20 2b 20 22 2f 52 75 6e 74 69 6d 65 Contains((baseFolder.+."/Runtime
3da0 22 29 2e 54 6f 4c 6f 77 65 72 49 6e 76 61 72 69 61 6e 74 28 29 29 0d 0a 20 20 20 20 20 20 20 20 ").ToLowerInvariant())..........
3dc0 20 20 7c 7c 20 6c 6f 77 65 72 50 61 74 68 2e 43 6f 6e 74 61 69 6e 73 28 28 62 61 73 65 46 6f 6c ..||.lowerPath.Contains((baseFol
3de0 64 65 72 20 2b 20 22 2f 45 64 69 74 6f 72 22 29 2e 54 6f 4c 6f 77 65 72 49 6e 76 61 72 69 61 6e der.+."/Editor").ToLowerInvarian
3e00 74 28 29 29 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 72 65 74 75 t()))..........{............retu
3e20 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 7d 0d 0a 0d 0a rn.true;..........}........}....
3e40 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 ......return.false;......}......
3e60 20 20 73 74 61 74 69 63 20 73 74 72 69 6e 67 20 47 65 74 42 61 73 65 55 6e 69 74 79 44 65 76 65 ..static.string.GetBaseUnityDeve
3e80 6c 6f 70 65 72 46 6f 6c 64 65 72 28 29 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 72 65 74 75 loperFolder()......{........retu
3ea0 72 6e 20 44 69 72 65 63 74 6f 72 79 2e 47 65 74 50 61 72 65 6e 74 28 45 64 69 74 6f 72 41 70 70 rn.Directory.GetParent(EditorApp
3ec0 6c 69 63 61 74 69 6f 6e 2e 61 70 70 6c 69 63 61 74 69 6f 6e 50 61 74 68 29 2e 50 61 72 65 6e 74 lication.applicationPath).Parent
3ee0 2e 50 61 72 65 6e 74 2e 46 75 6c 6c 4e 61 6d 65 3b 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 .Parent.FullName;......}........
3f00 70 75 62 6c 69 63 20 62 6f 6f 6c 20 54 72 79 47 65 74 49 6e 73 74 61 6c 6c 61 74 69 6f 6e 46 6f public.bool.TryGetInstallationFo
3f20 72 50 61 74 68 28 73 74 72 69 6e 67 20 65 64 69 74 6f 72 50 61 74 68 2c 20 6f 75 74 20 43 6f 64 rPath(string.editorPath,.out.Cod
3f40 65 45 64 69 74 6f 72 2e 49 6e 73 74 61 6c 6c 61 74 69 6f 6e 20 69 6e 73 74 61 6c 6c 61 74 69 6f eEditor.Installation.installatio
3f60 6e 29 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 69 66 20 28 46 69 6c 65 53 79 73 74 65 6d 55 n)......{........if.(FileSystemU
3f80 74 69 6c 2e 45 64 69 74 6f 72 50 61 74 68 45 78 69 73 74 73 28 65 64 69 74 6f 72 50 61 74 68 29 til.EditorPathExists(editorPath)
3fa0 20 26 26 20 49 73 52 69 64 65 72 49 6e 73 74 61 6c 6c 61 74 69 6f 6e 28 65 64 69 74 6f 72 50 61 .&&.IsRiderInstallation(editorPa
3fc0 74 68 29 29 0d 0a 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 76 61 72 20 69 6e 66 6f 20 th))........{..........var.info.
3fe0 3d 20 6e 65 77 20 52 69 64 65 72 50 61 74 68 4c 6f 63 61 74 6f 72 2e 52 69 64 65 72 49 6e 66 6f =.new.RiderPathLocator.RiderInfo
4000 28 65 64 69 74 6f 72 50 61 74 68 2c 20 66 61 6c 73 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e (editorPath,.false);..........in
4020 73 74 61 6c 6c 61 74 69 6f 6e 20 3d 20 6e 65 77 20 43 6f 64 65 45 64 69 74 6f 72 2e 49 6e 73 74 stallation.=.new.CodeEditor.Inst
4040 61 6c 6c 61 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 4e allation..........{............N
4060 61 6d 65 20 3d 20 69 6e 66 6f 2e 50 72 65 73 65 6e 74 61 74 69 6f 6e 2c 0d 0a 20 20 20 20 20 20 ame.=.info.Presentation,........
4080 20 20 20 20 50 61 74 68 20 3d 20 69 6e 66 6f 2e 50 61 74 68 0d 0a 20 20 20 20 20 20 20 20 7d 3b ....Path.=.info.Path..........};
40a0 0d 0a 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 7d 0d ..........return.true;........}.
40c0 0a 0d 0a 20 20 20 20 20 20 69 6e 73 74 61 6c 6c 61 74 69 6f 6e 20 3d 20 64 65 66 61 75 6c 74 3b .........installation.=.default;
40e0 0d 0a 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 7d 0d 0a 0d 0a ........return.false;......}....
4100 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 49 73 52 69 64 65 72 49 6e ....public.static.bool.IsRiderIn
4120 73 74 61 6c 6c 61 74 69 6f 6e 28 73 74 72 69 6e 67 20 70 61 74 68 29 0d 0a 20 20 20 20 7b 0d 0a stallation(string.path)......{..
4140 20 20 20 20 20 20 69 66 20 28 49 73 41 73 73 65 74 49 6d 70 6f 72 74 57 6f 72 6b 65 72 50 72 6f ......if.(IsAssetImportWorkerPro
4160 63 65 73 73 28 29 29 0d 0a 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a cess())..........return.false;..
4180 20 20 20 20 20 20 0d 0a 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f ..............if.(string.IsNullO
41a0 72 45 6d 70 74 79 28 70 61 74 68 29 29 0d 0a 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 rEmpty(path))........{..........
41c0 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 return.false;........}..........
41e0 76 61 72 20 66 69 6c 65 49 6e 66 6f 20 3d 20 6e 65 77 20 46 69 6c 65 49 6e 66 6f 28 70 61 74 68 var.fileInfo.=.new.FileInfo(path
4200 29 3b 0d 0a 20 20 20 20 20 20 76 61 72 20 66 69 6c 65 6e 61 6d 65 20 3d 20 66 69 6c 65 49 6e 66 );........var.filename.=.fileInf
4220 6f 2e 4e 61 6d 65 2e 54 6f 4c 6f 77 65 72 49 6e 76 61 72 69 61 6e 74 28 29 3b 0d 0a 20 20 20 20 o.Name.ToLowerInvariant();......
4240 20 20 72 65 74 75 72 6e 20 66 69 6c 65 6e 61 6d 65 2e 53 74 61 72 74 73 57 69 74 68 28 22 72 69 ..return.filename.StartsWith("ri
4260 64 65 72 22 2c 20 53 74 72 69 6e 67 43 6f 6d 70 61 72 69 73 6f 6e 2e 4f 72 64 69 6e 61 6c 29 3b der",.StringComparison.Ordinal);
4280 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 62 6f ......}........private.static.bo
42a0 6f 6c 20 49 73 41 73 73 65 74 49 6d 70 6f 72 74 57 6f 72 6b 65 72 50 72 6f 63 65 73 73 28 29 0d ol.IsAssetImportWorkerProcess().
42c0 0a 20 20 20 20 7b 0d 0a 23 69 66 20 55 4e 49 54 59 5f 32 30 31 39 5f 33 5f 4f 52 5f 4e 45 57 45 .....{..#if.UNITY_2019_3_OR_NEWE
42e0 52 0d 0a 20 20 20 20 20 20 72 65 74 75 72 6e 20 55 6e 69 74 79 45 64 69 74 6f 72 2e 45 78 70 65 R........return.UnityEditor.Expe
4300 72 69 6d 65 6e 74 61 6c 2e 41 73 73 65 74 44 61 74 61 62 61 73 65 45 78 70 65 72 69 6d 65 6e 74 rimental.AssetDatabaseExperiment
4320 61 6c 2e 49 73 41 73 73 65 74 49 6d 70 6f 72 74 57 6f 72 6b 65 72 50 72 6f 63 65 73 73 28 29 3b al.IsAssetImportWorkerProcess();
4340 0d 0a 23 65 6c 73 65 0d 0a 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 23 65 ..#else........return.false;..#e
4360 6e 64 69 66 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 ndif......}........public.static
4380 20 73 74 72 69 6e 67 20 43 75 72 72 65 6e 74 45 64 69 74 6f 72 20 2f 2f 20 77 6f 72 6b 73 20 66 .string.CurrentEditor.//.works.f
43a0 61 73 74 2c 20 64 6f 65 73 6e 27 74 20 76 61 6c 69 64 61 74 65 20 69 66 20 65 78 65 63 75 74 61 ast,.doesn't.validate.if.executa
43c0 62 6c 65 20 72 65 61 6c 6c 79 20 65 78 69 73 74 73 0d 0a 20 20 20 20 20 20 3d 3e 20 45 64 69 74 ble.really.exists........=>.Edit
43e0 6f 72 50 72 65 66 73 2e 47 65 74 53 74 72 69 6e 67 28 22 6b 53 63 72 69 70 74 73 44 65 66 61 75 orPrefs.GetString("kScriptsDefau
4400 6c 74 41 70 70 22 29 3b 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 43 6f 64 65 45 64 69 74 6f ltApp");........public.CodeEdito
4420 72 2e 49 6e 73 74 61 6c 6c 61 74 69 6f 6e 5b 5d 20 49 6e 73 74 61 6c 6c 61 74 69 6f 6e 73 20 3d r.Installation[].Installations.=
4440 3e 20 6d 5f 44 69 73 63 6f 76 65 72 61 62 69 6c 69 74 79 2e 50 61 74 68 43 61 6c 6c 62 61 63 6b >.m_Discoverability.PathCallback
4460 28 29 3b 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 43 72 65 61 74 65 53 6f 6c ();........public.void.CreateSol
4480 75 74 69 6f 6e 49 66 44 6f 65 73 6e 74 45 78 69 73 74 28 29 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 utionIfDoesntExist()......{.....
44a0 20 20 20 69 66 20 28 21 6d 5f 50 72 6f 6a 65 63 74 47 65 6e 65 72 61 74 69 6f 6e 2e 48 61 73 53 ...if.(!m_ProjectGeneration.HasS
44c0 6f 6c 75 74 69 6f 6e 42 65 65 6e 47 65 6e 65 72 61 74 65 64 28 29 29 0d 0a 20 20 20 20 20 20 7b olutionBeenGenerated())........{
44e0 0d 0a 20 20 20 20 20 20 20 20 6d 5f 50 72 6f 6a 65 63 74 47 65 6e 65 72 61 74 69 6f 6e 2e 53 79 ..........m_ProjectGeneration.Sy
4500 6e 63 28 29 3b 0d 0a 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 20 20 7d 0d 0a 7d 00 00 00 nc();........}......}....}..}...
4520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11 00 00 00 52 69 64 65 72 53 63 72 ........................RiderScr
4540 69 70 74 45 64 69 74 6f 72 00 00 00 15 00 00 00 50 61 63 6b 61 67 65 73 2e 52 69 64 65 72 2e 45 iptEditor.......Packages.Rider.E
4560 64 69 74 6f 72 00 00 00 ditor...