From 41e9f2ec9028cb9c233fe2df3b17f3cb269ee4ce Mon Sep 17 00:00:00 2001 From: Tami Takamiya Date: Wed, 21 Aug 2024 12:45:37 -0400 Subject: [PATCH] Disable Enhanced Context in VS Code (#1517) --- src/features/lightspeed/inlineSuggestions.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/features/lightspeed/inlineSuggestions.ts b/src/features/lightspeed/inlineSuggestions.ts index 9ff3f4ad4..074e166ed 100644 --- a/src/features/lightspeed/inlineSuggestions.ts +++ b/src/features/lightspeed/inlineSuggestions.ts @@ -29,7 +29,6 @@ import { IAnsibleFileType } from "../../interfaces/lightspeed"; import { getAnsibleFileType } from "../utils/ansible"; import { LightSpeedServiceSettings } from "../../interfaces/extensionSettings"; import { SuggestionDisplayed } from "./inlineSuggestion/suggestionDisplayed"; -import { getAdditionalContext } from "./inlineSuggestion/additionalContext"; let inlineSuggestionData: InlineSuggestionEvent = {}; let inlineSuggestionDisplayTime: Date; @@ -740,18 +739,6 @@ async function requestInlineSuggest( completionData.model = userProvidedModel; } - if (rhUserHasSeat) { - const additionalContext = getAdditionalContext( - parsedAnsibleDocument, - documentDirPath, - documentFilePath, - ansibleFileType, - vscode.workspace.workspaceFolders, - ); - if (completionData.metadata) { - completionData.metadata.additionalContext = additionalContext; - } - } console.log( `[inline-suggestions] ${getCurrentUTCDateTime().toISOString()}: Completion request sent to Ansible Lightspeed.`, );