Change:
import { EditOperation } from 'vs/editor/common/core/editOperation'; import { Position } from 'vs/editor/common/core/position'; import { Range } from 'vs/editor/common/core/range'; <del> import { ITextModel } from 'vs/editor/common/model'; </del> <ins> import { CursorChangeReason } from 'vs/editor/common/cursorEvents'; import { LanguageFeatureRegistry } from 'vs/editor/common/languageFeatureRegistry'; </ins> import { Command, InlineCompletion, InlineCompletionContext, InlineCompletions, InlineCompletionsProvider, InlineCompletionTriggerKind } from 'vs/editor/common/languages'; <del> import { BaseGhostTextWidgetModel, GhostText, GhostTextReplacement, GhostTextWidgetModel } from 'vs/editor/contrib/inlineCompletions/browser/ghostText'; import { ICommandService } from 'vs/platform/commands/common/commands'; import { inlineSuggestCommitId } from 'vs/editor/contrib/inlineCompletions/browser/consts'; import { SharedInlineCompletionCache } from 'vs/editor/contrib/inlineCompletions/browser/ghostTextModel'; import { inlineCompletionToGhostText, NormalizedInlineCompletion } from 'vs/editor/contrib/inlineCompletions/browser/inlineCompletionToGhostText'; </del> import { ILanguageConfigurationService } from 'vs/editor/common/languages/languageConfigurationRegistry'; <ins> import { ITextModel } from 'vs/editor/common/model'; </ins> import { fixBracketsInLine } from 'vs/editor/common/model/bracketPairsTextModelPart/fixBrackets'; <del> import { LanguageFeatureRegistry } from 'vs/editor/common/languageFeatureRegistry'; import { ILanguageFeaturesService } from 'vs/editor/common/services/languageFeatures'; </del> import { IFeatureDebounceInformation, ILanguageFeatureDebounceService } from 'vs/editor/common/services/languageFeatureDebounce'; <del> import { SnippetParser } from 'vs/editor/contrib/snippet/browser/snippetParser'; import { SnippetController2 } from 'vs/editor/contrib/snippet/browser/snippetController2'; import { assertNever } from 'vs/base/common/assert'; import { matchesSubString } from 'vs/base/common/filters'; </del> <ins> import { ILanguageFeaturesService } from 'vs/editor/common/services/languageFeatures'; import { inlineSuggestCommitId } from 'vs/editor/contrib/inlineCompletions/browser/consts'; import { BaseGhostTextWidgetModel, GhostText, GhostTextReplacement, GhostTextWidgetModel } from 'vs/editor/contrib/inlineCompletions/browser/ghostText'; import { SharedInlineCompletionCache } from 'vs/editor/contrib/inlineCompletions/browser/ghostTextModel'; import { inlineCompletionToGhostText, NormalizedInlineCompletion } from 'vs/editor/contrib/inlineCompletions/browser/inlineCompletionToGhostText'; </ins> import { getReadonlyEmptyArray } from 'vs/editor/contrib/inlineCompletions/browser/utils'; <ins> import { SnippetController2 } from 'vs/editor/contrib/snippet/browser/snippetController2'; import { SnippetParser, Text } from 'vs/editor/contrib/snippet/browser/snippetParser'; import { ICommandService } from 'vs/platform/commands/common/commands'; </ins> import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; <del> import { CursorChangeReason } from 'vs/editor/common/cursorEvents'; </del> export class InlineCompletionsModel extends Disposable implements GhostTextWidgetModel { protected readonly onDidChangeEmitter = new Emitter<void>();

Discussion:
Testing when accepting the next word in a python file, the entire line is accepted, whereas typescript will only accept the next word.