Simon Lindgren
a1baeae6ce
[CodeIssues] Clean up VariableDeclareInWideScopeTests.
13 years ago
Mike Krüger
a2e370fe2d
[CodeActions] Fixed implement abstract members bug.
13 years ago
Mike Krüger
465bcdfb61
[Completion] Check if types are accessible in the namespace resolve
...
result case.
13 years ago
Simon Lindgren
d787bbb263
[CodeIssues] Don't suggest moving variables into lock statements.
13 years ago
Simon Lindgren
827cf5d25b
[CodeIssues] Fix typo in MultipleEnumerationIssue.
13 years ago
Mike Krüger
d4f373d995
[Refactoring] Fixed potential issue in variable refrence graph
...
builder.
13 years ago
Mike Krüger
7cab07f13e
[Completion] Check for extension method accessibility.
13 years ago
Mike Krüger
3dbba420eb
[Resolver] Fixed infinite loop issue when a type inherits from type
...
parameter.
13 years ago
Matt Ward
db2f9dbb06
T4 template can now add virtual keyword to public methods.
...
The EnvDTE.CodeFunction.CanOverride property setter can be used to add a virtual keyword to the method definition.
The T4MVC template makes all controller methods virtual so it can override them in another generated class.
13 years ago
Matt Ward
d7b7ee5247
T4 template can now add partial keyword to class.
...
The EnvDTE.CodeClass2.ClassKind property setter can be used to add a partial keyword to the class definition.
The T4MVC template makes all controller classes partial so it can add extend the original class with an associated partial controller class that it generates.
13 years ago
Matt Ward
12fe1bbc73
Fix T4MVC template not generating method parameters.
...
Now using CodeParameter2 instead of CodeParameter when returning parameters from CodeFunction.Parameters
13 years ago
Matt Ward
debe1eae99
Fix incorrect namespace returned for EnvDTE.CodeType.
...
The last part of the namespace was being returned by CodeNamespace.Name for a CodeType instead of the fully qualified name.
13 years ago
Mike Krüger
a1bcb54747
[Semantics] Added test case for nullable constant value / fixed last
...
fix.
13 years ago
Mike Krüger
3acaf5eca2
[Semantic] Handled default parameter value conversion in default
...
unresolved parameter.
13 years ago
Mike Krüger
2733a83a79
[Semantics] ConversionResolveResult: For nullable conversions return
...
the constant value of the input resolve result. IMHO ConstantValue ==
null is an error for example for int? i = 1; case. The constant value
should be '1' there.
13 years ago
Mike Krüger
3001fae71f
[CodeAction] Fixed bug in create class declaration action.
13 years ago
Mike Krüger
96b4ec0053
Merge pull request #102 from riviti/gsoc-fixes
...
A bunch of fixes of my GSoC work
13 years ago
Mike Krüger
3015b1bcb9
Merge pull request #105 from fightangel/fixes
...
some fixes for code actions and code issues
13 years ago
Mansheng Yang
862e3d3156
[CodeActions] PutInsideUsingAction: remove trailing Dispose() invocation
13 years ago
Mansheng Yang
bf33c03cc2
[CodeIssues] RedundantArrayInitializerCommaIssue: show appropriate description for different types of initializers
13 years ago
Mansheng Yang
0270ce48b0
[CodeActions] CreateOverloadWithoutParameterAction: fixed missing ref/out in generated call
13 years ago
Mansheng Yang
84126bbddc
[CodeActions] ConvertAsToCastAction: fixed some parentheses issues
13 years ago
Mansheng Yang
e23568fc51
[CodeActions] ConvertCastToAsAction: insert parentheses when necessary
13 years ago
Mansheng Yang
d9f68d3e67
[CodeIssues] ExpressionIsAlwaysOfProvidedTypeIssue: use Conversions instead of TypeCompatibilityHelper
13 years ago
Mike Krüger
aad32a0e66
[CodeAction] Fixed some 'cast expression of incompatible type' issue
...
bugs.
13 years ago
Mike Krüger
1b41ee02ca
[CodeAction] Convert lambda to delegate action no longer puts a
...
redundant () in the anonymous delegate.
13 years ago
Mike Krüger
24c0222e20
[CodeAction] Fixed bug in splet declaration and assignment action.
13 years ago
Mike Krüger
1a80006cac
[CodeIssues] Fixed an issue with try/catch statement in redundant
...
assignment issue.
13 years ago
Mike Krüger
d69edd3670
[CodeIssues] ')edundant field initializer' issue no longer greys out
...
the field name.
13 years ago
Mike Krüger
3451f5cb38
[Analysis] Handle null reference in control flow graph builder.
...
btw. assumes that if true statement is null the if is incomplete.
13 years ago
Matt Ward
a2a0f04240
Add new dependent files to project browser.
...
Update the project browser with any dependent files added to the project by the T4MVC template when it is run.
13 years ago
Matt Ward
3b15af69c1
Set DependentUpon for file added to EnvDTE file project item.
...
The T4MVC template uses EnvDTE.ProjectItems.AddFromFile() to add its generated files as dependent files.
If the project items belong to a file then the DependentUpon property is set in the MSBuild project.
13 years ago
Konrad M. Kruczynski
be34221618
[CodeIssues] Do not report unused parameter if it is out or ref.
13 years ago
Mike Krüger
6c62b5b2c3
[Ast] Fixed end location of multi line strings.
13 years ago
Mike Krüger
e639b4bcbb
[Analysis] Handled null conditions in do while & while statements.
13 years ago
Matt Ward
31560dd552
Add dependent files as child EnvDTE.ProjectItems.
...
Fixes the T4MVC template from adding duplicate files to the project since it failed to find the dependent files under T4MVC.tt.
13 years ago
Matt Ward
51f2ab9e20
Fix find in files exception when search matches file without highlighting.
...
When find in files matches text in a .txt file then EditorControlService.Instance.CreateHighlighter() returns null since .txt files have no syntax highlighting.
13 years ago
Matt Ward
7b0d8e92c9
Fix different EnvDTE behaviour between SharpDevelop and Visual Studio.
...
Throw exception when unknown item requested from EnvDTE.ProjectItems.Item() instead of returning null.
The T4MVC template relies on this behaviour when looking for folders that do not exist.
13 years ago
Matt Ward
14d0d235df
Fix cross appdomain serialisation exception for EnvDTE project items.
...
Convert project items generated by yield return to a list before allowing them to be used in a different app domain. The class generated by using the yield keyword is not serialisable.
13 years ago
Matt Ward
d9ed0169a4
Make EnvDTE classes serialisable.
13 years ago
Matt Ward
61cccdf063
Implement EnvDTE.ProjectItem.Open()
...
The T4MVC template opens itself into the IDE if it is not already open.
13 years ago
Matt Ward
69ccf0af45
Implement EnvDTE.Document.Saved
...
When T4MVC is configured to always keep its template unsaved then it uses Document.Saved to false each time it is run.
13 years ago
Matt Ward
d67c82e1f1
Implement EnvDTE.ProjectItem.Document
...
The T4MVC template checks the ProjectItem.Document property to see if it has been opened.
13 years ago
Matt Ward
358fbf071b
Implement EnvDTE.CodeParameter.Attributes
...
The T4MVC template looks for the MVC BindAttribute on method parameters in order to get the prefix.
13 years ago
Matt Ward
b80bfb80b6
Implement EnvDTE.CodeParameter2.ParameterKind
...
The T4MVC template checks whether a parameter is optional so it can determine which controller action methods can be called without any parameters.
13 years ago
Matt Ward
8bab34c5fb
Implemented EnvDTE.CodeFunction2.IsGeneric
...
The T4MVC template ignores controller methods that are generic.
13 years ago
Matt Ward
1e6d363c41
Fix CodeFunction.CanOverride returning false for overridden methods.
13 years ago
Matt Ward
32d5d39e8b
Implement EnvDTE.CodeFunction2.OverrideKind
...
The T4MVC template checks that a method is an overridden method.
13 years ago
Matt Ward
a315a11f4d
Return EnvDTE.CodeFunction2 instances from EnvDTE.CodeClass2.Members.
...
The T4MVC assumes the class methods are instances of the CodeFunction2 type.
13 years ago
Matt Ward
b17aa07a6d
Implement EnvDTE.CodeFunction.Attributes
...
The T4MVC template checks method attributes.
13 years ago