ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import assert from 'assert';
import { ModifierKeyEmitter } from '../../../../../base/browser/dom.js';
import { timeout } from '../../../../../base/common/async.js';
import { Event } from '../../../../../base/common/event.js';
import { Disposable, DisposableStore, toDisposable } from '../../../../../base/common/lifecycle.js';
import { URI } from '../../../../../base/common/uri.js';
import { mock } from '../../../../../base/test/common/mock.js';
import { runWithFakedTimers
ensureNoDisposablesAreLeakedInTestSuite
IAccessibilitySignalService
IMenu IMenuService
IDefaultAccountService
IEnvironmentService
IInstantiationService
ServiceCollection
IKeybindingService
MockKeybindingService
ILabelService
ILogService NullLogService
InMemoryStorageService IStorageService
ITelemetryService
NullTelemetryService
IWorkspaceContextService
CoreEditingCommands
EditOperation
Position
Range
Selection
Handler
MetadataConsts
CompletionItemKind CompletionItemProvider CompletionList CompletionTriggerKind EncodedTokenizationResult InlineCompletionsProvider IState TokenizationRegistry
ILanguageService
ILanguageConfigurationService
NullState
ITextModel
TextModel
IEditorWorkerService
ILanguageFeaturesService
LanguageFeaturesService
createTestCodeEditor ITestCodeEditor withAsyncTestCodeEditor
createModelServices createTextModel instantiateTextModel
InlineCompletionsController
InlineSuggestionsView
SnippetController2
getSnippetSuggestSupport setSnippetSuggestSupport
SuggestController
ISuggestMemoryService
LineContext SuggestModel
ISelectedSuggestion
model TextModel languageFeaturesService ILanguageFeaturesService ITestCodeEditor
storeService
editor model
serviceCollection
ILanguageFeaturesService languageFeaturesService
ITelemetryService NullTelemetryService
IStorageService storeService
IKeybindingService
ISuggestMemoryService
_serviceBrand
ILabelService
IWorkspaceContextService
IEnvironmentService
override isBuilt
override isExtensionDevelopment
ctrl editorSnippetController2 SnippetController2
editor
editorctrl
editorstoreService
editor
languageId
languageService ILanguageService
languageConfigurationService ILanguageConfigurationService
languageService id languageId
languageConfigurationServicelanguageId
TokenizationRegistrylanguageId
getInitialState IState NullState
tokenize
tokenizeEncoded line hasEOL state IState EncodedTokenizationResult
tokensArr
prevLanguageId
i i linelength i
languageId linei
encodedLanguageId languageServicelanguageIdCodeclanguageId
prevLanguageId languageId
tokensArri
tokensArrencodedLanguageId MetadataConsts
prevLanguageId languageId
tokens tokensArrlength
i i tokenslength i
tokensi tokensArri
tokens state
languageId
languageService ILanguageService
languageConfigurationService ILanguageConfigurationService
languageService id languageId
languageConfigurationServicelanguageId
assertAutoTrigger model TextModel offset expected message
pos modeloffset
editor model
editorpos
assertLineContexteditor expected message
editor
disposables DisposableStore
disposables
disposables
model
disposablesmodel
model
model
model
model
model
disposables
instantiationService disposables
outerMode disposablesinstantiationServiceOuterMode
disposablesinstantiationServiceInnerMode
model disposablesinstantiationService outerModelanguageId
model
model
model
model
model
model
model
disposables
model ITextModel position Position
wordUntil modelposition
positionlineNumber wordUntilstartColumn positionlineNumber wordUntilendColumn
alwaysEmptySupport CompletionItemProvider
_debugDisplayName
doc pos CompletionList
incomplete
suggestions
alwaysSomethingSupport CompletionItemProvider
_debugDisplayName
doc pos CompletionList
incomplete
suggestions
label docposword
kind CompletionItemKindProperty
insertText
range doc pos
disposables DisposableStore
model TextModel
languageFeaturesService
registry languageFeaturesServicecompletionProvider
disposables
model
disposablesmodel
disposables
model SuggestModel editor ITestCodeEditor
resolve reject
editor model languageFeaturesService
oracle editoraccessor accessorIInstantiationServiceSuggestModel editor
disposablesoracle
disposableseditor
oracle editor
err
err
event Event e
resolve reject
sub e
sub
e
err
err
err
sub
err
model
modelonDidTrigger
model auto
event
asserteventauto
modelonDidCancel
model
event
asserteventretrigger
modelonDidTrigger
model auto
event
asserteventauto
modelonDidTrigger
model auto
event
asserteventauto
disposablesregistry scheme alwaysEmptySupport
model
modelonDidCancel
model auto
event
asserteventretrigger
modelonDidSuggest
model auto
event
asserteventtriggerOptionsauto
asserteventisFrozen
asserteventcompletionModelitemslength
disposablesregistry scheme alwaysSomethingSupport
model editor
modelonDidSuggest
editor lineNumber column
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
first eventcompletionModelitems
assertfirstprovider alwaysSomethingSupport
disposablesregistry scheme
_debugDisplayName
doc pos CompletionList
incomplete
suggestions
label
kind CompletionItemKindProperty
insertText
range doc pos
model
model editor
modelonDidSuggest
model auto
event
modelonDidSuggest
editor lineNumber column
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
first eventcompletionModelitems
assertfirstcompletionlabel
modelonDidSuggest
editor lineNumber column
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
first eventcompletionModelitems
assertfirstcompletionlabel
disposablesregistry scheme
_debugDisplayName
doc pos CompletionList
incomplete
suggestions
label
kind CompletionItemKindProperty
insertText
range Rangepos pos
disposablesregistry scheme
_debugDisplayName
triggerCharacters
doc pos CompletionList
incomplete
suggestions
label
kind CompletionItemKindProperty
insertText
range Range
pos docposlineNumberposcolumn
pos
model
model editor
modelonDidSuggest
editor lineNumber column
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
first eventcompletionModelitems
assertfirstcompletionlabel
modelonDidSuggest
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
first eventcompletionModelitems
assertfirstcompletionlabel
modelonDidSuggest
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
first second eventcompletionModelitems
assertfirstcompletionlabel
assertsecondcompletionlabel
disposablesregistry scheme alwaysSomethingSupport
model editor
editor
editor lineNumber column
modelonDidSuggest
model auto
event
asserteventtriggerOptionsauto
asserteventisFrozen
asserteventcompletionModelitemslength
modelonDidCancel
editor HandlerType text
event
asserteventretrigger
disposablesregistry scheme alwaysSomethingSupport
model editor
editor
editor lineNumber column
modelonDidSuggest
model auto
event
asserteventtriggerOptionsauto
asserteventisFrozen
asserteventcompletionModelitemslength
modelonDidCancel
editor HandlerType text
event
asserteventretrigger
disposablesregistry scheme
_debugDisplayName
doc pos CompletionList
incomplete
suggestions
label
kind CompletionItemKindProperty
insertText
range Rangepos pos
model editor
editor
editor lineNumber column
modelonDidSuggest
model auto
event
asserteventtriggerOptionsauto
asserteventcompletionModelsize
asserteventcompletionModelitemslength
modelonDidCancel
editor HandlerType text
event
asserteventretrigger
disposablesregistry scheme
_debugDisplayName
doc pos CompletionList
incomplete
suggestions
label
kind CompletionItemKindProperty
insertText
range Rangepos pos
model editor
editor
editor lineNumber column
modelonDidSuggest
model auto
event
asserteventtriggerOptionsauto
asserteventcompletionModelsize
asserteventcompletionModelitemslength
modelonDidSuggest
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelsize
asserteventcompletionModelitemslength
triggerCharacter
disposablesregistry scheme
_debugDisplayName
triggerCharacters
doc pos context CompletionList
assertcontexttriggerKind CompletionTriggerKindTriggerCharacter
triggerCharacter contexttriggerCharacter
incomplete
suggestions
label
kind CompletionItemKindProperty
insertText
range Rangepos pos
model
model editor
modelonDidSuggest
editor lineNumber column
editor HandlerType text
event
asserttriggerCharacter
disposablesregistry scheme
_debugDisplayName
doc pos CompletionList
incomplete
suggestions
label
kind CompletionItemKindProperty
insertText
range Rangepos pos
label
kind CompletionItemKindProperty
insertText
range Rangepos pos
model
model editor
modelonDidSuggest
editor lineNumber column
editor HandlerType text
event
asserteventcompletionModelitemslength
asserteventcompletionModelitemscompletionlabel
modelonDidSuggest
editor EditOperation
event
asserteventcompletionModelitemslength
asserteventcompletionModelitemscompletionlabel
disposablesregistry scheme alwaysSomethingSupport
model editor
modelonDidSuggest
editor lineNumber column
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
first eventcompletionModelitems
assertfirstprovider alwaysSomethingSupport
modelonDidSuggest
editorCoreEditingCommandsDeleteLeft
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
first eventcompletionModelitems
assertfirstprovider alwaysSomethingSupport
disposablesregistry scheme
_debugDisplayName
doc pos CompletionList
incomplete
suggestions
label
kind CompletionItemKindProperty
insertText
range Rangepos pos
additionalTextEdits
text
range startLineNumber endLineNumber startColumn endColumn
model
sugget editor
item ISelectedSuggestion flags
item flags
ctrl TestCtrleditorTestCtrl TestCtrl
editorSnippetController2 SnippetController2
suggetonDidSuggest
editor lineNumber column
sugget auto
event
asserteventcompletionModelitemslength
first eventcompletionModelitems
assertfirstcompletionlabel
ctrl item first index model eventcompletionModel
assert
model
disposablesregistry scheme alwaysSomethingSupport
model editor
modelonDidSuggest
editor
editor
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
first eventcompletionModelitems
assertfirstprovider alwaysSomethingSupport
disposeA
disposeB
disposablesregistry scheme
_debugDisplayName
doc pos
incomplete
suggestions
kind CompletionItemKindFolder
label
insertText
sortText
range doc pos
disposeA
disposablesregistry scheme
_debugDisplayName
doc pos
incomplete
suggestions
kind CompletionItemKindFolder
label
insertText
sortText
range doc pos
disposeB
item
item
model editor
modelonDidSuggest
editor
editor
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
assertdisposeA
assertdisposeB
modelonDidSuggest
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
model
assertdisposeA
assertdisposeB
countA
countB
disposablesregistry scheme
_debugDisplayName
doc pos
countA
incomplete
suggestions
kind CompletionItemKindClass
label
insertText
range poslineNumber poscolumn
disposablesregistry scheme
_debugDisplayName
doc pos
countB
docposword
incomplete
suggestions
kind CompletionItemKindFolder
label
insertText
range doc pos
model editor
modelonDidSuggest
editor
editor
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
asserteventcompletionModelitemstextLabel
modelonDidSuggest
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
asserteventcompletionModelitemstextLabel
asserteventcompletionModelitemstextLabel
assertcountA
assertcountB
disposablesregistry scheme
_debugDisplayName
doc pos
suggestions
kind CompletionItemKindClass
label
insertText
range poslineNumber poscolumn poslineNumber poscolumn
disposablesregistry scheme
_debugDisplayName
triggerCharacters
doc pos
suggestions
kind CompletionItemKindClass
label
insertText
range poslineNumber poscolumn poslineNumber poscolumn
model editor
modelonDidSuggest
editor
editor
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
editor
modelonDidSuggest
editor
editor
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
disposablesregistry
_debugDisplayName
doc pos
word docpos
suggestions
kind CompletionItemKindText
label
insertText
range poslineNumber wordstartColumn poslineNumber wordendColumn
disposablesregistry scheme
_debugDisplayName
doc pos
suggestions
kind CompletionItemKindClass
label
insertText
range poslineNumber poslineNumber poscolumn
model editor
modelonDidSuggest
editor
editor
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
asserteventcompletionModelitemstextLabel
editor HandlerType text
modelonDidSuggest
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
asserteventcompletionModelitemstextLabel
requestCounts
disposablesregistry scheme
_debugDisplayName
doc pos
requestCounts
suggestions
kind CompletionItemKindText
label
insertText
range poslineNumber poslineNumber poscolumn
kind CompletionItemKindText
label
insertText
range poslineNumber poslineNumber poscolumn
disposablesregistry scheme
_debugDisplayName
triggerCharacters
doc pos ctx
requestCounts
ctxtriggerKind CompletionTriggerKindTriggerCharacter
suggestions
kind CompletionItemKindClass
label
insertText
range poslineNumber poslineNumber poscolumn
model editor
modelonDidSuggest
editor
editor
model auto
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
asserteventcompletionModelitemstextLabel
asserteventcompletionModelitemstextLabel
editor HandlerType text
modelonDidSuggest
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
asserteventcompletionModelitemstextLabel
asserteventcompletionModelitemstextLabel
assertrequestCounts
disposablesregistry scheme
_debugDisplayName
triggerCharacters
doc pos ctx
suggestions
label docposword
kind CompletionItemKindProperty
insertText
range doc pos
model editor
modelonDidSuggest
editor
editor
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventtriggerOptionstriggerCharacter
asserteventtriggerOptionstriggerKind
asserteventcompletionModelitemslength
modelonDidSuggest
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventtriggerOptionsrefilter
asserteventtriggerOptionstriggerCharacter
asserteventtriggerOptionstriggerKind CompletionTriggerKindTriggerCharacter
asserteventcompletionModelitemslength
modelonDidSuggest
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventtriggerOptionsrefilter
asserteventtriggerOptionstriggerCharacter
asserteventtriggerOptionstriggerKind CompletionTriggerKindTriggerCharacter
asserteventcompletionModelitemslength
snippetProvider CompletionItemProvider
_debugDisplayName
doc pos ctx
suggestions
label
kind CompletionItemKindSnippet
insertText
range doc pos
old snippetProvider
disposables
snippetProvider
old
disposablesregistry scheme
_debugDisplayName
triggerCharacters
doc pos ctx
suggestions
label
kind CompletionItemKindProperty
insertText
range doc pos
incomplete
model editor
modelonDidSuggest
editor
editor
editor HandlerType text
event
asserteventtriggerOptionsauto
asserteventtriggerOptionstriggerCharacter
asserteventtriggerOptionstriggerKind
asserteventcompletionModelitemslength
asserteventcompletionModelitemstextLabel
asserteventcompletionModelitemstextLabel
modelonDidSuggest
editor HandlerType text
event
asserteventtriggerOptionstriggerKind CompletionTriggerKindTriggerForIncompleteCompletions
asserteventtriggerOptionsauto
asserteventcompletionModelitemslength
asserteventcompletionModelitemstextLabel
asserteventcompletionModelitemstextLabel
disposablesregistry scheme alwaysSomethingSupport
inlineProvider InlineCompletionsProvider
items
disposableslanguageFeaturesServiceinlineCompletionsProvider scheme inlineProvider
suggestOracle editor
editor quickSuggestions comments strings other
suggestOracleonDidSuggest
editor lineNumber column
editor HandlerType text
suggestEvent
assertsuggestEventtriggerOptionsauto
disposablesregistry scheme alwaysSomethingSupport
suggestOracle editor
editor quickSuggestions comments strings other
suggestOracleonDidSuggest
editor lineNumber column
editor HandlerType text
suggestEvent
assertsuggestEventtriggerOptionsauto
assertsuggestEventcompletionModelitemslength
useFakeTimers
disposablesregistry scheme alwaysSomethingSupport
inlineProvider InlineCompletionsProvider
items
disposableslanguageFeaturesServiceinlineCompletionsProvider scheme inlineProvider
suggestOracle editor
editor
quickSuggestions comments strings other
inlineSuggest enabled
suggestOracleonDidSuggest
editor lineNumber column
editor HandlerType text
suggestEvent
assertsuggestEventtriggerOptionsauto
assertsuggestEventcompletionModelitemslength
useFakeTimers
disposablesregistry scheme alwaysSomethingSupport
suggestOracle editor
editor quickSuggestions
resolve reject
sub suggestOracle
sub
editor lineNumber column
editor HandlerType text
sub
useFakeTimers
disposablesregistry scheme alwaysSomethingSupport
inlineProvider InlineCompletionsProvider
items
disposableslanguageFeaturesServiceinlineCompletionsProvider scheme inlineProvider
suggestOracle editor
editor quickSuggestions
suggestOracleonDidSuggest
editor lineNumber column
editor HandlerType text
suggestEvent
assertsuggestEventtriggerOptionsauto
completionProvider CompletionItemProvider
_debugDisplayName
doc pos CompletionList
wordUntil docpos
incomplete
suggestions
label docposword
kind CompletionItemKindProperty
insertText
range poslineNumber wordUntilstartColumn poslineNumber wordUntilendColumn
text
inlineProvider InlineCompletionsProvider
suggestModel SuggestModel editor ITestCodeEditor
useFakeTimers
disposableStore
languageFeaturesService
disposableStorelanguageFeaturesServicecompletionProvider pattern completionProvider
disposableStorelanguageFeaturesServiceinlineCompletionsProvider pattern inlineProvider
serviceCollection
ILanguageFeaturesService languageFeaturesService
ITelemetryService NullTelemetryService
ILogService
IStorageService disposableStore
IKeybindingService
IEditorWorkerService
override
ISuggestMemoryService
override
override
IMenuService
override
override onDidChange EventNone
override
ILabelService
IWorkspaceContextService
IEnvironmentService
override isBuilt
override isExtensionDevelopment
IAccessibilitySignalService
override
override
IDefaultAccountService
override onDidChangeDefaultAccount EventNone
override
override
text serviceCollection editor _editorViewModel instantiationService
instantiationServiceInlineSuggestionsView
editorSnippetController2 SnippetController2
editorInlineCompletionsController InlineCompletionsController
editor
editor
quickSuggestions comments strings other
suggestModel disposableStore
editoraccessor accessorIInstantiationServiceSuggestModel editor
suggestModel editor
disposableStore
ModifierKeyEmitter
inlineProvider InlineCompletionsProvider
model pos
word modelpos
word items
items
insertText wordword
range poslineNumber wordstartColumn poslineNumber wordendColumn
inlineProvider suggestModel editor
didSuggest
sub suggestModel didSuggest
editor lineNumber column
editor HandlerType text
sub
assertdidSuggest
inlineProvider InlineCompletionsProvider
items
inlineProvider suggestModel editor
didSuggest
sub suggestModele
didSuggest
assertetriggerOptionsauto
editor lineNumber column
editor HandlerType text
sub
assertdidSuggest
inlineProvider InlineCompletionsProvider
model pos
word modelpos
word items
items
insertText wordword
range poslineNumber wordstartColumn poslineNumber wordendColumn
inlineProvider suggestModel editor
editor inlineSuggest enabled
didSuggest
sub suggestModele
didSuggest
assertetriggerOptionsauto
editor lineNumber column
editor HandlerType text
sub
assertdidSuggest
inlineProvider InlineCompletionsProvider
_model _pos _ctx token resolve
d token
d
items
inlineProvider suggestModel editor
didSuggest
sub suggestModel didSuggest
editor lineNumber column
editor HandlerType text
editor readOnly
sub
assertdidSuggest