TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

VS2015 Preview: TypeScript keeps inserting 4-space tab

Open saschanaz opened this issue 12 years ago • 30 comments

Tab option: tab2

TypeScript behavior: tab4

saschanaz avatar Nov 26 '14 08:11 saschanaz

@vladima C# code have new settings

flaticols avatar Jan 06 '15 15:01 flaticols

ok, problem is on the managed side, let's make one step forward. Can you go to %LOCALAPPDATA%\Microsoft\VisualStudio\14.0\, just in case backup folder ComponentModelCache, delete it, restart the VS and open some '.ts' file. Absence of ComponentModelCache will trigger recomputation of the VS component graph and if there are any error during recomposition they will be logged in '.err' file in ComponentModelCache folder. If there will be '.err' in the ComponentModelCache - please paste its content here.

vladima avatar Jan 14 '15 18:01 vladima

I have Microsoft.VisualStudio.Default.err file, which contains:

----- CompositionError level 1 ------
Microsoft.VisualStudio.CodeSense.Providers.TestedBy.MethodReferenceInfoServerService.ctor(findReferencesService): expected exactly 1 export of Microsoft.VisualStudio.Alm.Roslyn.Server.Features.FindReferences.IFindReferencesService but found 0.
   part definition Microsoft.VisualStudio.CodeSense.Providers.TestedBy.MethodReferenceInfoServerService

Microsoft.VisualStudio.CodeSense.Providers.TestedBy.MethodReferenceInfoServerService.ctor(workspace): expected exactly 1 export of Microsoft.CodeAnalysis.Workspace but found 0.
   part definition Microsoft.VisualStudio.CodeSense.Providers.TestedBy.MethodReferenceInfoServerService

Microsoft.VisualStudio.CodeSense.Providers.References.ReferenceLocationInfoServerService.ctor(findReferencesService): expected exactly 1 export of Microsoft.VisualStudio.Alm.Roslyn.Server.Features.FindReferences.IFindReferencesService but found 0.
   part definition Microsoft.VisualStudio.CodeSense.Providers.References.ReferenceLocationInfoServerService

Microsoft.VisualStudio.CodeSense.Providers.References.ReferenceLocationInfoServerService.ctor(workspace): expected exactly 1 export of Microsoft.CodeAnalysis.Workspace but found 0.
   part definition Microsoft.VisualStudio.CodeSense.Providers.References.ReferenceLocationInfoServerService

Roslyn.VisualStudio.TypeScript.LanguageService.ProjectCommands.project: expected exactly 1 export of Microsoft.VisualStudio.Shell.Interop.IVsProject but found 2.
    Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCUnconfiguredProjectMefIntegration.VsProject
    Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.ProjectNode
   part definition Roslyn.VisualStudio.TypeScript.LanguageService.ProjectCommands

Microsoft.VisualStudio.CodeSense.Providers.TestStatus.MethodLocationInfoServerService.ctor(workspace): expected exactly 1 export of Microsoft.CodeAnalysis.Workspace but found 0.
   part definition Microsoft.VisualStudio.CodeSense.Providers.TestStatus.MethodLocationInfoServerService

Microsoft.VisualStudio.SharePoint.ShellService.ServiceProvider: expected exactly 1 export of System.IServiceProvider but found 0.
   part definition Microsoft.VisualStudio.SharePoint.ShellService


flaticols avatar Jan 14 '15 18:01 flaticols

Can you try to toggle checkbox 'Navigation bar' (Tools -> Options -> Text Editor\TypeScript\General) to verify if navbar will become visible\hidden?

vladima avatar Jan 14 '15 23:01 vladima

@vladima I'm tried toggle checkbox "Navigation bar" and not affected on Navigation bar in VS text editor

flaticols avatar Jan 15 '15 06:01 flaticols

Can you try TypeScript .1.4 to see whether you can still reproduce this issue?

vladima avatar Jan 16 '15 20:01 vladima

Now it works on CTP5.

saschanaz avatar Jan 17 '15 05:01 saschanaz

@SaschaNaz Great to know! @flaticols can you give a CTP5 a try and check if it fixes your problem.

vladima avatar Jan 19 '15 18:01 vladima

@vladima sorry for the wait :( Yup, now works great. Thanks!

flaticols avatar Jan 21 '15 00:01 flaticols

Great to know!

vladima avatar Jan 21 '15 02:01 vladima