Search Issue Tracker
Fixed in 1.2.2
Votes
1
Found in [Package]
2019.2.0a9
2019.3
2019.3.15f1
2019.4
2020.1
2020.2
Issue ID
1253188
Regression
Yes
[VS Code] .sln file isn't updated when Scripts are imported and Visual Studio Code is used as the External Script Editor
How to reproduce:
1. Create and open a new project
2. Right-click in the project window and select Import Package > Custom Package
3. Import the attached "TestScripts.unitypackage" package
4. Open the "Class2" Script from the "Test" folder
5. Right-click on the "Class1" name
6. Select "go to definition"
Expected result: "Class1.cs" file is opened and the Class definition is shown
Actual result: "No definition found for 'Class1' error pops up
Reproducible with: 2019.2.0a9, 2019.2.0a14, 2019.3.16f1, 2019.4.0f1, 2020.1.0b11, 2020.2.0a14
Not reproducible with: 2018.4.23f1, 2019.2.0a8, 2019.2.0b1, 2019.2.21f1
Notes:
-This also reproduces with local Packages and Scripts pasted directly into the Assets folder
-The associated .sln file doesn't contain "Class1.cs" and "Class2.cs" files until the project files are regenerated
-This doesn't reproduce if Rider or Visual Studio are selected as External Script Editors
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Resolution Note (fix version 1.2.2):
Fixed in Visual Studio Code Editor 1.2.2