fix class property order issue for the PromptsService class

This commit is contained in:
Oleg Solomko
2025-04-02 09:00:19 -07:00
parent a0a58191db
commit 7ec70cbc51
3 changed files with 3 additions and 5 deletions

View File

@@ -93,7 +93,6 @@ const ignored = new Set([
'vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.ts',
'vs/editor/contrib/placeholderText/browser/placeholderTextContribution.ts',
'vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.ts',
'vs/workbench/contrib/chat/common/promptSyntax/parsers/basePromptParser.ts',
'vs/workbench/contrib/files/browser/views/openEditorsView.ts',
'vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.ts',
'vs/workbench/contrib/chat/browser/contrib/chatImplicitContext.ts',
@@ -119,8 +118,6 @@ const ignored = new Set([
'vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.ts',
'vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.ts',
'vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.ts',
'vs/workbench/contrib/chat/common/promptSyntax/contentProviders/textModelContentsProvider.ts',
'vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.ts',
'vs/workbench/contrib/search/common/cacheState.ts',
'vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.ts',
'vs/workbench/contrib/search/browser/anythingQuickAccess.ts',

View File

@@ -87,7 +87,6 @@ const ignored = new Set([
'vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.ts',
'vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.ts',
'vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.ts',
'vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.ts',
'vs/workbench/contrib/search/common/cacheState.ts',
'vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.ts',
'vs/workbench/contrib/search/browser/anythingQuickAccess.ts',

View File

@@ -28,7 +28,7 @@ export class PromptsService extends Disposable implements IPromptsService {
/**
* Prompt files locator utility.
*/
private readonly fileLocator = this.initService.createInstance(PromptFilesLocator);
private readonly fileLocator: PromptFilesLocator;
constructor(
@IInstantiationService private readonly initService: IInstantiationService,
@@ -36,6 +36,8 @@ export class PromptsService extends Disposable implements IPromptsService {
) {
super();
this.fileLocator = this.initService.createInstance(PromptFilesLocator);
// the factory function below creates a new prompt parser object
// for the provided model, if no active non-disposed parser exists
this.cache = this._register(