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 { beforeEach, describe, expect, it } from 'vitest';
import { DocumentId } from '../../../../platform/inlineEdits/common/dataTypes/documentId';
import { LintOptions, LintOptionShowCode, LintOptionWarning } from '../../../../platform/inlineEdits/common/dataTypes/xtabPromptOptions';
import { IXtabHistoryEntry } from '../../../../platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker';
import { TestLanguageDiagnosticsService } from '../../../../platform/languages/common/testLanguageDiagnosticsService';
import { Position } from '../../../../util/vs/editor/common/core/position';
import { OffsetRange
StringText
ensureDependenciesAreSet
DiagnosticSeverity Range
LintErrors
CurrentDocument
diagnosticsService TestLanguageDiagnosticsService
fileUri DocumentId
documentId DocumentId
defaultLintOptions LintOptions
tagName
warnings LintOptionWarning
showCode LintOptionShowCode
maxLints
maxLineDistance
nRecentFiles
lines cursorLine cursorColumn CurrentDocument
content lines
content cursorLine cursorColumn
document CurrentDocument LintErrors
documentId
document
diagnosticsService
diagnosticsService
document
diagnosticsServicefileUri
lintErrors document
lintErrorsdefaultLintOptions
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
lintErrors document
result lintErrorsdefaultLintOptions
result
result
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
code value target Uri
source
lintErrors document
result lintErrorsdefaultLintOptions
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
code
lintErrors document
result lintErrorsdefaultLintOptions
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
code
lintErrors document
result lintErrorsdefaultLintOptions
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
optionsWithCode LintOptions
defaultLintOptions
showCode LintOptionShowCode
lintErrors document
result lintErrorsoptionsWithCode
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
optionsWithSurrounding LintOptions
defaultLintOptions
showCode LintOptionShowCode
lintErrors document
result lintErrorsoptionsWithSurrounding
result
result
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
optionsWithSurrounding LintOptions
defaultLintOptions
showCode LintOptionShowCode
lintErrors document
result lintErrorsoptionsWithSurrounding
result
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
optionsWithSurrounding LintOptions
defaultLintOptions
showCode LintOptionShowCode
lintErrors document
result lintErrorsoptionsWithSurrounding
result
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
message
range
severity DiagnosticSeverityWarning
optionsNoWarnings LintOptions
defaultLintOptions
warnings LintOptionWarning
lintErrors document
result lintErrorsoptionsNoWarnings
result
resultnot
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
message
range
severity DiagnosticSeverityWarning
optionsWithWarnings LintOptions
defaultLintOptions
warnings LintOptionWarning
lintErrors document
result lintErrorsoptionsWithWarnings
result
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
message
range
severity DiagnosticSeverityWarning
optionsYesIfNoErrors LintOptions
defaultLintOptions
warnings LintOptionWarning
lintErrors document
result lintErrorsoptionsYesIfNoErrors
result
resultnot
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityWarning
optionsYesIfNoErrors LintOptions
defaultLintOptions
warnings LintOptionWarning
lintErrors document
result lintErrorsoptionsYesIfNoErrors
result
lines
document lines
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
message
range
severity DiagnosticSeverityError
optionsSmallDistance LintOptions
defaultLintOptions
maxLineDistance
lintErrors document
result lintErrorsoptionsSmallDistance
result
resultnot
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
message
range
severity DiagnosticSeverityError
message
range
severity DiagnosticSeverityError
optionsMaxLints LintOptions
defaultLintOptions
maxLints
lintErrors document
result lintErrorsoptionsMaxLints
errorCount result length
errorCount
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
message
range
severity DiagnosticSeverityError
message
range
severity DiagnosticSeverityError
lintErrors document
result lintErrorsdefaultLintOptions
closeIndex result
farIndex result
mediumIndex result
closeIndexfarIndex
closeIndexmediumIndex
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
optionsWithSurrounding LintOptions
defaultLintOptions
showCode LintOptionShowCode
lintErrors document
result lintErrorsoptionsWithSurrounding
result
result
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
optionsWithSurrounding LintOptions
defaultLintOptions
showCode LintOptionShowCode
lintErrors document
result lintErrorsoptionsWithSurrounding
result
result
result
result
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
optionsWithCode LintOptions
defaultLintOptions
showCode LintOptionShowCode
lintErrors document
result lintErrorsoptionsWithCode
result
result
result
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
optionsCustomTag LintOptions
defaultLintOptions
tagName
lintErrors document
result lintErrorsoptionsCustomTag
result
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityWarning
lintErrors document
result lintErrorsdefaultLintOptions
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
message
range
severity DiagnosticSeverityError
lintErrors document
result lintErrorsdefaultLintOptions
closeIndex result
farIndex result
closeIndexfarIndex
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
code value target Uri
lintErrors document
result lintErrorsdefaultLintOptions
result
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
code value target Uri
source
message
range
severity DiagnosticSeverityWarning
code value target Uri
source
options LintOptions
tagName
warnings LintOptionWarning
showCode LintOptionShowCode
maxLints
maxLineDistance
nRecentFiles
lintErrors document
result lintErrorsoptions
expected
resultexpected
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
code value target Uri
source
message
range
severity DiagnosticSeverityWarning
code value target Uri
source
options LintOptions
tagName
warnings LintOptionWarning
showCode LintOptionShowCode
maxLints
maxLineDistance
nRecentFiles
lintErrors document
result lintErrorsoptions
expected
resultexpected
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
optionsWithCode LintOptions
defaultLintOptions
showCode LintOptionShowCode
lintErrors document
result lintErrorsoptionsWithCode
result
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
optionsWithSurrounding LintOptions
defaultLintOptions
showCode LintOptionShowCode
lintErrors document
result lintErrorsoptionsWithSurrounding
result
document
lintErrors document
lintErrorsdefaultLintOptions
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
lintErrors document
lintErrorsdefaultLintOptions
lintErrorsdefaultLintOptions
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
lintErrors document
lintErrorsdefaultLintOptions
lintErrorsdefaultLintOptions
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
optionsNoCode LintOptions
defaultLintOptions
showCode LintOptionShowCode
lintErrors document
lintErrorsoptionsNoCode
lintErrorsoptionsNoCode
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
optionsWithCode LintOptions
defaultLintOptions
showCode LintOptionShowCode
lintErrors document
lintErrorsoptionsWithCode
lintErrorsoptionsWithCode
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
optionsWithSurrounding LintOptions
defaultLintOptions
showCode LintOptionShowCode
lintErrors document
lintErrorsoptionsWithSurrounding
lintErrorsoptionsWithSurrounding
lintErrorsoptionsWithSurrounding
lintErrorsoptionsWithSurrounding
lintErrorsoptionsWithSurrounding
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
optionsWithCode LintOptions
defaultLintOptions
showCode LintOptionShowCode
lintErrors document
lintErrorsoptionsWithCode
lintErrorsoptionsWithCode
lintErrorsoptionsWithCode
lintErrorsoptionsWithCode
lintErrorsoptionsWithCode
lintErrorsoptionsWithCode
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
optionsWithSurrounding LintOptions
defaultLintOptions
showCode LintOptionShowCode
lintErrors document
lintErrorsoptionsWithSurrounding
lintErrorsoptionsWithSurrounding
lintErrorsoptionsWithSurrounding
lintErrorsoptionsWithSurrounding
lintErrorsoptionsWithSurrounding
lintErrorsoptionsWithSurrounding
lintErrorsoptionsWithSurrounding
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
message
range
severity DiagnosticSeverityError
optionsWithCode LintOptions
defaultLintOptions
showCode LintOptionShowCode
lintErrors document
lintErrorsoptionsWithCode
lintErrorsoptionsWithCode
lintErrorsoptionsWithCode
lintErrorsoptionsWithCode
lintErrorsoptionsWithCode
document
diagnosticsServicefileUri
lintErrors document
lintErrorsdefaultLintOptions
lintErrorsdefaultLintOptions
lintErrorsdefaultLintOptions
lintErrorsdefaultLintOptions
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
message
range
severity DiagnosticSeverityError
optionsMaxLints LintOptions
defaultLintOptions
showCode LintOptionShowCode
maxLints
lintErrors document
lintErrorsoptionsMaxLints
lintErrorsoptionsMaxLints
lintErrorsoptionsMaxLints
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityError
lintErrors document
result lintErrorsdefaultLintOptions
result
resultnot
document
diagnosticsServicefileUri
message
range
severity DiagnosticSeverityInformation
message
range
severity DiagnosticSeverityHint
lintErrors document
result lintErrorsdefaultLintOptions
result
result
otherFileId DocumentId
otherFileUri otherFileId
thirdFileId DocumentId
thirdFileUri thirdFileId
docId DocumentId IXtabHistoryEntry
kind
docId
ordinal
visibleRanges
documentContent
document CurrentDocument history IXtabHistoryEntry LintErrors
documentId
document
diagnosticsService
history
document
diagnosticsServicefileUri
message range severity DiagnosticSeverityError
diagnosticsServiceotherFileUri
message range severity DiagnosticSeverityError
history IXtabHistoryEntry otherFileId
lintErrors document history
result lintErrors defaultLintOptions nRecentFiles
result
result
document
diagnosticsServicefileUri
message range severity DiagnosticSeverityError
diagnosticsServiceotherFileUri
message range severity DiagnosticSeverityError
history IXtabHistoryEntry otherFileId
lintErrors document history
result lintErrorsdefaultLintOptions
result
resultnot
document
diagnosticsServiceotherFileUri
message range severity DiagnosticSeverityError
history IXtabHistoryEntry otherFileId
lintErrors document history
result lintErrors defaultLintOptions nRecentFiles
resultnot
document
diagnosticsServicefileUri
message range severity DiagnosticSeverityError
history IXtabHistoryEntry documentId
lintErrors document history
result lintErrors defaultLintOptions nRecentFiles
errorCount result length
errorCount
document
diagnosticsServiceotherFileUri
message range severity DiagnosticSeverityError
diagnosticsServicethirdFileUri
message range severity DiagnosticSeverityError
history IXtabHistoryEntry
otherFileId
thirdFileId
lintErrors document history
result lintErrors defaultLintOptions nRecentFiles
result
resultnot
document
diagnosticsServicefileUri
diagnosticsServiceotherFileUri
message range severity DiagnosticSeverityError
diagnosticsServicethirdFileUri
message range severity DiagnosticSeverityError
history IXtabHistoryEntry
otherFileId
thirdFileId
lintErrors document history
result lintErrors defaultLintOptions nRecentFiles
thirdIdx result
otherIdx result
thirdIdxotherIdx
document
diagnosticsServicefileUri
message range severity DiagnosticSeverityError
diagnosticsServiceotherFileUri
message range severity DiagnosticSeverityError
history IXtabHistoryEntry otherFileId
lintErrors document history
result lintErrors defaultLintOptions nRecentFiles
currentIdx result
otherIdx result
currentIdxotherIdx
document
diagnosticsServicefileUri
message range severity DiagnosticSeverityError
message range severity DiagnosticSeverityError
diagnosticsServiceotherFileUri
message range severity DiagnosticSeverityError
message range severity DiagnosticSeverityError
history IXtabHistoryEntry otherFileId
lintErrors document history
result lintErrors defaultLintOptions maxLints nRecentFiles
result
result
result
resultnot
document
diagnosticsServiceotherFileUri
message range severity DiagnosticSeverityError
message range severity DiagnosticSeverityWarning
history IXtabHistoryEntry otherFileId
lintErrors document history
result lintErrors
defaultLintOptions
warnings LintOptionWarning
nRecentFiles
result
resultnot
document
diagnosticsServiceotherFileUri
message range severity DiagnosticSeverityError
history IXtabHistoryEntry
otherFileId
otherFileId
lintErrors document history
result lintErrors defaultLintOptions nRecentFiles
errorCount result length
errorCount
document
diagnosticsServicefileUri
message range severity DiagnosticSeverityError
lintErrors document
result lintErrors defaultLintOptions nRecentFiles
result
document
diagnosticsServicefileUri
message range severity DiagnosticSeverityError
diagnosticsServiceotherFileUri
message range severity DiagnosticSeverityError
history IXtabHistoryEntry otherFileId
lintErrors document history
result lintErrors
defaultLintOptions
showCode LintOptionShowCode
nRecentFiles
result
result
currentLineCount result length
currentLineCount