Permalink
Browse files

Autocomplete for MSBCT ExecuteDDL - FxCop

Autocomplete done for Computer, ExecuteDDL, FileUpdate,
FtpCreateRemoteDirectory, FtpDirectoryExists, FtpUpload,
FtpUploadDirectoryContent, FxCop.

Fixed some array property input placeholders to be single rather than
plural words.
  • Loading branch information...
1 parent 866985b commit d5602aee069e5b9dcd36b2299d4dc80ca8308a87 @tillig committed Jun 27, 2012
Showing with 13 additions and 13 deletions.
  1. +13 −13 msbuild_completions.py
View
@@ -180,20 +180,20 @@ def on_query_completions(self, view, prefix, locations):
("AppPoolDelete [MSBCT Simple]", "AppPoolDelete ApplicationPoolName=\"$1\" />"),
("AppPoolDelete [MSBCT Full]", "AppPoolDelete\n\tApplicationPoolName=\"$1\"\n\tHostHeaderName=\"$2\"\n\tPassword=\"$3\"\n\tServerName=\"${4:localhost}\"\n\tServerPort=\"${5:80}\"\n\tUsername=\"$6\" />"),
("AssemblyInfo [MSBCT]", "AssemblyInfo\n\tAllowPartiallyTrustedCallers=\"${1:False}\"\n\tAssemblyCompany=\"$2\"\n\tAssemblyConfiguration=\"$3\"\n\tAssemblyCopyright=\"$4\"\n\tAssemblyCulture=\"$5\"\n\tAssemblyDelaySign=\"${6:False}\"\n\tAssemblyDescription=\"$7\"\n\tAssemblyFileVersion=\"$8\"\n\tAssemblyInformationalVersion=\"$9\"\n\tAssemblyKeyFile=\"$10\"\n\tAssemblyKeyName=\"$11\"\n\tAssemblyProduct=\"$12\"\n\tAssemblyTitle=\"$13\"\n\tAssemblyTrademark=\"$14\"\n\tAssemblyVersion=\"$15\"\n\tCLSCompliant=\"${16:False}\"\n\tCodeLanguage=\"${17:CS}\"\n\tComVisible=\"${18:False}\"\n\tGenerateClass=\"${19:False}\"\n\tGuid=\"$20\"\n\tInternalsVisibleTo=\"$21\"\n\tNeutralResourcesLanguage=\"$22\"\n\tOutputFile=\"${23:AssemblyInfo.cs}\"\n\tSkipVerification=\"${24:False}\"\n\tUnmanagedCode=\"${25:False}\">\n\t<Output TaskParameter=\"OutputFile\" PropertyName=\"$26\" />\n</AssemblyInfo>"),
- ("Attrib [MSBCT]", "Attrib\n\tArchive=\"${1:False}\"\n\tCompressed=\"${2:False}\"\n\tDirectories=\"${3:@(Directories)}\"\n\tEncrypted=\"${4:False}\"\n\tFiles=\"${5:@(Files)}\"\n\tHidden=\"${6:False}\"\n\tNormal=\"${7:False}\"\n\tReadOnly=\"${8:False}\"\n\tSystem=\"${9:False}\" />"),
+ ("Attrib [MSBCT]", "Attrib\n\tArchive=\"${1:False}\"\n\tCompressed=\"${2:False}\"\n\tDirectories=\"${3:@(Directory)}\"\n\tEncrypted=\"${4:False}\"\n\tFiles=\"${5:@(File)}\"\n\tHidden=\"${6:False}\"\n\tNormal=\"${7:False}\"\n\tReadOnly=\"${8:False}\"\n\tSystem=\"${9:False}\" />"),
("Beep [MSBCT]", "Beep Duration=\"${1:200}\" Frequency=\"${2:800}\" />"),
("BuildAssembler [MSBCT]", "BuildAssembler\n\tConfigFile=\"$1\"\n\tManifestFile=\"$2\"\n\tNoInfoMessages=\"${3:False}\"\n\tNoWarnMessages=\"${4:False}\"\n\tSandcastleRoot=\"$5\" />"),
("ChmBuilder [MSBCT]", "ChmBuilder\n\tHtmlDirectory=\"$1\"\n\tLanguageId=\"$2\"\n\tMetadata=\"$3\"\n\tOutputDirectory=\"$4\"\n\tProjectName=\"$5\"\n\tTocFile=\"$6\"\n\tNoInfoMessages=\"${7:False}\"\n\tNoWarnMessages=\"${8:False}\"\n\tSandcastleRoot=\"$9\" />"),
- ("Computer [MSBCT]", "Computer></Computer>"),
+ ("Computer [MSBCT]", "Computer>\n\t<Output TaskParameter=\"Name\" PropertyName=\"$1\" />\n\t<Output TaskParameter=\"IPAddress\" PropertyName=\"$2\" />\n\t<Output TaskParameter=\"OSPlatform\" PropertyName=\"$3\" />\n\t<Output TaskParameter=\"OSVersion\" PropertyName=\"$4\" />\n</Computer>"),
("DBCSFix [MSBCT]", "DBCSFix\n\tChmDirectory=\"$1\"\n\tLanguageId=\"$2\"\n\tNoInfoMessages=\"${3:False}\"\n\tNoWarnMessages=\"${4:False}\"\n\tSandcastleRoot=\"$5\" />"),
("Divide [MSBCT]", "Divide Numbers=\"$1\" TruncateResult=\"${2:False}\">\n\t<Output TaskParameter=\"Result\" PropertyName=\"$3\" />\n</Divide>"),
- ("ExecuteDDL [MSBCT]", "ExecuteDDL></ExecuteDDL>"),
- ("FileUpdate [MSBCT]", "FileUpdate></FileUpdate>"),
- ("FtpCreateRemoteDirectory [MSBCT]", "FtpCreateRemoteDirectory></FtpCreateRemoteDirectory>"),
- ("FtpDirectoryExists [MSBCT]", "FtpDirectoryExists></FtpDirectoryExists>"),
- ("FtpUpload [MSBCT]", "FtpUpload></FtpUpload>"),
- ("FtpUploadDirectoryContent [MSBCT]", "FtpUploadDirectoryContent></FtpUploadDirectoryContent>"),
- ("FxCop [MSBCT]", "FxCop></FxCop>"),
+ ("ExecuteDDL [MSBCT]", "ExecuteDDL\n\tBatchSeparator=\"${1:GO}\"\n\tConnectionString=\"$2\"\n\tFiles=\"${3:@(File)}\"\n\tStatementTimeout=\"${4:30}\">\n\t<Output TaskParameter=\"Results\" PropertyName=\"$5\" />\n</ExecuteDDL>"),
+ ("FileUpdate [MSBCT]", "FileUpdate\n\tEncoding=\"${1:utf-8}\"\n\tFiles=\"${2:@(File)}\"\n\tIgnoreCase=\"${3:False}\"\n\tMultiline=\"${4:False}\"\n\tRegex=\"$5\"\n\tReplacementCount=\"${6:-1}\"\n\tReplacementText=\"${7:}\"\n\tSingleline=\"${8:False}\"\n\tWarnOnNoUpdate=\"${9:False}\" />"),
+ ("FtpCreateRemoteDirectory [MSBCT]", "FtpCreateRemoteDirectory\n\tRemoteDirectory=\"$1\"\n\tBufferSize=\"${2:8196}\"\n\tPassword=\"$3\"\n\tPort=\"${4:21}\"\n\tServerHost=\"${5:localhost}\"\n\tUsername=\"$6\" />"),
+ ("FtpDirectoryExists [MSBCT]", "FtpDirectoryExists\n\tRemoteDirectory=\"$1\"\n\tBufferSize=\"${2:8196}\"\n\tPassword=\"$3\"\n\tPort=\"${4:21}\"\n\tServerHost=\"${5:localhost}\"\n\tUsername=\"$6\">\n\t<Output TaskParameter=\"Exists\" PropertyName=\"$7\" />\n</FtpDirectoryExists>"),
+ ("FtpUpload [MSBCT]", "FtpUpload\n\tLocalFiles=\"${1:@(LocalFile)}\"\n\tPassword=\"$2\"\n\tRemoteFiles=\"${3:@(RemoteFile)}\"\n\tRemoteUri=\"$4\"\n\tUsePassive=\"${5:False}\"\n\tUsername=\"${6:anonymous}\" />"),
+ ("FtpUploadDirectoryContent [MSBCT]", "FtpUploadDirectoryContent\n\tLocalDirectory=\"$1\"\n\tRemoteDirectory=\"$2\"\n\tRecursive=\"${3:False}\"\n\tBufferSize=\"${4:8196}\"\n\tPassword=\"$5\"\n\tPort=\"${6:21}\"\n\tServerHost=\"${7:localhost}\"\n\tUsername=\"$8\" />"),
+ ("FxCop [MSBCT]", "FxCop\n\tAnalysisReportFileName=\"$1\"\n\tApplyOutXsl=\"${2:False}\"\n\tConsoleXslFileName=\"$3\"\n\tDependencyDirectories=\"${4:@(DependencyDirectory)}\"\n\tDirectOutputToConsole=\"${5:False}\"\n\tFailOnError=\"${6:True}\"\n\tImportFiles=\"${7:@(ImportFile)}\"\n\tIncludeSummaryReport=\"${8:False}\"\n\tOuptutXslFileName=\"$9\"\n\tPlatformDirectory=\"$10\"\n\tProjectFile=\"$11\"\n\tRuleLibraries=\"${12:@(RuleLibrary)}\"\n\tRules=\"${13:@(Rule)}\"\n\tSaveResults=\"${14:False}\"\n\tSearchGac=\"${15:False}\"\n\tTargetAssemblies=\"${16:@(Assembly)}\"\n\tTypeList=\"$17\"\n\tVerbose=\"${18:False}\"\n\tWorkingDirectory=\"$19\" />"),
("GacUtil [MSBCT]", "GacUtil></GacUtil>"),
("GetSolutionProjects [MSBCT]", "GetSolutionProjects></GetSolutionProjects>"),
("HxCompiler [MSBCT]", "HxCompiler></HxCompiler>"),
@@ -205,7 +205,7 @@ def on_query_completions(self, view, prefix, locations):
("Merge [MSBCT]", "Merge></Merge>"),
("Modulo [MSBCT]", "Modulo Numbers=\"$1\">\n\t<Output TaskParameter=\"Result\" PropertyName=\"$2\" />\n</Modulo>"),
("Move [MSBCT]", "Move></Move>"),
- ("MRefBuilder [MSBCT]", "MRefBuilder\n\tAssemblies=\"${1:@(Assemblies)}\"\n\tConfigFile=\"$2\"\n\tIncludeInternal=\"$3\"\n\tOutputFile=\"$4\"\n\tReferences=\"${5:@(Reference)}\"\n\tNoInfoMessages=\"${6:False}\"\n\tNoWarnMessages=\"${7:False}\"\n\tSandcastleRoot=\"$8\" />"),
+ ("MRefBuilder [MSBCT]", "MRefBuilder\n\tAssemblies=\"${1:@(Assembly)}\"\n\tConfigFile=\"$2\"\n\tIncludeInternal=\"$3\"\n\tOutputFile=\"$4\"\n\tReferences=\"${5:@(Reference)}\"\n\tNoInfoMessages=\"${6:False}\"\n\tNoWarnMessages=\"${7:False}\"\n\tSandcastleRoot=\"$8\" />"),
("Multiple [MSBCT]", "Multiple Numbers=\"$1\">\n\t<Output TaskParameter=\"Result\" PropertyName=\"$2\" />\n</Multiple>"),
("NDoc [MSBCT]", "NDoc></NDoc>"),
("NUnit [MSBCT]", "NUnit></NUnit>"),
@@ -264,9 +264,9 @@ def on_query_completions(self, view, prefix, locations):
("XmlRead [MSBCT]", "XmlRead></XmlRead>"),
("XmlUpdate [MSBCT]", "XmlUpdate></XmlUpdate>"),
("Xslt [MSBCT]", "Xslt></Xslt>"),
- ("XslTransform [MSBCT]", "XslTransform\n\tArguments=\"$1\"\n\tOutputFile=\"$2\"\n\tXmlFile=\"$3\"\n\tXsltFiles=\"${4:@(XsltFiles)}\"\n\tNoInfoMessages=\"${5:False}\"\n\tNoWarnMessages=\"${6:False}\"\n\tSandcastleRoot=\"$7\" />"),
- ("Zip [MSBCT Simple]", "Zip\n\tFiles=\"${1:@(Files)}\"\n\tFlatten=\"${2:False}\"\n\tWorkingDirectory=\"$3\"\n\tZipFileName=\"$4\" />"),
- ("Zip [MSBCT Full]", "Zip\n\tComment=\"$1\"\n\tFiles=\"${2:@(Files)}\"\n\tEncryption=\"${3:None}\"\n\tFlatten=\"${4:False}\"\n\tPassword=\"$5\"\n\tWorkingDirectory=\"$6\"\n\tZipFileName=\"$7\"\n\tZipLevel=\"${8:6}\" />")
+ ("XslTransform [MSBCT]", "XslTransform\n\tArguments=\"$1\"\n\tOutputFile=\"$2\"\n\tXmlFile=\"$3\"\n\tXsltFiles=\"${4:@(XsltFile)}\"\n\tNoInfoMessages=\"${5:False}\"\n\tNoWarnMessages=\"${6:False}\"\n\tSandcastleRoot=\"$7\" />"),
+ ("Zip [MSBCT Simple]", "Zip\n\tFiles=\"${1:@(File)}\"\n\tFlatten=\"${2:False}\"\n\tWorkingDirectory=\"$3\"\n\tZipFileName=\"$4\" />"),
+ ("Zip [MSBCT Full]", "Zip\n\tComment=\"$1\"\n\tFiles=\"${2:@(File)}\"\n\tEncryption=\"${3:None}\"\n\tFlatten=\"${4:False}\"\n\tPassword=\"$5\"\n\tWorkingDirectory=\"$6\"\n\tZipFileName=\"$7\"\n\tZipLevel=\"${8:6}\" />")
])
completions = sorted(completions, key=lambda completion: completion[0])
return (completions, sublime.INHIBIT_WORD_COMPLETIONS)

0 comments on commit d5602ae

Please sign in to comment.