297 questions
How to bypass the default language service when opening the .sql file
Vasu Bansal
20
Reputation points
I am trying to associate my language service when opening .sql file but it is connecting the default lang service also showing these tool menu and I don't want to show these tool menu i have my custom tool menu for that
but with .pls etc i am able to attach my lang service and also my custom tool menu is visible
This is my .pkgdef file for reference
// Package Registration
[$RootKey$\Packages\{YOUR_PACKAGE_GUID}]
@="My Custom Extension"
"CompanyName"="My Company"
"ProductName"="My Extension Name"
"ProductVersion"="1.0.0.0"
"InprocServer32"="$WinDir$\SYSTEM32\MSCOREE.DLL"
"Class"="MyNamespace.MyVSPackage"
"Assembly"="MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=YOUR_PUBLIC_KEY_TOKEN"
"AllowsBackgroundLoad"=dword:00000001
// Autoload package on Server Explorer Tool Window UIContext (Optional)
[$RootKey$\AutoLoadPackages\{74946827-37a0-11d2-a273-00c04f8ef4ff}]
"{YOUR_PACKAGE_GUID}"=dword:00000002
// Menus (if applicable)
[$RootKey$\Menus]
"{YOUR_PACKAGE_GUID}"=",Menus.ctmenu,1"
// UI Context Rule
[$RootKey$\UIContextRules\{YOUR_UI_CONTEXT_GUID}]
@="MyEditorContext"
"Expression"="MyEditorActive"
"MyEditorActive"="ActiveEditorContentType:MyContentType"
// Installed Products
[$RootKey$\InstalledProducts\My Extension Name]
"Package"="{YOUR_PACKAGE_GUID}"
"UseInterface"=dword:00000001
"UseRegNameAsSplashName"=dword:00000001
// Tools Options Pages (if applicable)
[$RootKey$\ToolsOptionsPages\My Extension Category]
@="My Extension Category"
"Package"="{YOUR_PACKAGE_GUID}"
[$RootKey$\ToolsOptionsPages\My Extension Category\My Options Page]
@="My Options Page"
"Package"="{YOUR_PACKAGE_GUID}"
"Page"="{YOUR_OPTIONS_PAGE_GUID}"
"Sort"="1"
// OutputWindow (if applicable)
[$RootKey$\OutputWindow\{YOUR_OUTPUT_WINDOW_GUID}]
@="My Extension Output"
"Name"="My Extension Output"
"Package"="{YOUR_PACKAGE_GUID}"
// PL/SQL Language Service
[$RootKey$\Languages\File Extensions\.customext1]
@="{YOUR_LANG_SERVICE_GUID}"
"Name"="My Custom Language"
[$RootKey$\Languages\File Extensions\.customext2]
@="{YOUR_LANG_SERVICE_GUID}"
"Name"="My Custom Language"
[$RootKey$\Languages\Language Services\My Custom Language]
@="{YOUR_LANG_SERVICE_GUID}"
"Extensions"=".customext1;.customext2"
"Package"="{YOUR_PACKAGE_GUID}"
"CodeSense"=dword:00000001
"CodeSenseDelay"=dword:000001f4
"MatchBraces"=dword:00000001
"MatchBracesAtCaret"=dword:00000001
"QuickInfo"=dword:00000001
"ShowCompletion"=dword:00000001
"ShowMatchingBrace"=dword:00000001
[$RootKey$\Services\{YOUR_LANG_SERVICE_GUID}]
@="{YOUR_PACKAGE_GUID}"
"Name"="My Custom Language"
// Editor Factory
[$RootKey$\Editors\{YOUR_EDITOR_FACTORY_GUID}]
@="My Custom Editor Factory"
"Package"= "{YOUR_PACKAGE_GUID}"
[$RootKey$\Editors\{YOUR_EDITOR_FACTORY_GUID}\Extensions]
"*"=dword:0000000a
".customext1"=dword:00000028
".customext2"=dword:00000028
[$RootKey$\Editors\{YOUR_EDITOR_FACTORY_GUID}\LogicalViews]
"{7651a700-06e5-11d1-8ebd-00a0c90f26ea}"=""
.Net, C#
Developer technologies Visual Studio Extensions
Sign in to answer