-
Notifications
You must be signed in to change notification settings - Fork 1k
Fixes VSTS Bug 668301: [Feedback] Unable to change font colors for #5839
Conversation
|
|
||
| public static bool IsCompileableFile (MonoDevelop.Projects.Project p, ProjectFile file, out Microsoft.CodeAnalysis.SourceCodeKind sck) | ||
| { | ||
| var ext = file.FilePath.Extension; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we move this into the if below?
| base.Dispose (); | ||
| workspace.CloseDocument (documentId); | ||
| DocumentContext.AnalysisDocumentChanged += delegate { | ||
| Editor.SyntaxHighlighting = new RoslynClassificationHighlighting ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we recreate the highlighting every time we parse a document?
|
Also fixes #4036 |
|
Alternative fix: #5840 |
6d77227 to
1796b08
Compare
| public static bool IsCompileableFile (ProjectFile file, out Microsoft.CodeAnalysis.SourceCodeKind sck) | ||
| => IsCompileableFile (null, file, out sck); | ||
|
|
||
| public static bool IsCompileableFile (MonoDevelop.Projects.Project p, ProjectFile file, out Microsoft.CodeAnalysis.SourceCodeKind sck) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is already an IsCompileable method in the Project class. SourceCodeKind could just be a property of ProjectFile.
vb.net by Visual Studio Community 2017 for Mac https://devdiv.visualstudio.com/DevDiv/_workitems/edit/668301 Basically using the former roslyn classification highlighting (latest version). However the vb.net loading gets implemented in our workspace system so the old hack could go away. Switching to tag based highlighting should work when the editorfeatures.vbnet dll can be added to our mef composition. But for now that re-enables vb.net coloring.
…ual Studio Community 2017 for Mac
29ca43c to
56cde02
Compare
node helper method.
| => IsCompileableFile (null, file, out sck); | ||
|
|
||
| [Obsolete ("Use p.IsCompileable")] | ||
| public static bool IsCompileableFile (MonoDevelop.Projects.Project p, ProjectFile file, out Microsoft.CodeAnalysis.SourceCodeKind sck) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't add a new obsolete method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why ? it is obsolete now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no point in adding a new obsolete method because nobody is going to use it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah sry misread - the 'add obsolete' method :) - y there is no point in it - true.
| Project.NotifyFilePropertyChangedInProject (this, property); | ||
| } | ||
|
|
||
| public virtual SourceCodeKind SourceCodeKind { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't make this method virtual.
|
@monojenkins backport release-7.6 |
|
@slluis backporting to release-7.6 failed, the patch results in conflicts: Please backport manually! |
vb.net by Visual Studio Community 2017 for Mac
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/668301
Basically using the former roslyn classification highlighting (latest
version). However the vb.net loading gets implemented in our workspace
system so the old hack could go away.
Switching to tag based highlighting should work when the
editorfeatures.vbnet dll can be added to our mef composition. But for
now that re-enables vb.net coloring.