зеркало из https://github.com/microsoft/PTVS.git
set default to true (#8025)
This commit is contained in:
Родитель
4dcb59996b
Коммит
d009e1bc3b
|
@ -38,6 +38,8 @@ namespace Microsoft.PythonTools.Editor {
|
|||
var langPrefs = new LANGPREFERENCES[1];
|
||||
langPrefs[0].guidLang = languageGuid;
|
||||
ErrorHandler.ThrowOnFailure(_textMgr.GetUserPreferences(null, null, langPrefs, null));
|
||||
langPrefs[0].fLineNumbers = 1;
|
||||
ErrorHandler.ThrowOnFailure(_textMgr.SetUserPreferences(null, null, langPrefs, null));
|
||||
_preferences = langPrefs[0];
|
||||
|
||||
var guid = typeof(IVsTextManagerEvents2).GUID;
|
||||
|
@ -103,6 +105,7 @@ namespace Microsoft.PythonTools.Editor {
|
|||
_preferences.fAutoListParams = langPrefs[0].fAutoListParams;
|
||||
_preferences.fHideAdvancedAutoListMembers = langPrefs[0].fHideAdvancedAutoListMembers;
|
||||
_preferences.fDropdownBar = langPrefs[0].fDropdownBar;
|
||||
_preferences.fLineNumbers = langPrefs[0].fLineNumbers;
|
||||
}
|
||||
return VSConstants.S_OK;
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ namespace Microsoft.PythonTools {
|
|||
[ProvideOptionPage(typeof(PythonDebuggingOptionsPage), "Python Tools", "Debugging", 115, 125, true)]
|
||||
[ProvideOptionPage(typeof(PythonCondaOptionsPage), "Python Tools", "Conda", 115, 132, true)]
|
||||
[Guid(CommonGuidList.guidPythonToolsPkgString)] // our packages GUID
|
||||
[ProvideLanguageService(typeof(PythonLanguageInfo), PythonConstants.LanguageName, 106, RequestStockColors = true, ShowSmartIndent = true, ShowCompletion = false, DefaultToInsertSpaces = true, HideAdvancedMembersByDefault = true, EnableAdvancedMembersOption = true, ShowDropDownOptions = false)]
|
||||
[ProvideLanguageService(typeof(PythonLanguageInfo), PythonConstants.LanguageName, 106, RequestStockColors = true, EnableLineNumbers = true, ShowSmartIndent = true, ShowCompletion = false, DefaultToInsertSpaces = true, HideAdvancedMembersByDefault = true, EnableAdvancedMembersOption = true, ShowDropDownOptions = false)]
|
||||
[ProvideLanguageExtension(typeof(PythonLanguageInfo), PythonConstants.FileExtension)]
|
||||
[ProvideLanguageExtension(typeof(PythonLanguageInfo), PythonConstants.WindowsFileExtension)]
|
||||
[ProvideLanguageExtension(typeof(PythonLanguageInfo), PythonConstants.StubFileExtension)]
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
"name": "ptvs",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@pylance/pylance": "2024.9.2"
|
||||
"@pylance/pylance": "2024.10.1"
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче