Search

typing in .htm solution items is very slow to respond by Dwayne J. Baldwin

Closed
as Fixed Help for as Fixed

0
Sign in to vote
0
Sign in to vote
Sign in
to vote
Type: Bug
ID: 219978
Opened: 10/7/2006 1:04:45 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
When I edit a .htm file from Solution Items, it takes 1-10 seconds before the text being typed is actually displayed. This is a C# solution with 20 projects and a simple .htm file in a Documentation folder under the root of the solution.
Details (expand)
Product Language
English
Version
Visual Studio 2005 Team Edition for Software Developers
Operating System
Windows XP Professional
Operating System Language
English
Programming Language
C#
Technology Area
Visual Studio 2005
Steps to Reproduce
Add a .htm file to solution items, or add existing file to the solution items. Open the file then click to edit. Start typing. Notice the delay. Click on the Solution Explorer, then back to the .htm file and type away. Backspacing and deleting are slow as well. (Use a 500 line .htm sample file with few <hr>, but no css or links.)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
Actual Results
All editing is slow. It is as if something else is going on in the background, then it catches up.
Expected Results
Normal editing as with a .cs or .vb file.
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 10/17/2006 at 5:11 PM
What type of project is the html documentation file in. Is this in a C# client project or a web site?
Did the performance chnage after sp1?
Posted by Dwayne J. Baldwin on 10/17/2006 at 9:01 PM
It's a c# solution with 20 projects including a web site. I uninstalled, reinstalled VS2005, then SP1 and there is definately a performance increase with SP1. The only thing I can think of is that I may have had WAP installed when I first reported this issue. By reinstalling from scratch SP1 seems to be much better...

But there's something else weird happening with Solution Items, with and without the webproject in the solution.

1) Create a new solution within an existing web project...
e:\website\application1
e:\website\application1\solution2

2) add a doumentation folder and an emtpy .htm file
e:\website\application1\solution2\documentation\welcome.htm

3) Add existing file to solution2|solution items, then open the file using Solution Explorer.

4) Now add the existing website project to the solution.
e:\website\application1 (http://localhost/vdir1)

5) Using the Solution Explorer, open Solution Items|welcome.htm and it expands the web project instead...

6) Double click (again) on Solution Items|welcome.htm (expecting the window to be selected)...
Error: This document is opened by another project.

7) Remove the web project from the solution.

8) Open Solution Items|welcome.htm and it works as it should.

Obviously the Solution Explorer opens Solution Items files in a different way when a web project is included in the solution, which may explain the difference in operation.
Posted by Microsoft on 10/25/2006 at 4:36 PM
The editor's performance was improved by changing the default behavior of the Property Grid to not show properties when in source view. This default can be change by selectung Tools->Options menu item, selecting the Text Editor -> HTML -> Miscellaneous Page, and checking or unchecking Enable Property Grid in source view option. As for the second problem you reported, we will investigate it.

Thanks,
John
Posted by Microsoft on 1/16/2007 at 11:03 PM
Thank you for submitting this issue. The bug has been resolved Fixed, and its resolution shipped as part of Visual Studio 2005 Service Pack 1 (SP1).

You can download SP1 at http://msdn.microsoft.com/vstudio/support/vs2005sp1/default.aspx. If installing SP1 does not resolve the issue for you, please reactivate.

Thanks again for your feedback!
-Scott Currie
-DDTFA Program Manager