"}
{"_id":"doc-en-vscode-d4c1658344c2381df277e21beeeeb83d429eff02c3ceaa5be77ed08978cd160d","title":"","text":"previewManager.activePreview?.zoomOut(); }));
return vscode.Disposable.from(...disposables); }"}
{"_id":"doc-en-vscode-daf44df7e28dd5ce5795a5e868745a704eeb4d20e64b5ce9b235d0ccc2ad321f","title":"","text":"
${vscode.l10n.t(\"An error occurred while loading the video file.\")}
"}
{"_id":"doc-en-vscode-7aa3d9adf11077640a807974d7d43fb0c73bc0b5ff0801ab37bd7ab0565e63eb","title":"","text":"italic: register('italic', 0xeb0d), jersey: register('jersey', 0xeb0e), json: register('json', 0xeb0f),
bracket: register('bracket', 0xeb0f), kebabVertical: register('kebab-vertical', 0xeb10), key: register('key', 0xeb11), law: register('law', 0xeb12),"}
{"_id":"doc-en-vscode-85d6ab755ac40dc0adf9a9b07d4dba3c7165c03bd13ef2c3e28b7a238a348b85","title":"","text":"graphLine: register('graph-line', 0xebe2), graphScatter: register('graph-scatter', 0xebe3), pieChart: register('pie-chart', 0xebe4),
bracket: register('bracket', 0xebe4), bracketDot: register('bracket-dot', 0xebe5), bracketError: register('bracket-error', 0xebe6), lockSmall: register('lock-small', 0xebe7),"}
{"_id":"doc-en-vscode-fa2248dcaf3ad21bba4c0f8b6ca6c184fd827809358f6944f65d162a906e3d0e","title":"","text":"} /**
* A regex that extracts the link suffix which contains line and column information. The link suffix * must terminate at the end of line. */ const linkSuffixRegexEol = new Lazy(() => generateLinkSuffixRegex(true)); /** * A regex that extracts the link suffix which contains line and column information. */
const linkSuffixRegexEol = new Lazy(() => { const linkSuffixRegex = new Lazy(() => generateLinkSuffixRegex(false)); function generateLinkSuffixRegex(eolOnly: boolean) { let ri = 0; let ci = 0; function l(): string {"}
{"_id":"doc-en-vscode-838f10777ecac702c26e2f84e0ba35b2b03806e1ad3abc14d120112869812213","title":"","text":"return `(?
d+)`; }
const eolSuffix = eolOnly ? '$' : ''; // The comments in the regex below use real strings/numbers for better readability, here's // the legend: // - Path = foo"}
{"_id":"doc-en-vscode-d74cef3b68de1bf26612e2a3669fc3e8ad799f755b6950de5b30a2229a229754","title":"","text":"// foo:339 // foo:339:12 // foo 339
// foo 339:12 [#140780] // foo 339:12 [#140780] // \"foo\",339 // \"foo\",339:12
`(?::| |['\"],)${l()}(:${c()})?$`, // The quotes below are optional [#171652] // \"foo\", line 339 [#40468] `(?::| |['\"],)${l()}(:${c()})?` + eolSuffix, // The quotes below are optional [#171652] // \"foo\", line 339 [#40468] // \"foo\", line 339, col 12 // \"foo\", line 339, column 12 // \"foo\":line 339"}
{"_id":"doc-en-vscode-2fbc1c3fe680cdbae94cde47f0777dcc577bf3e3097bdabaa7bb3a2d385be39e","title":"","text":"// \"foo\" on line 339, col 12 // \"foo\" on line 339, column 12 // \"foo\" line 339 column 12
`['\"]?(?:,? |: ?| on )line ${l()}(,? col(?:umn)? ${c()})?$`, // foo(339) // foo(339,12) // foo(339, 12) // foo (339) // ... // foo: (339) // ... `:? ?[[(]${l()}(?:, ?${c()})?[])]$`, ]; const suffixClause = lineAndColumnRegexClauses // Join all clauses together .join('|') // Convert spaces to allow the non-breaking space char (ascii 160) .replace(/ /g, `[${'u00A0'} ]`); return new RegExp(`(${suffixClause})`); }); const linkSuffixRegex = new Lazy(() => { let ri = 0; let ci = 0; function l(): string { return `(?d+)`; } function c(): string { return `(?d+)`; } const lineAndColumnRegexClauses = [ // foo:339 // foo:339:12 // foo 339 // foo 339:12 [#140780] // \"foo\",339 // \"foo\",339:12 `(?::| |['\"],)${l()}(:${c()})?`, // The quotes below are optional [#171652] // foo, line 339 [#40468] // foo, line 339, col 12 // foo, line 339, column 12 // \"foo\":line 339 // \"foo\":line 339, col 12 // \"foo\":line 339, column 12 // \"foo\": line 339 // \"foo\": line 339, col 12 // \"foo\": line 339, column 12 // \"foo\" on line 339 // \"foo\" on line 339, col 12 // \"foo\" on line 339, column 12 // \"foo\" line 339 column 12 `['\"]?(?:,? |: ?| on )line ${l()}(,? col(?:umn)? ${c()})?`,
// \"foo\", line 339, character 12 [#171880] // \"foo\", line 339, characters 12-13 [#171880] // \"foo\", lines 339-340 [#171880] `['\"]?(?:,? |: ?| on )lines? ${l()}(?:-d+)?(?:,? (?:col(?:umn)?|characters?) ${c()}(?:-d+)?)?` + eolSuffix, // foo(339) // foo(339,12) // foo(339, 12)"}
{"_id":"doc-en-vscode-64229af32684a43bf7257f9fd9aeb99dfe045d0b522487ad4105436e702f6489","title":"","text":"// ... // foo: (339) // ...
`:? ?[[(]${l()}(?:, ?${c()})?[])]`, `:? ?[[(]${l()}(?:, ?${c()})?[])]` + eolSuffix, ]; const suffixClause = lineAndColumnRegexClauses"}
{"_id":"doc-en-vscode-4a9baf236ed989d74b200f0f613719638502d9dcea5f620a41c996863d91b0d8","title":"","text":"// Convert spaces to allow the non-breaking space char (ascii 160) .replace(/ /g, `[${'u00A0'} ]`);
return new RegExp(`(${suffixClause})`, 'g'); }); return new RegExp(`(${suffixClause})`, eolOnly ? undefined : 'g'); } /** * Removes the optional link suffix which contains line and column information."}
{"_id":"doc-en-vscode-c7e166c618007c6ebba1713e3a8d5b12618a6417d54759298119e9afaf15e375","title":"","text":"{ link: 'foo: [339,12]', prefix: undefined, suffix: ': [339,12]', hasRow: true, hasCol: true }, { link: 'foo: [339, 12]', prefix: undefined, suffix: ': [339, 12]', hasRow: true, hasCol: true },
// OCaml-style { link: '\"foo\", line 339, character 12', prefix: '\"', suffix: '\", line 339, character 12', hasRow: true, hasCol: true }, { link: '\"foo\", line 339, characters 12-13', prefix: '\"', suffix: '\", line 339, characters 12-13', hasRow: true, hasCol: true }, { link: '\"foo\", lines 339-340', prefix: '\"', suffix: '\", lines 339-340', hasRow: true, hasCol: false }, // Non-breaking space { link: 'foou00A0339:12', prefix: undefined, suffix: 'u00A0339:12', hasRow: true, hasCol: true }, { link: '\"foo\" on line 339,u00A0column 12', prefix: '\"', suffix: '\" on line 339,u00A0column 12', hasRow: true, hasCol: true },"}
{"_id":"doc-en-vscode-93850b640d2a84826d36110864bd7b6956f1fac823e6ff4c36c8a037a15d9cf3","title":"","text":"/* Icons */ .monaco-workbench > .notifications-toasts .codicon.codicon-error {
color: var(--vscode-notificationsErrorIcon-foreground); color: var(--vscode-notificationsErrorIcon-foreground) !important; } .monaco-workbench > .notifications-toasts .codicon.codicon-warning {
color: var(--vscode-notificationsWarningIcon-foreground); color: var(--vscode-notificationsWarningIcon-foreground) !important; } .monaco-workbench > .notifications-toasts .codicon.codicon-info {
color: var(--vscode-notificationsInfoIcon-foreground); color: var(--vscode-notificationsInfoIcon-foreground) !important; }"}
{"_id":"doc-en-vscode-04aad68971841084628b195deb949cee28b1c348a6a70220edf5a94960994b71","title":"","text":"\"vscode-proxy-agent\": \"^0.12.0\", \"vscode-regexpp\": \"^3.1.0\", \"vscode-textmate\": \"8.0.0\",
\"xterm\": \"5.2.0-beta.19\", \"xterm\": \"5.2.0-beta.20\", \"xterm-addon-canvas\": \"0.4.0-beta.7\", \"xterm-addon-search\": \"0.11.0\", \"xterm-addon-serialize\": \"0.9.0\", \"xterm-addon-unicode11\": \"0.5.0\", \"xterm-addon-webgl\": \"0.15.0-beta.4\",
\"xterm-headless\": \"5.2.0-beta.19\", \"xterm-headless\": \"5.2.0-beta.20\", \"yauzl\": \"^2.9.2\", \"yazl\": \"^2.4.3\" },"}
{"_id":"doc-en-vscode-4e680871b2996bf3c380daca101f89c205bc6e3f133204bba9c57307aac51957","title":"","text":"\"tas-client-umd\": \"0.1.6\", \"vscode-oniguruma\": \"1.7.0\", \"vscode-textmate\": \"8.0.0\",
\"xterm\": \"5.2.0-beta.19\", \"xterm\": \"5.2.0-beta.20\", \"xterm-addon-canvas\": \"0.4.0-beta.7\", \"xterm-addon-search\": \"0.11.0\", \"xterm-addon-unicode11\": \"0.5.0\","}
{"_id":"doc-en-vscode-987941462df9acfaeafd7100ada53f3ad6085f435c2351b31d113c415a6cbcd6","title":"","text":"resolved \"https://registry.yarnpkg.com/xterm-addon-webgl/-/xterm-addon-webgl-0.15.0-beta.4.tgz#d03a98e446372a5dbb7d92075d1f125eec23b030\" integrity sha512-W9N0+5i3trQhgBOHDsnNiBbBiJpleFenY668wWaZ9GlvWseCTnjnWis1kfnM9WASDh/0+7aOjWrD089o+QeHGQ==
xterm@5.2.0-beta.19: version \"5.2.0-beta.19\" resolved \"https://registry.yarnpkg.com/xterm/-/xterm-5.2.0-beta.19.tgz#b3fd2eda3d9aa2672abaf03e864fafe64269c8a0\" integrity sha512-3U+NYHjnIdUQf+MXiitmoFAcBOaLFHid3R/LzzvELjMwQx227EFk+3OmQjkBt7eH/IR+A4VlP5aPGmgriyLtGQ== xterm@5.2.0-beta.20: version \"5.2.0-beta.20\" resolved \"https://registry.yarnpkg.com/xterm/-/xterm-5.2.0-beta.20.tgz#52ed300d7077ce394f7656655ad07d90f96c6c64\" integrity sha512-UIbFYmUPNTOSYIhAt/2pJ9AF7nc8RxT2k2bBUZOER4VdaeA89FH3xcNC5/3OysPkn6QS9INcYS2dX5gM2RnChg== "}
{"_id":"doc-en-vscode-cbdaf7ff264e679897a1bc6c6cb107751e973b787d0e75212d0898b36166452c","title":"","text":"resolved \"https://registry.yarnpkg.com/xterm-addon-webgl/-/xterm-addon-webgl-0.15.0-beta.4.tgz#d03a98e446372a5dbb7d92075d1f125eec23b030\" integrity sha512-W9N0+5i3trQhgBOHDsnNiBbBiJpleFenY668wWaZ9GlvWseCTnjnWis1kfnM9WASDh/0+7aOjWrD089o+QeHGQ==
xterm-headless@5.2.0-beta.19: version \"5.2.0-beta.19\" resolved \"https://registry.yarnpkg.com/xterm-headless/-/xterm-headless-5.2.0-beta.19.tgz#7603ffe76d42882bf72820791f8d2ba2074d7ace\" integrity sha512-MKaObf5tdeEPXfRyhWkvNbiJ4oE57rL4eDV68iXm/0yYHgW3oQf3QO1d4SMGIxWYVx70AulY6EP2VswuInXImg== xterm@5.2.0-beta.19: version \"5.2.0-beta.19\" resolved \"https://registry.yarnpkg.com/xterm/-/xterm-5.2.0-beta.19.tgz#b3fd2eda3d9aa2672abaf03e864fafe64269c8a0\" integrity sha512-3U+NYHjnIdUQf+MXiitmoFAcBOaLFHid3R/LzzvELjMwQx227EFk+3OmQjkBt7eH/IR+A4VlP5aPGmgriyLtGQ== xterm-headless@5.2.0-beta.20: version \"5.2.0-beta.20\" resolved \"https://registry.yarnpkg.com/xterm-headless/-/xterm-headless-5.2.0-beta.20.tgz#5827ac8977b5ae3246cc217dccdd6eaeac01b66e\" integrity sha512-D1y4CIRvA8Izo7tAWShbyKTnxVteAy+N1j9Q+xvzcVxsGA4DLa8U7Gr2KXs3e/cjgkDcVHbbYCn7iWEyNTFvWw== xterm@5.2.0-beta.20: version \"5.2.0-beta.20\" resolved \"https://registry.yarnpkg.com/xterm/-/xterm-5.2.0-beta.20.tgz#52ed300d7077ce394f7656655ad07d90f96c6c64\" integrity sha512-UIbFYmUPNTOSYIhAt/2pJ9AF7nc8RxT2k2bBUZOER4VdaeA89FH3xcNC5/3OysPkn6QS9INcYS2dX5gM2RnChg== yallist@^4.0.0: version \"4.0.0\""}
{"_id":"doc-en-vscode-36102639b96dfb80a28c69f9efc5d04915655fabc0a8c3766685a66bbcb44b71","title":"","text":"resolved \"https://registry.yarnpkg.com/xterm-addon-webgl/-/xterm-addon-webgl-0.15.0-beta.4.tgz#d03a98e446372a5dbb7d92075d1f125eec23b030\" integrity sha512-W9N0+5i3trQhgBOHDsnNiBbBiJpleFenY668wWaZ9GlvWseCTnjnWis1kfnM9WASDh/0+7aOjWrD089o+QeHGQ==
xterm-headless@5.2.0-beta.19: version \"5.2.0-beta.19\" resolved \"https://registry.yarnpkg.com/xterm-headless/-/xterm-headless-5.2.0-beta.19.tgz#7603ffe76d42882bf72820791f8d2ba2074d7ace\" integrity sha512-MKaObf5tdeEPXfRyhWkvNbiJ4oE57rL4eDV68iXm/0yYHgW3oQf3QO1d4SMGIxWYVx70AulY6EP2VswuInXImg== xterm@5.2.0-beta.19: version \"5.2.0-beta.19\" resolved \"https://registry.yarnpkg.com/xterm/-/xterm-5.2.0-beta.19.tgz#b3fd2eda3d9aa2672abaf03e864fafe64269c8a0\" integrity sha512-3U+NYHjnIdUQf+MXiitmoFAcBOaLFHid3R/LzzvELjMwQx227EFk+3OmQjkBt7eH/IR+A4VlP5aPGmgriyLtGQ== xterm-headless@5.2.0-beta.20: version \"5.2.0-beta.20\" resolved \"https://registry.yarnpkg.com/xterm-headless/-/xterm-headless-5.2.0-beta.20.tgz#5827ac8977b5ae3246cc217dccdd6eaeac01b66e\" integrity sha512-D1y4CIRvA8Izo7tAWShbyKTnxVteAy+N1j9Q+xvzcVxsGA4DLa8U7Gr2KXs3e/cjgkDcVHbbYCn7iWEyNTFvWw== xterm@5.2.0-beta.20: version \"5.2.0-beta.20\" resolved \"https://registry.yarnpkg.com/xterm/-/xterm-5.2.0-beta.20.tgz#52ed300d7077ce394f7656655ad07d90f96c6c64\" integrity sha512-UIbFYmUPNTOSYIhAt/2pJ9AF7nc8RxT2k2bBUZOER4VdaeA89FH3xcNC5/3OysPkn6QS9INcYS2dX5gM2RnChg== y18n@^3.2.1: version \"3.2.2\""}
{"_id":"doc-en-vscode-e89c6a49cb25467f2046dd86778c63f48d0a53cb5e015d0a3e5b1078f4a25ad4","title":"","text":"primary: KeyMod.Alt | KeyCode.F1, weight: KeybindingWeight.WorkbenchContrib, linux: {
primary: KeyMod.Shift | KeyCode.F1, secondary: [KeyMod.Shift | KeyCode.F1] }, win: { primary: KeyMod.Shift | KeyCode.F1, secondary: [KeyMod.Shift | KeyCode.F1] primary: KeyMod.Alt | KeyMod.Shift | KeyCode.F1, secondary: [KeyMod.Alt | KeyCode.F1] }, when: TerminalContextKeys.focus }"}
{"_id":"doc-en-vscode-b054f69127e29d662a95e5b20f15bf967ae1a9d65886b55ee7e4100e57020090","title":"","text":"TerminalCommandId.SelectNextPageSuggestion, TerminalCommandId.AcceptSelectedSuggestion, TerminalCommandId.HideSuggestWidget,
TerminalCommandId.ShowTerminalAccessibilityHelp, 'editor.action.toggleTabFocusMode', 'notifications.hideList', 'notifications.hideToasts',"}
{"_id":"doc-en-vscode-0af901288d386c4d4f53a7d703cd05f30589a87a31eac818a4468b53534c475b","title":"","text":"type: 'string', enum: ['always', 'never', 'whenTriggerCharacter', 'whenQuickSuggestion'], enumDescriptions: [
nls.localize('suggest.insertMode.always', \"Always activate the suggest widget when triggering IntelliSense automatically.\"), nls.localize('suggest.insertMode.never', \"Never activate the suggest widget when triggering IntelliSense automatically.\"), nls.localize('suggest.insertMode.whenTriggerCharacter', \"Activate the suggest widget only when triggering IntelliSense from a trigger character.\"), nls.localize('suggest.insertMode.whenQuickSuggestion', \"Activate the suggest widget only when triggering IntelliSense as you type.\"), nls.localize('suggest.insertMode.always', \"Always select a suggestion when automatically triggering IntelliSense.\"), nls.localize('suggest.insertMode.never', \"Never select a suggestion when automatically triggering IntelliSense.\"), nls.localize('suggest.insertMode.whenTriggerCharacter', \"Select a suggestion only when triggering IntelliSense from a trigger character.\"), nls.localize('suggest.insertMode.whenQuickSuggestion', \"Select a suggestion only when triggering IntelliSense as you type.\"), ], default: defaults.selectionMode,
markdownDescription: nls.localize('suggest.selectionMode', \"Controls whether the suggest widget becomes active when triggered via quick suggest or trigger characters. Note that the widget is always active when explicitly invoked, e.g via `Ctrl+Space`.\") markdownDescription: nls.localize('suggest.selectionMode', \"Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.\") }, 'editor.suggest.snippetsPreventQuickSuggestions': { type: 'boolean',"}
{"_id":"doc-en-vscode-1927d3ccad168524a50c8f55f4518150caecabcf83ed6f963a4acaf9aa73a269","title":"","text":"this.filterText = this.getFilterText(completionContext.line, tsEntry.insertText); if (completionContext.isMemberCompletion && completionContext.dotAccessorContext && !(this.insertText instanceof vscode.SnippetString)) {
this.filterText = completionContext.dotAccessorContext.text + (this.insertText || typeof this.label === 'string' ? this.label : this.label.label); this.filterText = completionContext.dotAccessorContext.text + (this.insertText || this.textLabel); if (!this.range) { const replacementRange = this.getFuzzyWordRange(); if (replacementRange) {"}
{"_id":"doc-en-vscode-86fa8324eb239803f48f11d077cf302c818a4e3cdefad277faf563cb2eb9541e","title":"","text":"}); }
return new vscode.CompletionList(newItems); return new vscode.CompletionList(newItems, true); }); } }"}
{"_id":"doc-en-vscode-743ed1495a7c002ef21ec70ff99b30df704faaff91db4338c5bf08e4c8ccf93a","title":"","text":"import { NotebookTextModel } from 'vs/workbench/contrib/notebook/common/model/notebookTextModel'; import { ICellDto2, INotebookEditorModel, INotebookLoadOptions, IResolvedNotebookEditorModel, NotebookCellsChangeType, NotebookData } from 'vs/workbench/contrib/notebook/common/notebookCommon'; import { INotebookSerializer, INotebookService, SimpleNotebookProviderInfo } from 'vs/workbench/contrib/notebook/common/notebookService';
import { ILifecycleService } from 'vs/workbench/services/lifecycle/common/lifecycle'; import { IFileWorkingCopyManager } from 'vs/workbench/services/workingCopy/common/fileWorkingCopyManager'; import { IStoredFileWorkingCopy, IStoredFileWorkingCopyModel, IStoredFileWorkingCopyModelContentChangedEvent, IStoredFileWorkingCopyModelFactory, IStoredFileWorkingCopySaveEvent, StoredFileWorkingCopyState } from 'vs/workbench/services/workingCopy/common/storedFileWorkingCopy'; import { IUntitledFileWorkingCopy, IUntitledFileWorkingCopyModel, IUntitledFileWorkingCopyModelContentChangedEvent, IUntitledFileWorkingCopyModelFactory } from 'vs/workbench/services/workingCopy/common/untitledFileWorkingCopy';"}
{"_id":"doc-en-vscode-d03e742739736bb614ad89fcff20882d6018fb5c6eab060728af3f65acd71f55","title":"","text":"private readonly _hasAssociatedFilePath: boolean, readonly viewType: string, private readonly _workingCopyManager: IFileWorkingCopyManager
, @IFileService private readonly _fileService: IFileService @IFileService private readonly _fileService: IFileService, @ILifecycleService lifecycleService: ILifecycleService ) { super(); if (this.viewType === 'interactive') { lifecycleService.onBeforeShutdown(async e => e.veto(this.onBeforeShutdown(), 'veto.InteractiveWindow')); } } private async onBeforeShutdown() { if (this._workingCopy?.isDirty()) { await this._workingCopy.save(); } return false; } override dispose(): void {"}
{"_id":"doc-en-vscode-a6987ea1d64a1f5a2532dff79cad53f417bb3ede57d0ce2da98b6d3174b82543","title":"","text":"if (uri !== undefined) { // Launch desktop client if currently in web let target = `${env.uriScheme}://vscode.git/clone?url=${encodeURIComponent(uri)}`; if (env.uiKind === UIKind.Web) { let target = `${env.uriScheme}://vscode.git/clone?url=${encodeURIComponent(uri)}`; if (ref !== undefined) { target += `&ref=${encodeURIComponent(ref)}`; } return Uri.parse(target); } // If already in desktop client, directly clone // If already in desktop client but in a remote window, we need to force a new window // so that the git extension can access the local filesystem for cloning if (env.remoteName !== undefined) { target += `&windowId=_blank`; return Uri.parse(target); } // Otherwise, directly clone void this.clone(uri, undefined, { ref: ref }); } }"}
{"_id":"doc-en-vscode-0da10ffef4e5f9f5c21f086278b7c6b5e7af00db7f48113dbd4d0e81235d84d1","title":"","text":"if (configuration.enableTsServerTracing) { if (tsServerTraceDirectory) { this._logger.info(`<${kind}> Trace directory: ${tsServerTraceDirectory}`); this._logger.info(`<${kind}> Trace directory: ${tsServerTraceDirectory.fsPath}`); } else { this._logger.error(`<${kind}> Could not create trace directory`); }"}
{"_id":"doc-en-vscode-4e2c9756286e3e2cc9762112d21c7d8eb1c64215bbea50e077a568c7cb554434","title":"","text":"if (configuration.enableTsServerTracing && !isWeb()) { tsServerTraceDirectory = this._logDirectoryProvider.getNewLogDirectory(); if (tsServerTraceDirectory) { args.push('--traceDirectory', tsServerTraceDirectory.path); args.push('--traceDirectory', tsServerTraceDirectory.fsPath); } }"}
{"_id":"doc-en-vscode-b5a2b68ebcd7053458140bd6519bc72c1ae98356409e653c2623405cbf9c0648","title":"","text":"const languageContributions = findNodeAtLocation(tree, ['contributes', 'languages']); languageContributions?.children?.forEach(child => { const id = findNodeAtLocation(child, ['id']); if (id && id.type === 'string') { const configuration = findNodeAtLocation(child, ['configuration']); if (id && id.type === 'string' && configuration && configuration.type === 'string') { activationEvents.add(`onLanguage:${id.value}`); } });"}
{"_id":"doc-en-vscode-0367c9fd0d0f8af09c85a6810028ad4bc7c71e16166505ac44eabd27bc035f6b","title":"","text":"}, activationEventsGenerator: (languageContributions, result) => { for (const languageContribution of languageContributions) { if (languageContribution.id) { if (languageContribution.id && languageContribution.configuration) { result.push(`onLanguage:${languageContribution.id}`); } }"}
{"_id":"doc-en-vscode-bf93d70278b9273898f6dcef59d859ff3ce7677ee334d5afd09de4004be5d60e","title":"","text":"const parent = this._options.parentSession; if (parent) { toDispose.add(parent.onDidEndAdapter(() => { // copy the parent repl and get a new detached repl for this child if (!this.hasSeparateRepl()) { // copy the parent repl and get a new detached repl for this child, and // remove its parent, if it's still running if (!this.hasSeparateRepl() && this.raw?.isInShutdown === false) { this.repl = this.repl.clone(); replListener.value = this.repl.onDidChangeElements(() => this._onDidChangeREPLElements.fire()); this.parentSession = undefined; } this.parentSession = undefined; })); } }"}
{"_id":"doc-en-vscode-bcf6cbdd05e6bf341f322c68219e7b545c083018dde80e10bb3417017fc37240","title":"","text":"this.debugAdapter.onRequest(request => this.dispatchRequest(request)); } get isInShutdown() { return this.inShutdown; } get onDidExitAdapter(): Event { return this._onDidExitAdapter.event; }"}
{"_id":"doc-en-vscode-93582fb2857f6a71b5b15d024e0432f95c6063ab9deadbb6595879461a73ae5c","title":"","text":"if (typeof raw.sourceReference === 'number' && raw.sourceReference > 0) { return URI.from({ scheme: DEBUG_SCHEME, path, path: path?.replace(/^/+/g, '/'), // #174054 query: `session=${sessionId}&ref=${raw.sourceReference}` }); }"}
{"_id":"doc-en-vscode-d81a6dd02eac22c5714199434077955f017ac850b1fb28468897e7c442ae5029","title":"","text":"const newWithProfile = nls.localize('newWithProfile', 'The Create New Terminal (With Profile) ({0}) command allows for easy terminal creation using a specific profile.'); const newWithProfileNoKb = nls.localize('newWithProfileNoKb', 'The Create New Terminal (With Profile) command allows for easy terminal creation using a specific profile and is currently not triggerable by a keybinding.'); const accessibilitySettings = nls.localize('accessibilitySettings', 'Access accessibility settings such as `terminal.integrated.tabFocusMode` via the Preferences: Open Accessibility Settings command.'); const commandPrompt = nls.localize('commandPromptMigration', \"Consider using powershell instead of command prompt for an improved experience\"); class AccessibilityHelpWidget extends Widget implements ITerminalWidget { readonly id = 'help'; private _container: HTMLElement | undefined;"}
{"_id":"doc-en-vscode-3a92ab84c71eae5e5ceffb2f4b7f0eab5b92631b9ddc0ace96e848e1c14bd070","title":"","text":"private readonly _markdownRenderer: MarkdownRenderer; constructor( instance: ITerminalInstance, private readonly _instance: ITerminalInstance, @IKeybindingService private readonly _keybindingService: IKeybindingService, @IInstantiationService instantiationService: IInstantiationService, @IOpenerService private readonly _openerService: IOpenerService ) { super(); this._hasShellIntegration = instance.xterm?.shellIntegration.status === ShellIntegrationStatus.VSCode; this._hasShellIntegration = _instance.xterm?.shellIntegration.status === ShellIntegrationStatus.VSCode; this._domNode = createFastDomNode(document.createElement('div')); this._contentDomNode = createFastDomNode(document.createElement('div')); this._contentDomNode.setClassName('terminal-accessibility-help');"}
{"_id":"doc-en-vscode-9d2002f45b229436351578b1d1098c7368abd211a1da7586cb10c15fc0a0a931","title":"","text":"this._register(dom.addStandardDisposableListener(this._contentDomNode.domNode, 'keydown', (e) => { if (e.keyCode === KeyCode.Escape) { this.hide(); instance.focus(); _instance.focus(); } })); this._register(instance.onDidFocus(() => this.hide())); this._register(_instance.onDidFocus(() => this.hide())); this._markdownRenderer = this._register(instantiationService.createInstance(MarkdownRenderer, {})); }"}
{"_id":"doc-en-vscode-f2ff2dddbec1d31712c06fe608587bb3685299b56ba9ab68b1cf7a67fa8441c0","title":"","text":"private _buildContent(): void { const content = []; content.push(this._descriptionForCommand(TerminalCommandId.FocusAccessibleBuffer, focusAccessibleBufferNls, focusAccessibleBufferNoKb)); if (this._instance.shellType === WindowsShellType.CommandPrompt) { content.push(commandPrompt); } if (this._hasShellIntegration) { content.push(shellIntegration); content.push('- ' + this._descriptionForCommand(TerminalCommandId.RunRecentCommand, runRecentCommand, runRecentCommandNoKb) + 'n- ' + this._descriptionForCommand(TerminalCommandId.GoToRecentDirectory, goToRecent, goToRecentNoKb));"}
{"_id":"doc-en-vscode-58945a2112ba6d15f5840bae6f644458abcea58995604020426e312cfddc594c","title":"","text":"const dismiss = nls.localize('dismiss', \"You can dismiss this dialog by pressing Escape or focusing elsewhere.\"); const openDetectedLink = nls.localize('openDetectedLink', 'The Open Detected Link ({0}) command enables screen readers to easily open links found in the terminal.'); const openDetectedLinkNoKb = nls.localize('openDetectedLinkNoKb', 'The Open Detected Link command enables screen readers to easily open links found in the terminal and is currently not triggerable by a keybinding.'); const newWithProfile = nls.localize('newWithProfile', 'The Create New Terminal (With Profile) ({0}) command allows for easy terminal creation using a specific profile.'); const newWithProfileNoKb = nls.localize('newWithProfileNoKb', 'The Create New Terminal (With Profile) command command allows for easy terminal creation using a specific profile and is currently not triggerable by a keybinding.'); const accessibilitySettings = nls.localize('accessibilitySettings', 'Access accessibility settings such as `terminal.integrated.tabFocusMode` via the Preferences: Open Accessibility Settings command.'); class AccessibilityHelpWidget extends Widget implements ITerminalWidget { readonly id = 'help';"}
{"_id":"doc-en-vscode-324d2e451a670d271998f12213eae62a72c87c87560283751bffea7ac0c75335","title":"","text":"content.push('- ' + this._descriptionForCommand(TerminalCommandId.RunRecentCommand, runRecentCommand, runRecentCommandNoKb) + 'n- ' + this._descriptionForCommand(TerminalCommandId.GoToRecentDirectory, goToRecent, goToRecentNoKb)); } content.push(this._descriptionForCommand(TerminalCommandId.OpenDetectedLink, openDetectedLink, openDetectedLinkNoKb)); content.push(this._descriptionForCommand(TerminalCommandId.NewWithProfile, newWithProfile, newWithProfileNoKb)); content.push(accessibilitySettings); content.push(readMoreLink, dismiss); const element = renderElementAsMarkdown(this._markdownRenderer, this._openerService, content.join('nn'), this._register(new DisposableStore())); const anchorElements = element.querySelectorAll('a');"}
{"_id":"doc-en-vscode-3fc132c40639be9de7acfd4ec71548cca0d5bcc3c9f66ff9049baf44552fa2c9","title":"","text":".traceback.wordWrap span { white-space: pre-wrap; } .output > .scrollable { .output .scrollable { overflow-y: scroll; max-height: var(--notebook-cell-output-max-height); border: var(--vscode-editorWidget-border);"}
{"_id":"doc-en-vscode-a6d2cfcbe59353de1425c1aae7c74cba3d9daf2f4562761470a7a8b9a4783eb5","title":"","text":"} function scrollableArrayOfString(id: string, buffer: string[], container: HTMLElement, trustHtml: boolean) { container.classList.add('scrollable'); const scrollableDiv = document.createElement('div'); scrollableDiv.classList.add('scrollable'); if (buffer.length > 5000) { container.appendChild(generateViewMoreElement(id, false)); } const div = document.createElement('div'); container.appendChild(div); div.appendChild(handleANSIOutput(buffer.slice(0, 5000).join('n'), trustHtml)); container.appendChild(scrollableDiv); scrollableDiv.appendChild(handleANSIOutput(buffer.slice(0, 5000).join('n'), trustHtml)); } export function insertOutput(id: string, outputs: string[], linesLimit: number, scrollable: boolean, container: HTMLElement, trustHtml: boolean) {"}
{"_id":"doc-en-vscode-a496df927a59b4e7b68d87132ab14a1775356385fe9aa554f2b2498d4d8f63b8","title":"","text":"storageId: 'workbench.explorer.views.state', icon: explorerViewIcon, alwaysUseContainerInfo: true, hideIfEmpty: true, order: 0, openCommandActionDescriptor: { id: VIEWLET_ID,"}
{"_id":"doc-en-vscode-635495ca396b526a54311a9c758d41b78bc3a8f5823d4d43549de35e55636295","title":"","text":"} }; function scrollWillGoToParent(event: WheelEvent) { let scrollTimeout: any /* NodeJS.Timeout */ | undefined; let scrolledElement: Element | undefined; function flagRecentlyScrolled(node: Element) { scrolledElement = node; node.setAttribute('recentlyScrolled', 'true'); clearTimeout(scrollTimeout); scrollTimeout = setTimeout(() => { scrolledElement?.removeAttribute('recentlyScrolled'); }, 300); } function eventTargetShouldHandleScroll(event: WheelEvent) { for (let node = event.target as Node | null; node; node = node.parentNode) { if (!(node instanceof Element) || node.id === 'container' || node.classList.contains('cell_container') || node.classList.contains('markup') || node.classList.contains('output_container')) { return false; } if (node.hasAttribute('recentlyScrolled') && scrolledElement === node) { flagRecentlyScrolled(node); return true; } // scroll up if (event.deltaY < 0 && node.scrollTop > 0) { // there is still some content to scroll flagRecentlyScrolled(node); return true; }"}
{"_id":"doc-en-vscode-71c52a126e22a782475b4c24bffe3b941fb05840dcde759aff97bcfcf57bfe12","title":"","text":"continue; } flagRecentlyScrolled(node); return true; } }"}
{"_id":"doc-en-vscode-3b59681b9922192daa4eebee3d7562575052f2d7073e4f3c205dd1f3f29e1046","title":"","text":"} const handleWheel = (event: WheelEvent & { wheelDeltaX?: number; wheelDeltaY?: number; wheelDelta?: number }) => { if (event.defaultPrevented || scrollWillGoToParent(event)) { if (event.defaultPrevented || eventTargetShouldHandleScroll(event)) { return; } postNotebookMessage('did-scroll-wheel', {"}
{"_id":"doc-en-vscode-64c844d5624118189173de521f5ccaa26eb18c80e4e40f40cca346d12f8ed0c8","title":"","text":"} if (node.hasAttribute('recentlyScrolled')) { if (lastTimeScrolled && Date.now() - lastTimeScrolled > 300) { if (lastTimeScrolled && Date.now() - lastTimeScrolled > 400) { // it has been a while since we actually scrolled // if scroll velocity increases, it's likely a new scroll event if (!!previousDelta && deltaY < 0 && deltaY < previousDelta - 2) { // if scroll velocity increases significantly, it's likely a new scroll event if (!!previousDelta && deltaY < 0 && deltaY < previousDelta - 8) { clearTimeout(scrollTimeout); scrolledElement?.removeAttribute('recentlyScrolled'); return false; } else if (!!previousDelta && deltaY > 0 && deltaY > previousDelta + 2) { } else if (!!previousDelta && deltaY > 0 && deltaY > previousDelta + 8) { clearTimeout(scrollTimeout); scrolledElement?.removeAttribute('recentlyScrolled'); return false;"}
{"_id":"doc-en-vscode-fde9adc357e2c717f7e689d3e971de6f5d349833f5b1603817f17c8f571bfe2e","title":"","text":"private _tabFocusTerminal: boolean = false; private _tabFocusEditor: boolean = false; private readonly _onDidChangeTabFocus = new Emitter(); public readonly onDidChangeTabFocus: Event = this._onDidChangeTabFocus.event; private readonly _onDidChangeTabFocus = new Emitter(); public readonly onDidChangeTabFocus: Event = this._onDidChangeTabFocus.event; public getTabFocusMode(context: TabFocusContext): boolean { return context === TabFocusContext.Terminal ? this._tabFocusTerminal : this._tabFocusEditor; } public setTabFocusMode(tabFocusMode: boolean, context: TabFocusContext): void { if ((context === TabFocusContext.Terminal && this._tabFocusTerminal === tabFocusMode) || (context === TabFocusContext.Editor && this._tabFocusEditor === tabFocusMode)) { return; } if (context === TabFocusContext.Terminal) { this._tabFocusTerminal = tabFocusMode; } else { this._tabFocusEditor = tabFocusMode; } this._onDidChangeTabFocus.fire(this._tabFocusTerminal); this._onDidChangeTabFocus.fire(); } }"}
{"_id":"doc-en-vscode-d06c905bbafc0618cc255e4fc9c7b45c2f29f4a791815a08a9f37511a51ae2e0","title":"","text":"private readonly languageElement = this._register(new MutableDisposable()); private readonly metadataElement = this._register(new MutableDisposable()); private readonly currentProblemStatus: ShowCurrentMarkerInStatusbarContribution = this._register(this.instantiationService.createInstance(ShowCurrentMarkerInStatusbarContribution)); private _previousViewContext: 'terminal' | 'editor' | undefined; private readonly state = new State(); private readonly activeEditorListeners = this._register(new DisposableStore()); private readonly delayedRender = this._register(new MutableDisposable());"}
{"_id":"doc-en-vscode-f707fd00cc8d4842d3257ad34327da4e27413cbb6c6d1f1300a4cf6594293a70","title":"","text":"this._register(this.textFileService.untitled.onDidChangeEncoding(model => this.onResourceEncodingChange(model.resource))); this._register(this.textFileService.files.onDidChangeEncoding(model => this.onResourceEncodingChange((model.resource)))); this._register(Event.runAndSubscribe(TabFocus.onDidChangeTabFocus, () => this.onTabFocusModeChange())); const viewKey = new Set(); viewKey.add('focusedView'); this._register(this.contextKeyService.onDidChangeContext((c) => { if (c.affectsSome(viewKey)) { const terminalFocus = this.contextKeyService.getContextKeyValue('focusedView') === 'terminal'; const context = terminalFocus ? 'terminal' : 'editor'; if (this._previousViewContext === context) { return; } this._previousViewContext = context; this.onTabFocusModeChange(); } })); } private registerCommands(): void {"}
{"_id":"doc-en-vscode-3055ad44f7eb9a19cc25aea2431c7d8c2b0a9917c90cf10ef83147e3d1ba03d8","title":"","text":"import { Schemas } from 'vs/base/common/network'; import { TabFocus, TabFocusContext } from 'vs/editor/browser/config/tabFocus'; import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey'; import { ILabelService } from 'vs/platform/label/common/label'; import { TerminalSettingId } from 'vs/platform/terminal/common/terminal'; import { IWorkbenchContribution } from 'vs/workbench/common/contributions';"}
{"_id":"doc-en-vscode-36cd6812d2d9edbc285f794dd554cc10654205aaddee0e29b0b1dfd9b81e9547","title":"","text":"@ITerminalService terminalService: ITerminalService, @ITerminalEditorService terminalEditorService: ITerminalEditorService, @ITerminalGroupService terminalGroupService: ITerminalGroupService, @IConfigurationService configurationService: IConfigurationService, @IContextKeyService contextKeyService: IContextKeyService @IConfigurationService configurationService: IConfigurationService ) { super();"}
{"_id":"doc-en-vscode-c2ce0397ec5c6d6287affc13340af71fe6f0ba7f56787850785381dc590bca68","title":"","text":"} }); const viewKey = new Set(); viewKey.add('focusedView'); TabFocus.setTabFocusMode(configurationService.getValue('editor.tabFocusMode'), TabFocusContext.Editor); TabFocus.setTabFocusMode(configurationService.getValue(TerminalSettingId.TabFocusMode), TabFocusContext.Terminal); this._register(contextKeyService.onDidChangeContext((c) => { if (c.affectsSome(viewKey)) { if (contextKeyService.getContextKeyValue('focusedView') === 'terminal') { TabFocus.setTabFocusMode(configurationService.getValue(TerminalSettingId.TabFocusMode), TabFocusContext.Terminal); } else { TabFocus.setTabFocusMode(configurationService.getValue('editor.tabFocusMode'), TabFocusContext.Editor); } } })); } }"}
{"_id":"doc-en-vscode-e7ea7586170cb9a256be8365f20a5d7a8595f165c961e329ceb4f31c3168280d","title":"","text":"switch (changeType) { case ChangeType.Add: audioCueService.playAudioCue(AudioCue.diffLineInserted, true); break; case ChangeType.Delete: audioCueService.playAudioCue(AudioCue.diffLineDeleted, true); break; case ChangeType.Modify: audioCueService.playAudioCue(AudioCue.diffLineModified, true); break; } }"}
{"_id":"doc-en-vscode-eacc8a76793d7ea1aecece3932050b8b30a9fc51db2488015e8402bb94bafc6f","title":"","text":"const sound = this.sounds.get(url); if (sound) { sound.volume = this.getVolumeInPercent() / 100; sound.currentTime = 0; await sound.play(); } else { const playedSound = await playAudio(url, this.getVolumeInPercent() / 100);"}
{"_id":"doc-en-vscode-888f39ea49bab4394093ee4ef388e321a86c09caa46d7f62ad74873555f44cdd","title":"","text":"function areLanguageDiagnosticSettingsEqual(currentSettings: LanguageDiagnosticSettings, newSettings: LanguageDiagnosticSettings): boolean { return currentSettings.validate === newSettings.validate && currentSettings.enableSuggestions && currentSettings.enableSuggestions; && currentSettings.enableSuggestions === newSettings.enableSuggestions; } class DiagnosticSettings {"}
{"_id":"doc-en-vscode-ca8620e5a4384c905ea8c918ea5743db82e22d19ee7afdadfd9d55da90e52ec4","title":"","text":"import { CancellationToken } from 'vs/base/common/cancellation'; import { FuzzyScore } from 'vs/base/common/filters'; import { Iterable } from 'vs/base/common/iterator'; import { RefCountedDisposable } from 'vs/base/common/lifecycle'; import { Disposable, RefCountedDisposable } from 'vs/base/common/lifecycle'; import { ICodeEditor } from 'vs/editor/browser/editorBrowser'; import { ICodeEditorService } from 'vs/editor/browser/services/codeEditorService'; import { EditorOption } from 'vs/editor/common/config/editorOptions';"}
{"_id":"doc-en-vscode-831395b627add55b302823ead26aa6f87b6d07bdb53b3480f93b9c8a3c3786d2","title":"","text":"} export class SuggestInlineCompletions implements InlineCompletionsProvider { export class SuggestInlineCompletions extends Disposable implements InlineCompletionsProvider { private _lastResult?: InlineCompletionResults;"}
{"_id":"doc-en-vscode-654916cf12b0cd91faa4b5a4c45f3f1c4e0cc74bedee563a192573b9c4b6f213","title":"","text":"@IClipboardService private readonly _clipboardService: IClipboardService, @ISuggestMemoryService private readonly _suggestMemoryService: ISuggestMemoryService, @ICodeEditorService private readonly _editorService: ICodeEditorService, ) { } ) { super(); this._store.add(_languageFeatureService.inlineCompletionsProvider.register('*', this)); } async provideInlineCompletions(model: ITextModel, position: Position, context: InlineCompletionContext, token: CancellationToken): Promise {"}
{"_id":"doc-en-vscode-b2d9d5898ee6c603766061339c4aafa5b76e58028c6244e2e3c40ab21ca73273","title":"","text":"test('Aggressive inline completions when typing within line #146948', async function () { const completions: SuggestInlineCompletions = insta.createInstance(SuggestInlineCompletions); const completions: SuggestInlineCompletions = disposables.add(insta.createInstance(SuggestInlineCompletions)); { // (1,3), end of word -> suggestions"}
{"_id":"doc-en-vscode-60c9a0dc75a8f384010bc6807766438e3f2b3a784f3e199701817e6943c85f18","title":"","text":"}); test('Snippets show in inline suggestions even though they are turned off #175190', async function () { const completions: SuggestInlineCompletions = insta.createInstance(SuggestInlineCompletions); const completions: SuggestInlineCompletions = disposables.add(insta.createInstance(SuggestInlineCompletions)); { // unfiltered"}
{"_id":"doc-en-vscode-cf46f9dd71b31c500f50016df7aed0801de541253ef988195babe31e6a1134e6","title":"","text":"/** * Value-object describing what options formatting should use. */ export interface SortingOptions { /** * Size of a tab in spaces. */ tabSize: number; /** * Prefer spaces over tabs. */ insertSpaces: boolean; /** * Signature for further properties. */ [key: string]: boolean | number | string; } /** * Value-object describing what options formatting should use. */ export interface FormattingOptions { /**"}
{"_id":"doc-en-vscode-341936ae3190a582d42a57f038f05b28bf7fcd32dca35cc98f89654c10bc3242","title":"","text":"export const editorErrorBorder = registerColor('editorError.border', { dark: null, light: null, hcDark: Color.fromHex('#E47777').transparent(0.8), hcLight: '#B5200D' }, nls.localize('errorBorder', 'Border color of error boxes in the editor.')); export const editorWarningBackground = registerColor('editorWarning.background', { dark: null, light: null, hcDark: null, hcLight: null }, nls.localize('editorWarning.background', 'Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations.'), true); export const editorWarningForeground = registerColor('editorWarning.foreground', { dark: '#CCA700', light: '#BF8803', hcDark: '#FFD37', hcLight: '#895503' }, nls.localize('editorWarning.foreground', 'Foreground color of warning squigglies in the editor.')); export const editorWarningForeground = registerColor('editorWarning.foreground', { dark: '#CCA700', light: '#BF8803', hcDark: '#FFD370', hcLight: '#895503' }, nls.localize('editorWarning.foreground', 'Foreground color of warning squigglies in the editor.')); export const editorWarningBorder = registerColor('editorWarning.border', { dark: null, light: null, hcDark: Color.fromHex('#FFCC00').transparent(0.8), hcLight: '#' }, nls.localize('warningBorder', 'Border color of warning boxes in the editor.')); export const editorInfoBackground = registerColor('editorInfo.background', { dark: null, light: null, hcDark: null, hcLight: null }, nls.localize('editorInfo.background', 'Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations.'), true);"}
{"_id":"doc-en-vscode-61a2ab4c378c431acd21743a932eb2639459a800fa53c26121fda96d6f565aab","title":"","text":"try { const userDataProfilesExportState = disposables.add(this.instantiationService.createInstance(UserDataProfileExportState, this.userDataProfileService.currentProfile)); const barrier = new Barrier(); const exportAction = new BarrierAction(barrier, new Action('export', localize('export', \"Export\"), undefined, true, () => { const exportAction = new BarrierAction(barrier, new Action('export', localize('export', \"Export\"), undefined, true, async () => { exportAction.enabled = false; return this.doExportProfile(userDataProfilesExportState); })); const closeAction = new BarrierAction(barrier, new Action('close', localize('close', \"Close\"))); try { await this.doExportProfile(userDataProfilesExportState); } catch (error) { this.notificationService.error(error); throw error; } }), this.notificationService); const closeAction = new BarrierAction(barrier, new Action('close', localize('close', \"Close\")), this.notificationService); await this.showProfilePreviewView(EXPORT_PROFILE_PREVIEW_VIEW, userDataProfilesExportState.profile.name, exportAction, closeAction, true, userDataProfilesExportState); disposables.add(this.userDataProfileService.onDidChangeCurrentProfile(e => barrier.open())); await barrier.wait();"}
{"_id":"doc-en-vscode-9de7296003f74e7516fd106f975735fabd6d56025e65229aff3c3f052f02f84d","title":"","text":"if (!profileContentHandler) { return; } const saveResult = await profileContentHandler.saveProfile(profile.name, JSON.stringify(profile), CancellationToken.None); const saveResult = await profileContentHandler.saveProfile(profile.name.replace('/', '-'), JSON.stringify(profile), CancellationToken.None); if (!saveResult) { return; }"}
{"_id":"doc-en-vscode-3435bd375814dd9179f914914eee4cd841a1db786fe31eae3bc4ad5eec5d4344","title":"","text":": importAction; const secondaryAction = isWeb ? importAction : new BarrierAction(barrier, new Action('close', localize('close', \"Close\"))); : new BarrierAction(barrier, new Action('close', localize('close', \"Close\")), this.notificationService); const view = await this.showProfilePreviewView(IMPORT_PROFILE_PREVIEW_VIEW, importedProfile.name, primaryAction, secondaryAction, false, userDataProfileImportState); const message = new MarkdownString();"}
{"_id":"doc-en-vscode-4aee1b1e45a8aa54775f482473a97ed655124eeb7b96febb550e70f671e0e26d","title":"","text":"if (userDataProfileImportState.isEmpty()) { await importAction.run(); } else { await this.showProfilePreviewView(IMPORT_PROFILE_PREVIEW_VIEW, profileTemplate.name, importAction, new BarrierAction(barrier, new Action('cancel', localize('cancel', \"Cancel\"))), false, userDataProfileImportState); await this.showProfilePreviewView(IMPORT_PROFILE_PREVIEW_VIEW, profileTemplate.name, importAction, new BarrierAction(barrier, new Action('cancel', localize('cancel', \"Cancel\")), this.notificationService), false, userDataProfileImportState); } await barrier.wait(); await this.hideProfilePreviewView(IMPORT_PROFILE_PREVIEW_VIEW);"}
{"_id":"doc-en-vscode-cd72ca88796a1617ac75a61548eadefd9259e787a94744bc8534a63a985e2491","title":"","text":"location: IMPORT_PROFILE_PREVIEW_VIEW, }, () => importProfileFn()); } })); }), this.notificationService); return importAction; }"}
{"_id":"doc-en-vscode-810b66960388b40e0521ae85fe0f55d0bb60b3fcc9519a82c32ef60ceac6c962","title":"","text":"} class BarrierAction extends Action { constructor(barrier: Barrier, action: Action) { constructor(barrier: Barrier, action: Action, notificationService: INotificationService) { super(action.id, action.label, action.class, action.enabled, async () => { await action.run(); try { await action.run(); } catch (error) { notificationService.error(error); throw error; } barrier.open(); }); }"}
{"_id":"doc-en-vscode-f12d57e2a9806e30d6a09eecdb3c5e33132bf42b01404a866729bd21f9476f89","title":"","text":"*--------------------------------------------------------------------------------------------*/ import { networkInterfaces } from 'os'; import * as errors from 'vs/base/common/errors'; import { TernarySearchTree } from 'vs/base/common/ternarySearchTree'; import * as uuid from 'vs/base/common/uuid'; import { getMac } from 'vs/base/node/macAddress';"}
{"_id":"doc-en-vscode-7ac14a174eda1c27468639679fa585051f76549934b6f0b81541fa6db1302977","title":"","text":"}; let machineId: Promise; export async function getMachineId(): Promise { export async function getMachineId(errorLogger: (error: any) => void): Promise { if (!machineId) { machineId = (async () => { const id = await getMacMachineId(); const id = await getMacMachineId(errorLogger); return id || uuid.generateUuid(); // fallback, generate a UUID })();"}
{"_id":"doc-en-vscode-4dc4f7ad2baab40e678c2369d6eb42788cb3e4a1bd743e58e51cda8d215b66e7","title":"","text":"return machineId; } async function getMacMachineId(): Promise { async function getMacMachineId(errorLogger: (error: any) => void): Promise { try { const crypto = await import('crypto'); const macAddress = getMac(); return crypto.createHash('sha256').update(macAddress, 'utf8').digest('hex'); } catch (err) { errors.onUnexpectedError(err); errorLogger(err); return undefined; } }"}
{"_id":"doc-en-vscode-3e4a88dacf8f2b6e6e19aa9d772f62e3dafd76c8360d062577f2624f166cfe01","title":"","text":"flakySuite('ID', () => { test('getMachineId', async function () { const id = await getMachineId(); const errors = []; const id = await getMachineId(err => errors.push(err)); assert.ok(id); assert.strictEqual(errors.length, 0); }); test('getMac', async () => {"}
{"_id":"doc-en-vscode-fe809c58a21f5b5375a68e005b2857443d0ef12f546b23503a40d68a4643c7e1","title":"","text":"// Resolve unique machine ID this.logService.trace('Resolving machine identifier...'); const machineId = await resolveMachineId(this.stateService); const machineId = await resolveMachineId(this.stateService, this.logService); this.logService.trace(`Resolved machine identifier: ${machineId}`); // Shared process"}
{"_id":"doc-en-vscode-da2fcd7a4da9c6421ae6132be991899d4c9596114b29b2aed3624ca16a932c4d","title":"","text":"commonProperties: (async () => { let machineId: string | undefined = undefined; try { machineId = await resolveMachineId(stateService); machineId = await resolveMachineId(stateService, logService); } catch (error) { if (error.code !== 'ENOENT') { logService.error(error);"}
{"_id":"doc-en-vscode-4a845f5d79a9dc3d60026a3b9f68128db10b6430c06e9198cc326f9b943dbe85","title":"","text":"* Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { ILogService } from 'vs/platform/log/common/log'; import { IStateService } from 'vs/platform/state/node/state'; import { machineIdKey } from 'vs/platform/telemetry/common/telemetry'; import { resolveMachineId as resolveNodeMachineId } from 'vs/platform/telemetry/node/telemetryUtils'; export async function resolveMachineId(stateService: IStateService) { export async function resolveMachineId(stateService: IStateService, logService: ILogService) { // Call the node layers implementation to avoid code duplication const machineId = await resolveNodeMachineId(stateService); const machineId = await resolveNodeMachineId(stateService, logService); stateService.setItem(machineIdKey, machineId); return machineId; }"}
{"_id":"doc-en-vscode-5999991c9e3c48b6c4cc46f1736badf05248341eea1f3399b8538f4c148b043b","title":"","text":"import { isMacintosh } from 'vs/base/common/platform'; import { getMachineId } from 'vs/base/node/id'; import { ILogService } from 'vs/platform/log/common/log'; import { IStateReadService } from 'vs/platform/state/node/state'; import { machineIdKey } from 'vs/platform/telemetry/common/telemetry'; export async function resolveMachineId(stateService: IStateReadService) { export async function resolveMachineId(stateService: IStateReadService, logService: ILogService) { // We cache the machineId for faster lookups // and resolve it only once initially if not cached or we need to replace the macOS iBridge device let machineId = stateService.getItem(machineIdKey); if (typeof machineId !== 'string' || (isMacintosh && machineId === '6c9d2bc8f91b89624add29c0abeae7fb42bf539fa1cdb2e3e57cd668fa9bcead')) { machineId = await getMachineId(); machineId = await getMachineId(logService.error.bind(logService)); } return machineId;"}
{"_id":"doc-en-vscode-137565c159f314e7a078e00efb6193b758ffc0c58f2f0fb1e2916c54271b07c7","title":"","text":"} const { installSourcePath } = this.environmentMainService; const machineId = await resolveMachineId(this.stateService); const machineId = await resolveMachineId(this.stateService, this.logService); const config: ITelemetryServiceConfig = { appenders,"}
{"_id":"doc-en-vscode-080686b33db4a62f27f25b9f4043135062ab82679abd1d7485d66f6202d94e63","title":"","text":"const [, , machineId] = await Promise.all([ configurationService.initialize(), userDataProfilesService.init(), getMachineId() getMachineId(logService.error.bind(logService)) ]); const extensionHostStatusService = new ExtensionHostStatusService();"}
{"_id":"doc-en-vscode-1bf219f5afd57329853a7abfb11910742bc28ae203a01b2316c9b7a94559d8e1","title":"","text":"\"default\": false, \"description\": \"%config.followTagsWhenSync%\" }, \"git.replaceTagsWhenPull\": { \"type\": \"boolean\", \"scope\": \"resource\", \"default\": false, \"description\": \"%config.replaceTagsWhenPull%\" }, \"git.promptToSaveFilesBeforeStash\": { \"type\": \"string\", \"enum\": ["}
{"_id":"doc-en-vscode-5de6e624af6ae7ecea38eb8e1f0e8a33512e936f3e33693ed4846c46e922ee98","title":"","text":"\"config.decorations.enabled\": \"Controls whether Git contributes colors and badges to the Explorer and the Open Editors view.\", \"config.enableStatusBarSync\": \"Controls whether the Git Sync command appears in the status bar.\", \"config.followTagsWhenSync\": \"Push all annotated tags when running the sync command.\", \"config.replaceTagsWhenPull\": \"Automatically replace the local tags with the remote tags in case of a conflict when running the pull command.\", \"config.promptToSaveFilesBeforeStash\": \"Controls whether Git should check for unsaved files before stashing changes.\", \"config.promptToSaveFilesBeforeStash.always\": \"Check for any unsaved files.\", \"config.promptToSaveFilesBeforeStash.staged\": \"Check only for unsaved staged files.\","}
{"_id":"doc-en-vscode-6a68a3ccca25290a6ac7207bc7763d43c27095e8505834f816a4f6721ac9b71c","title":"","text":"throw new Error(`Unable to extract tag names from error message: ${raw}`); } // Notification const replaceLocalTags = l10n.t('Replace Local Tag(s)'); const message = l10n.t('Unable to pull from remote repository due to conflicting tag(s): {0}. Would you like to resolve the conflict by replacing the local tag(s)?', tags.join(', ')); const choice = await window.showErrorMessage(message, { modal: true }, replaceLocalTags); const config = workspace.getConfiguration('git', Uri.file(this.repository.root)); const replaceTagsWhenPull = config.get('replaceTagsWhenPull', false) === true; if (!replaceTagsWhenPull) { // Notification const replaceLocalTags = l10n.t('Replace Local Tag(s)'); const replaceLocalTagsAlways = l10n.t('Always Replace Local Tag(s)'); const message = l10n.t('Unable to pull from remote repository due to conflicting tag(s): {0}. Would you like to resolve the conflict by replacing the local tag(s)?', tags.join(', ')); const choice = await window.showErrorMessage(message, { modal: true }, replaceLocalTags, replaceLocalTagsAlways); if (choice !== replaceLocalTags && choice !== replaceLocalTagsAlways) { return false; } if (choice !== replaceLocalTags) { return false; if (choice === replaceLocalTagsAlways) { await config.update('replaceTagsWhenPull', true, true); } } // Force fetch tags"}
{"_id":"doc-en-vscode-8508de0d71eac319669e4bbd9f776495632bb94c0b6c3713a8decbfa8220655d","title":"","text":"import { IExtension, ExtensionState, IExtensionsWorkbenchService, VIEWLET_ID, IExtensionsViewPaneContainer, IExtensionContainer, TOGGLE_IGNORE_EXTENSION_ACTION_ID, SELECT_INSTALL_VSIX_EXTENSION_COMMAND_ID, THEME_ACTIONS_GROUP, INSTALL_ACTIONS_GROUP } from 'vs/workbench/contrib/extensions/common/extensions'; import { ExtensionsConfigurationInitialContent } from 'vs/workbench/contrib/extensions/common/extensionsFileTemplate'; import { IGalleryExtension, IExtensionGalleryService, ILocalExtension, InstallOptions, InstallOperation, TargetPlatformToString, ExtensionManagementErrorCode } from 'vs/platform/extensionManagement/common/extensionManagement'; import { IWorkbenchExtensionEnablementService, EnablementState, IExtensionManagementServerService, IExtensionManagementServer, IWorkbenchExtensionManagementService } from 'vs/workbench/services/extensionManagement/common/extensionManagement'; import { IWorkbenchExtensionEnablementService, EnablementState, IExtensionManagementServerService, IExtensionManagementServer } from 'vs/workbench/services/extensionManagement/common/extensionManagement'; import { ExtensionRecommendationReason, IExtensionIgnoredRecommendationsService, IExtensionRecommendationsService } from 'vs/workbench/services/extensionRecommendations/common/extensionRecommendations'; import { areSameExtensions, getExtensionId } from 'vs/platform/extensionManagement/common/extensionManagementUtil'; import { ExtensionType, ExtensionIdentifier, IExtensionDescription, IExtensionManifest, isLanguagePackExtension, getWorkspaceSupportTypeMessage, TargetPlatform } from 'vs/platform/extensions/common/extensions';"}
{"_id":"doc-en-vscode-cf3402c9678051dcbe5b10bd6b38b83e0a487425f0b342360dd97206547778f7","title":"","text":"import { IActionViewItemOptions, ActionViewItem } from 'vs/base/browser/ui/actionbar/actionViewItems'; import { EXTENSIONS_CONFIG, IExtensionsConfigContent } from 'vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig'; import { getErrorMessage, isCancellationError } from 'vs/base/common/errors'; import { IUserDataSyncEnablementService, SyncResource } from 'vs/platform/userDataSync/common/userDataSync'; import { IUserDataSyncEnablementService } from 'vs/platform/userDataSync/common/userDataSync'; import { ActionWithDropdownActionViewItem, IActionWithDropdownActionViewItemOptions } from 'vs/base/browser/ui/dropdown/dropdownActionViewItem'; import { IContextMenuProvider } from 'vs/base/browser/contextmenu'; import { ILogService } from 'vs/platform/log/common/log';"}
{"_id":"doc-en-vscode-4b75f3ed7e934238aa399b132a2e21e559795c9ab1d0bfe4950f7adbb47a2e8a","title":"","text":"buttons: [{ label: localize('install anyway', \"Install Anyway\"), run: () => { const installAction = this.installOptions?.isMachineScoped ? this.instantiationService.createInstance(InstallAction, { donotVerifySignature: true }) : this.instantiationService.createInstance(InstallAndSyncAction, { donotVerifySignature: true }); const installAction = this.instantiationService.createInstance(InstallAction, { donotVerifySignature: true }); installAction.extension = this.extension; return installAction.run(); }"}
{"_id":"doc-en-vscode-bedcef089ae0d9189475dc161bf660da677141f175e4f88603def4590826cc3f","title":"","text":"promptChoices.push({ label: localize('install release version', \"Install Release Version\"), run: () => { const installAction = this.installOptions?.isMachineScoped ? this.instantiationService.createInstance(InstallAction, { installPreReleaseVersion: !!this.installOptions.installPreReleaseVersion }) : this.instantiationService.createInstance(InstallAndSyncAction, { installPreReleaseVersion: !!this.installOptions?.installPreReleaseVersion }); const installAction = this.instantiationService.createInstance(InstallAction, { installPreReleaseVersion: !!this.installOptions?.installPreReleaseVersion }); installAction.extension = this.extension; return installAction.run(); }"}
{"_id":"doc-en-vscode-a3ae48019b0dc26f9e394165c36a24cbbf760847d11ba31ed8a3418f2416f7d8","title":"","text":"} } export abstract class AbstractInstallAction extends ExtensionAction { export class InstallAction extends ExtensionAction { static readonly Class = `${ExtensionAction.LABEL_ACTION_CLASS} prominent install`;"}
{"_id":"doc-en-vscode-f93827e1f239caae147e03f20198b9eaafd76f605832b72d84bb52b0f27f86e7","title":"","text":"} private readonly updateThrottler = new Throttler(); public readonly options: InstallOptions; constructor( id: string, readonly options: InstallOptions, cssClass: string, options: InstallOptions, @IExtensionsWorkbenchService private readonly extensionsWorkbenchService: IExtensionsWorkbenchService, @IInstantiationService private readonly instantiationService: IInstantiationService, @IExtensionService private readonly runtimeExtensionService: IExtensionService,"}
{"_id":"doc-en-vscode-e2dff1acafc1620f4c43035f2f7e88501941db638d2d0274793fdb617c96a8dc","title":"","text":"@IPreferencesService private readonly preferencesService: IPreferencesService, @ITelemetryService private readonly telemetryService: ITelemetryService, ) { super(id, localize('install', \"Install\"), cssClass, false); super('extensions.install', localize('install', \"Install\"), InstallAction.Class, false); this.options = { ...options, isMachineScoped: false }; this.update(); this._register(this.labelService.onDidChangeFormatters(() => this.updateLabel(), this)); }"}
{"_id":"doc-en-vscode-94dd53f10d09558a2c7b66f88f66787f0e5a20dacccc7a3302a392818e16710d","title":"","text":"} private async install(extension: IExtension): Promise { const installOptions = this.getInstallOptions(); try { return await this.extensionsWorkbenchService.install(extension, installOptions); return await this.extensionsWorkbenchService.install(extension, this.options); } catch (error) { await this.instantiationService.createInstance(PromptExtensionInstallFailureAction, extension, extension.latestVersion, InstallOperation.Install, installOptions, error).run(); await this.instantiationService.createInstance(PromptExtensionInstallFailureAction, extension, extension.latestVersion, InstallOperation.Install, this.options, error).run(); return undefined; } }"}
{"_id":"doc-en-vscode-8d14d59e199de7522db822b2f8a720c37d0f0ccff50798549ad83d452b19e713","title":"","text":"return localize('install', \"Install\"); } protected getInstallOptions(): InstallOptions { return this.options; } } export class InstallAction extends AbstractInstallAction { constructor( options: InstallOptions, @IExtensionsWorkbenchService extensionsWorkbenchService: IExtensionsWorkbenchService, @IInstantiationService instantiationService: IInstantiationService, @IExtensionService runtimeExtensionService: IExtensionService, @IWorkbenchThemeService workbenchThemeService: IWorkbenchThemeService, @ILabelService labelService: ILabelService, @IDialogService dialogService: IDialogService, @IPreferencesService preferencesService: IPreferencesService, @IExtensionManagementServerService private readonly extensionManagementServerService: IExtensionManagementServerService, @IWorkbenchExtensionManagementService private readonly workbenchExtensionManagementService: IWorkbenchExtensionManagementService, @IUserDataSyncEnablementService protected readonly userDataSyncEnablementService: IUserDataSyncEnablementService, @ITelemetryService telemetryService: ITelemetryService, ) { super(`extensions.install`, options, InstallAction.Class, extensionsWorkbenchService, instantiationService, runtimeExtensionService, workbenchThemeService, labelService, dialogService, preferencesService, telemetryService); this.updateLabel(); this._register(labelService.onDidChangeFormatters(() => this.updateLabel(), this)); this._register(Event.any(userDataSyncEnablementService.onDidChangeEnablement, Event.filter(userDataSyncEnablementService.onDidChangeResourceEnablement, e => e[0] === SyncResource.Extensions))(() => this.update())); } override getLabel(primary?: boolean): string { const baseLabel = super.getLabel(primary); const donotSyncLabel = localize('do no sync', \"Do not sync\"); const isMachineScoped = this.getInstallOptions().isMachineScoped; // When remote connection exists if (this._manifest && this.extensionManagementServerService.remoteExtensionManagementServer) { const server = this.workbenchExtensionManagementService.getExtensionManagementServerToInstall(this._manifest); if (server === this.extensionManagementServerService.remoteExtensionManagementServer) { const host = this.extensionManagementServerService.remoteExtensionManagementServer.label; return isMachineScoped ? localize({ key: 'install extension in remote and do not sync', comment: [ 'First placeholder is install action label.', 'Second placeholder is the name of the action to install an extension in remote server and do not sync it. Placeholder is for the name of remote server.', 'Third placeholder is do not sync label.', ] }, \"{0} in {1} ({2})\", baseLabel, host, donotSyncLabel) : localize({ key: 'install extension in remote', comment: [ 'First placeholder is install action label.', 'Second placeholder is the name of the action to install an extension in remote server and do not sync it. Placeholder is for the name of remote server.', ] }, \"{0} in {1}\", baseLabel, host); } return isMachineScoped ? localize('install extension locally and do not sync', \"{0} Locally ({1})\", baseLabel, donotSyncLabel) : localize('install extension locally', \"{0} Locally\", baseLabel); } return isMachineScoped ? `${baseLabel} (${donotSyncLabel})` : baseLabel; } protected override getInstallOptions(): InstallOptions { return { ...super.getInstallOptions(), isMachineScoped: this.userDataSyncEnablementService.isEnabled() && this.userDataSyncEnablementService.isResourceEnabled(SyncResource.Extensions) }; } } export class InstallAndSyncAction extends AbstractInstallAction { constructor( options: InstallOptions, @IExtensionsWorkbenchService extensionsWorkbenchService: IExtensionsWorkbenchService, @IInstantiationService instantiationService: IInstantiationService, @IExtensionService runtimeExtensionService: IExtensionService, @IWorkbenchThemeService workbenchThemeService: IWorkbenchThemeService, @ILabelService labelService: ILabelService, @IDialogService dialogService: IDialogService, @IPreferencesService preferencesService: IPreferencesService, @IProductService productService: IProductService, @IUserDataSyncEnablementService private readonly userDataSyncEnablementService: IUserDataSyncEnablementService, @ITelemetryService telemetryService: ITelemetryService, ) { super('extensions.installAndSync', options, AbstractInstallAction.Class, extensionsWorkbenchService, instantiationService, runtimeExtensionService, workbenchThemeService, labelService, dialogService, preferencesService, telemetryService); this.tooltip = localize({ key: 'install everywhere tooltip', comment: ['Placeholder is the name of the product. Eg: Visual Studio Code or Visual Studio Code - Insiders'] }, \"Install this extension in all your synced {0} instances\", productService.nameLong); this._register(Event.any(userDataSyncEnablementService.onDidChangeEnablement, Event.filter(userDataSyncEnablementService.onDidChangeResourceEnablement, e => e[0] === SyncResource.Extensions))(() => this.update())); } protected override async computeAndUpdateEnablement(): Promise { await super.computeAndUpdateEnablement(); if (this.enabled) { this.enabled = this.userDataSyncEnablementService.isEnabled() && this.userDataSyncEnablementService.isResourceEnabled(SyncResource.Extensions); } } protected override getInstallOptions(): InstallOptions { return { ...super.getInstallOptions(), isMachineScoped: false }; } } export class InstallDropdownAction extends ActionWithDropDownAction { set manifest(manifest: IExtensionManifest | null) { this.extensionActions.forEach(a => (a).manifest = manifest); this.extensionActions.forEach(a => (a).manifest = manifest); this.update(); }"}
{"_id":"doc-en-vscode-8e305f9f29bc24a3803468d3367bd1cd806c4ca392098bc07bbe693f1704ddcb","title":"","text":") { super(`extensions.installActions`, '', [ [ instantiationService.createInstance(InstallAndSyncAction, { installPreReleaseVersion: extensionsWorkbenchService.preferPreReleases }), instantiationService.createInstance(InstallAndSyncAction, { installPreReleaseVersion: !extensionsWorkbenchService.preferPreReleases }), ], [ instantiationService.createInstance(InstallAction, { installPreReleaseVersion: extensionsWorkbenchService.preferPreReleases }), instantiationService.createInstance(InstallAction, { installPreReleaseVersion: !extensionsWorkbenchService.preferPreReleases }), ] ]); } protected override getLabel(action: AbstractInstallAction): string { protected override getLabel(action: InstallAction): string { return action.getLabel(true); }"}
{"_id":"doc-en-vscode-9e67a65fdb5092542bc65cc279546adaaf541a5af6b89534487ca3550effd104","title":"","text":"const range = match.range(); const matchText = match.text().substr(0, range.endColumn + 150); if (replace) { return nls.localize('replacePreviewResultAria', \"'{0}' at column {1} replace {2} with {3}\", matchText, range.startColumn + 1, matchString, match.replaceString); return nls.localize('replacePreviewResultAria', \"'{0}' at column {1} replace {2} with {3}\", matchText, range.startColumn, matchString, match.replaceString); } return nls.localize('searchResultAria', \"'{0}' at column {1} found {2}\", matchText, range.startColumn + 1, matchString); return nls.localize('searchResultAria', \"'{0}' at column {1} found {2}\", matchText, range.startColumn, matchString); } return null; }"}
{"_id":"doc-en-vscode-f9dd0419addeb286b3d3ab75d8013d5458ef452ea0a05301b01299fd159b5bcc","title":"","text":"if (editorWidget) { // Ensure that the editor widget is binded. If if is, then this should return immediately. // Otherwise, it will bind the widget. await elemParent.bindNotebookEditorWidget(editorWidget); elemParent.bindNotebookEditorWidget(editorWidget); await elemParent.updateMatchesForEditorWidget(); const matchIndex = oldParentMatches.findIndex(e => e.id() === element.id());"}
{"_id":"doc-en-vscode-64d7003dc9da03ae2625f38ec24cac679b9501dc3dd29ad688468d7a920512ab","title":"","text":"if (!this.tree.getFocus().includes(match) || !this.tree.getSelection().includes(match)) { this.tree.setSelection([match], getSelectionKeyboardEvent()); this.tree.setFocus([match]); } }"}
{"_id":"doc-en-vscode-b259379d88947d548f1371c53856300a1b43485f283b81dd2306eac4e4a64258","title":"","text":"return; } this._webview.focusOutput(cell.id, this._webviewFocused); if (!options?.skipReveal) { this._webview.focusOutput(cell.id, this._webviewFocused); } cell.updateEditState(CellEditState.Preview, 'focusNotebookCell'); cell.focusMode = CellFocusMode.Output;"}
{"_id":"doc-en-vscode-657532f66cb4a39ed9f19597666123d71fe4791bb23095ea26ddb8f72808a1ba","title":"","text":"if (e.ctrlKey || e.shiftKey) { return; } if (e.code === 'ArrowDown' || e.code === 'End' || e.code === 'ArrowUp' || e.code === 'Home') { if (e.code === 'ArrowDown' || e.code === 'ArrowUp' || e.code === 'End' || e.code === 'Home' || e.code === 'PageUp' || e.code === 'PageDown') { // These should change the scroll position, not adjust the selected cell in the notebook e.stopPropagation(); }"}
{"_id":"doc-en-vscode-60f6d1f38d49ec8de034c04718a2451acf5bdeb21e63aed00aa11e1100d3e753","title":"","text":"*--------------------------------------------------------------------------------------------*/ import { IKeyboardEvent } from 'vs/base/browser/keyboardEvent'; import { IEditorMouseEvent, IMouseTarget, IPartialEditorMouseEvent } from 'vs/editor/browser/editorBrowser'; import { IEditorMouseEvent, IMouseTarget, IMouseTargetViewZoneData, IPartialEditorMouseEvent, MouseTargetType } from 'vs/editor/browser/editorBrowser'; import { ICoordinatesConverter } from 'vs/editor/common/viewModel'; import { IMouseWheelEvent } from 'vs/base/browser/mouseEvent'; import { Position } from 'vs/editor/common/core/position'; export interface EventCallback { (event: T): void;"}
{"_id":"doc-en-vscode-e99842a76293ef3a5f2509dca8733542f60e3592cc3a8c22e49dfdbeb0eed11a","title":"","text":"if (result.range) { result.range = coordinatesConverter.convertViewRangeToModelRange(result.range); } if (result.type === MouseTargetType.GUTTER_VIEW_ZONE || result.type === MouseTargetType.CONTENT_VIEW_ZONE) { result.detail = this.convertViewToModelViewZoneData(result.detail, coordinatesConverter); } return result; } private static convertViewToModelViewZoneData(data: IMouseTargetViewZoneData, coordinatesConverter: ICoordinatesConverter): IMouseTargetViewZoneData { return { viewZoneId: data.viewZoneId, positionBefore: data.positionBefore ? coordinatesConverter.convertViewPositionToModelPosition(data.positionBefore) : data.positionBefore, positionAfter: data.positionAfter ? coordinatesConverter.convertViewPositionToModelPosition(data.positionAfter) : data.positionAfter, position: coordinatesConverter.convertViewPositionToModelPosition(data.position), afterLineNumber: coordinatesConverter.convertViewPositionToModelPosition(new Position(data.afterLineNumber, 1)).lineNumber, }; } }"}
{"_id":"doc-en-vscode-452180f34d137b7091cbee97716b653f45e26ea5755fc01a0a07197b7d24ae14","title":"","text":"})); // Revert change when an arrow is clicked. this._register(editor.onMouseUp(event => { this._register(editor.onMouseDown(event => { if (!event.event.rightButton && event.target.position && event.target.element?.className.includes('arrow-revert-change')) { const lineNumber = event.target.position.lineNumber; const viewZone = event.target as editorBrowser.IMouseTargetViewZone | undefined;"}
{"_id":"doc-en-vscode-4860dd2155ca44c9e98341088196d8a2c3998b3f62297379593219789fbb678d","title":"","text":"} })); this._register(editor.onMouseUp((e: IEditorMouseEvent) => { this._register(editor.onMouseDown((e: IEditorMouseEvent) => { if (!e.event.rightButton) { return; }"}
{"_id":"doc-en-vscode-143c5bc34cf57388bda692209d427267c77f662bc0853026c9421b02463037d6","title":"","text":"// group controllers by extension for (const group of groupBy(others, (a, b) => a.extension.value === b.extension.value ? 0 : 1)) { const extension = this._extensionService.extensions.find(extension => extension.identifier.value === group[0].extension.value); const source = extension?.description ?? group[0].extension.value; const source = extension?.displayName ?? extension?.description ?? group[0].extension.value; if (group.length > 1) { quickPickItems.push({ label: source,"}
{"_id":"doc-en-vscode-733eff6abd8902430e904f4c3818053d04b1bf9392bae817980794ad4ffcea31","title":"","text":"\"inputOption.activeBackground\": \"#2489db82\", \"inputOption.activeBorder\": \"#2488db\", \"keybindingLabel.foreground\": \"#cccccc\", \"list.activeSelectionBackground\": \"#ffffff0f\", \"list.activeSelectionBackground\": \"#323232\", \"list.activeSelectionIconForeground\": \"#ffffff\", \"list.activeSelectionForeground\": \"#ffffff\", \"menu.background\": \"#1f1f1f\","}
{"_id":"doc-en-vscode-3e0c1dd43b0f79ae9abd687c093ee396200308fe35111b3e612c86c372b5312f","title":"","text":"return cloneAndChange(data, value => { // If it's a trusted value it means it's okay to skip cleaning so we don't clean it if (value instanceof TelemetryTrustedValue || value.hasOwnProperty('isTrustedTelemetryValue')) { if (value instanceof TelemetryTrustedValue || Object.hasOwnProperty.call(value, 'isTrustedTelemetryValue')) { return value.value; }"}
{"_id":"doc-en-vscode-7509d2e9c74abfffe9254e1d88b5e80edac1f30453ed14f82ebf89976bc03bf6","title":"","text":"} let index: number; if (this.editor.hasModel() && (typeof lineNumber === 'number')) { if (this.editor.hasModel() && (typeof lineNumber === 'number' || !this.widget.provider)) { index = this.model.findNextClosestChange(typeof lineNumber === 'number' ? lineNumber : this.editor.getPosition().lineNumber, true, this.widget.provider); } else { const providerChanges: number[] = this.model.mapChanges.get(this.widget.provider) ?? this.model.mapChanges.values().next().value;"}
{"_id":"doc-en-vscode-1fd5dba1029fcc0c4b08f279842bc96f15dbe708761d3cefd3424f11ee261ef7","title":"","text":"const possibleChangesLength = possibleChanges.length; if (inclusive) { if ((getModifiedEndLineNumber(change.change) >= lineNumber) && (change.change.modifiedStartLineNumber <= lineNumber)) { if (getModifiedEndLineNumber(change.change) >= lineNumber) { if (preferredProvider && change.label !== preferredProvider) { possibleChanges.push(i); } else {"}
{"_id":"doc-en-vscode-f712be3bbd8a507b478070ea097df0db60269746074588b4e974eb015c70e35d","title":"","text":"const lineResult = parseSearchResults(document, token)[position.line]; if (!lineResult) { return []; } if (lineResult.type === 'file') { return lineResult.allLocations; return lineResult.allLocations.map(l => ({ ...l, originSelectionRange: lineResult.location.originSelectionRange })); } const location = lineResult.locations.find(l => l.originSelectionRange.contains(position));"}
{"_id":"doc-en-vscode-cb1409c85f8dbacabddc716fc3d5bd87909ec85cb3f4cf7e28aaebc25fec8b76","title":"","text":"{ label: 'fileBasename', detail: vscode.l10n.t(\"The current opened file's basename\") }, { label: 'fileBasenameNoExtension', detail: vscode.l10n.t(\"The current opened file's basename with no file extension\") }, { label: 'defaultBuildTask', detail: vscode.l10n.t(\"The name of the default build task. If there is not a single default build task then a quick pick is shown to choose the build task.\") }, { label: 'pathSeparator', detail: vscode.l10n.t(\"The character used by the operating system to separate components in file paths\") }, { label: 'pathSeparator', detail: vscode.l10n.t(\"The character used by the operating system to separate components in file paths. Is also aliased to '/'.\") }, { label: 'extensionInstallFolder', detail: vscode.l10n.t(\"The path where an an extension is installed.\"), param: 'publisher.extension' }, ].map(variable => ({ label: `${${variable.label}}`,"}
{"_id":"doc-en-vscode-49d531929e72db87273e75423f546c3954b724b0deabb32bfa6ad051cf1239bf","title":"","text":"FileDirnameBasename = 'fileDirnameBasename', ExecPath = 'execPath', ExecInstallFolder = 'execInstallFolder', PathSeparator = 'pathSeparator' PathSeparator = 'pathSeparator', PathSeparatorAlias = '/' } export class VariableError extends Error {"}
{"_id":"doc-en-vscode-06d47b894628238b53ae8e367146406abf2d70eb3863bef969d87df647725c42","title":"","text":"return match; } case 'pathSeparator': case '/': return paths.sep; default:"}
{"_id":"doc-en-vscode-2ece2bc39e4341941355dcb20d49180c53fe68bae97cc5679e626d700c5cc091","title":"","text":"import { Disposable, IDisposable } from 'vs/base/common/lifecycle'; import { IWorkbenchContribution } from 'vs/workbench/common/contributions'; import { Extensions, IViewContainersRegistry, IViewsRegistry, ViewContainer, ViewContainerLocation } from 'vs/workbench/common/views'; import { Attributes, AutoTunnelSource, IRemoteExplorerService, makeAddress, mapHasAddressLocalhostOrAllInterfaces, OnPortForward, PORT_AUTO_FORWARD_SETTING, PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_HYBRID, PORT_AUTO_SOURCE_SETTING_OUTPUT, PORT_AUTO_SOURCE_SETTING_PROCESS, TUNNEL_VIEW_CONTAINER_ID, TUNNEL_VIEW_ID, TunnelSource } from 'vs/workbench/services/remote/common/remoteExplorerService'; import { Attributes, AutoTunnelSource, IRemoteExplorerService, makeAddress, mapHasAddressLocalhostOrAllInterfaces, OnPortForward, PORT_AUTO_FORWARD_SETTING, PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_HYBRID, PORT_AUTO_SOURCE_SETTING_OUTPUT, PORT_AUTO_SOURCE_SETTING_PROCESS, Tunnel, TUNNEL_VIEW_CONTAINER_ID, TUNNEL_VIEW_ID, TunnelSource } from 'vs/workbench/services/remote/common/remoteExplorerService'; import { forwardedPortsViewEnabled, ForwardPortAction, OpenPortInBrowserAction, TunnelPanel, TunnelPanelDescriptor, TunnelViewModel, OpenPortInPreviewAction, openPreviewEnabledContext } from 'vs/workbench/contrib/remote/browser/tunnelView'; import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey'; import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';"}
{"_id":"doc-en-vscode-236cee824857dc43545fef1a0dd47e0eee3702fd8f169fdf2dd3d54833308c34","title":"","text":"private async handleCandidateUpdate(removed: Map) { const removedPorts: number[] = []; let autoForwarded: Set; let autoForwarded: Map; if (this.unforwardOnly) { autoForwarded = new Set(); autoForwarded = new Map(); for (const entry of this.remoteExplorerService.tunnelModel.forwarded.entries()) { if (entry[1].source.source === TunnelSource.Auto) { autoForwarded.add(entry[0]); autoForwarded.set(entry[0], entry[1]); } } } else { autoForwarded = this.autoForwarded; autoForwarded = new Map(this.autoForwarded.entries()); } for (const removedPort of removed) { const key = removedPort[0]; const value = removedPort[1]; if (autoForwarded.has(key)) { let value = removedPort[1]; const forwardedValue = mapHasAddressLocalhostOrAllInterfaces(autoForwarded, value.host, value.port); if (forwardedValue) { if (typeof forwardedValue === 'string') { this.autoForwarded.delete(key); } else { value = { host: forwardedValue.remoteHost, port: forwardedValue.remotePort }; } await this.remoteExplorerService.close(value); autoForwarded.delete(key); removedPorts.push(value.port); } else if (this.notifiedOnly.has(key)) { this.notifiedOnly.delete(key);"}
{"_id":"doc-en-vscode-7ba1efe201105b120ebf6ec4deced8f57b26aab02c3fb37258c908ab4ff754ef","title":"","text":"import { IWorkbenchConstructionOptions, IWorkbench, ITunnel } from 'vs/workbench/browser/web.api'; import { BrowserStorageService } from 'vs/workbench/services/storage/browser/storageService'; import { IStorageService } from 'vs/platform/storage/common/storage'; import { BufferLogger } from 'vs/platform/log/common/bufferLog'; import { FileLoggerService } from 'vs/platform/log/common/fileLog'; import { toLocalISOString } from 'vs/base/common/date'; import { isWorkspaceToOpen, isFolderToOpen } from 'vs/platform/window/common/window'; import { getSingleFolderWorkspaceIdentifier, getWorkspaceIdentifier } from 'vs/workbench/services/workspaces/browser/workspaces';"}
{"_id":"doc-en-vscode-e42fe947547b6a2d5437329bce1c24b1b77a77952fbc2b4439f7d97ccf5bfc8b","title":"","text":"import { IStoredWorkspace } from 'vs/platform/workspaces/common/workspaces'; import { UserDataProfileInitializer } from 'vs/workbench/services/userDataProfile/browser/userDataProfileInit'; import { UserDataSyncInitializer } from 'vs/workbench/services/userDataSync/browser/userDataSyncInit'; import { BufferLogger } from 'vs/platform/log/common/bufferLog'; import { FileLoggerService } from 'vs/platform/log/common/fileLog'; export class BrowserMain extends Disposable {"}
{"_id":"doc-en-vscode-477f57759f7109be89f7fa1b9df71382c5dfa3d22fd3236242fb6338b6ad9341","title":"","text":"const environmentService = new BrowserWorkbenchEnvironmentService(workspace.id, logsPath, this.configuration, productService); serviceCollection.set(IBrowserWorkbenchEnvironmentService, environmentService); // Log const logLevel = getLogLevel(environmentService); const bufferLogger = new BufferLogger(logLevel); const otherLoggers: ILogger[] = [new ConsoleLogger(logLevel)]; // Files const fileLogger = new BufferLogger(); const fileService = this._register(new FileService(fileLogger)); serviceCollection.set(IWorkbenchFileService, fileService); // Logger const loggerService = new FileLoggerService(getLogLevel(environmentService), logsPath, fileService); serviceCollection.set(ILoggerService, loggerService); // Log Service const otherLoggers: ILogger[] = [new ConsoleLogger(loggerService.getLogLevel())]; if (environmentService.isExtensionDevelopment && !!environmentService.extensionTestsLocationURI) { otherLoggers.push(new ConsoleLogInAutomationLogger(logLevel)); otherLoggers.push(new ConsoleLogInAutomationLogger(loggerService.getLogLevel())); } const logService = new LogService(bufferLogger, otherLoggers); const logger = loggerService.createLogger(environmentService.logFile, { id: windowLogId, name: localize('rendererLog', \"Window\") }); const logService = new LogService(logger, otherLoggers); serviceCollection.set(ILogService, logService); // Set the logger of the fileLogger after the log service is ready. // This is to avoid cyclic dependency fileLogger.logger = logService; // Register File System Providers depending on IndexedDB support // Register them early because they are needed for the profiles initialization await this.registerIndexedDBFileSystemProviders(environmentService, fileService, logService, loggerService, logsPath); // Remote const connectionToken = environmentService.options.connectionToken || getCookieValue(connectionTokenCookieName); const remoteAuthorityResolverService = new RemoteAuthorityResolverService(!environmentService.expectsResolverExtension, connectionToken, this.configuration.resourceUriProvider, productService, logService);"}
{"_id":"doc-en-vscode-38900e1d4b8b1c5bb7ffe3a16ab0ca4d6425b79936fcdec15eeb7aa27f2f7b62","title":"","text":"// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // Files const fileService = this._register(new FileService(logService)); serviceCollection.set(IWorkbenchFileService, fileService); // Logger const loggerService = new FileLoggerService(logLevel, logsPath, fileService); serviceCollection.set(ILoggerService, loggerService); // Register File System Providers depending on IndexedDB support // Register them early because they are needed for the profiles initialization await this.registerIndexedDBFileSystemProviders(environmentService, fileService, bufferLogger, logService, loggerService, logsPath); // URI Identity const uriIdentityService = new UriIdentityService(fileService); serviceCollection.set(IUriIdentityService, uriIdentityService);"}
{"_id":"doc-en-vscode-73fad4b7ab0c0bfd059d14d34ebd4e011972a200f78b3ab187b5c5772e70f6f8","title":"","text":"} } private async registerIndexedDBFileSystemProviders(environmentService: IWorkbenchEnvironmentService, fileService: IWorkbenchFileService, bufferLogger: BufferLogger, logService: ILogService, loggerService: ILoggerService, logsPath: URI): Promise { private async registerIndexedDBFileSystemProviders(environmentService: IWorkbenchEnvironmentService, fileService: IWorkbenchFileService, logService: ILogService, loggerService: ILoggerService, logsPath: URI): Promise { // IndexedDB is used for logging and user data let indexedDB: IndexedDB | undefined; const userDataStore = 'vscode-userdata-store';"}
{"_id":"doc-en-vscode-28fb7f7b377082c781d5eb1f0eb507baefb8041daf35e50ad87f45dc7441cc01","title":"","text":"fileService.registerProvider(logsPath.scheme, new InMemoryFileSystemProvider()); } bufferLogger.logger = loggerService.createLogger(environmentService.logFile, { id: windowLogId, name: localize('rendererLog', \"Window\") }); // User data let userDataProvider; if (indexedDB) {"}
{"_id":"doc-en-vscode-bf9390b5643f23e0e908cebc9bac1cc47d33a3dae6cbb114fda2ebc227365959","title":"","text":"const inputWidget = this.instantiationService.createInstance(SCMInputWidget, inputElement, this.overflowWidgetsDomNode); templateDisposable.add(inputWidget); return { inputWidget, elementDisposables: templateDisposable.add(new DisposableStore()), templateDisposable }; return { inputWidget, elementDisposables: new DisposableStore(), templateDisposable }; } renderElement(node: ITreeNode, index: number, templateData: InputTemplate): void {"}
{"_id":"doc-en-vscode-9f2abb109954f88e60c6af70f87cb39d88a260ad76a4bf1a9f72333ed477f916","title":"","text":"// Remember widget this.inputWidgets.set(input, templateData.inputWidget); templateData.elementDisposables.add({ dispose: () => this.inputWidgets.delete(input) }); templateData.elementDisposables.add({ dispose: () => { this.inputWidgets.delete(input); this.contentHeights.delete(input); } }); // Widget cursor selections const selections = this.editorSelections.get(input);"}
{"_id":"doc-en-vscode-3c558a74c4255f2382439b55f8be6a63cd3b31710548a9d5809a8c8d7c61d25b","title":"","text":"/** * Adds a status to the list. * @param status The status object. Ideally a single status object that does not change will be * shared as this call will no-op if the status is already set (checked by by object reference). * @param duration An optional duration in milliseconds of the status, when specified the status * will remove itself when the duration elapses unless the status gets re-added. */"}
{"_id":"doc-en-vscode-c7499190d868aff2172f63ad0f0481bcb33259da4ed4d57240a5f6c4a04c3eee","title":"","text":"const timeout = window.setTimeout(() => this.remove(status), duration); this._statusTimeouts.set(status.id, timeout); } const existingStatus = this._statuses.get(status.id); if (existingStatus && existingStatus !== status) { this._onDidRemoveStatus.fire(existingStatus); this._statuses.delete(existingStatus.id); } if (!this._statuses.has(status.id)) { const oldPrimary = this.primary; this._statuses.set(status.id, status);"}
{"_id":"doc-en-vscode-17435e88ee9141f1aacf0089e72c674c233cc48254d4b6de936baa26222339f6","title":"","text":"if (oldPrimary !== newPrimary) { this._onDidChangePrimaryStatus.fire(newPrimary); } } else { this._statuses.set(status.id, status); // It maybe the case that status hasn't changed, there isn't a good way to check this based on // `ITerminalStatus`, so just fire the event anyway. this._onDidAddStatus.fire(status); } }"}
{"_id":"doc-en-vscode-7250e169021d1820be1226cbe175396aa5ee90e71778c8a875d26dd5abc8eee4","title":"","text":"strictEqual(list.statuses[1].icon!.id, Codicon.zap.id, 'zap~spin should have animation removed only'); }); test('add should fire onDidRemoveStatus if same status id with a different object reference was added', () => { const eventCalls: string[] = []; list.onDidAddStatus(() => eventCalls.push('add')); list.onDidRemoveStatus(() => eventCalls.push('remove')); list.add({ id: 'test', severity: Severity.Info }); list.add({ id: 'test', severity: Severity.Info }); deepStrictEqual(eventCalls, [ 'add', 'remove', 'add' ]); }); test('remove', () => { list.add({ id: 'info', severity: Severity.Info }); list.add({ id: 'warning', severity: Severity.Warning });"}
{"_id":"doc-en-vscode-8ba9e76512695e2b359f57c3cdd2c2b4399b25e809726f8713db9827f1345e5d","title":"","text":"if (response === 2) { shell.openExternal('https://aka.ms/vscode-windows-unc'); return this.onUNCHostNotAllowed(path, options); // keep showing the dialog until decision (https://github.com/microsoft/vscode/issues/181956) } return undefined;"}
{"_id":"doc-en-vscode-d28fcf89f98ca5c078be46680f6306a2b5f01cad240f7fad2dd9281592aeba61","title":"","text":"import { Categories } from 'vs/platform/action/common/actionCommonCategories'; import { IWorkingCopyBackupService } from 'vs/workbench/services/workingCopy/common/workingCopyBackup'; import { ResolutionResult, ResultKind } from 'vs/platform/keybinding/common/keybindingResolver'; import { IDialogService } from 'vs/platform/dialogs/common/dialogs'; import { IOutputService } from 'vs/workbench/services/output/common/output'; import { windowLogId } from 'vs/workbench/services/log/common/logConstants'; class InspectContextKeysAction extends Action2 {"}
{"_id":"doc-en-vscode-b64d867e054a980b3d234ac75fb0de2b0376e05836ac03b83433d98a7ea4bdf6","title":"","text":"} run(accessor: ServicesAccessor): void { accessor.get(IStorageService).log(); const storageService = accessor.get(IStorageService); const dialogService = accessor.get(IDialogService); storageService.log(); dialogService.info(localize('storageLogDialogMessage', \"The storage database contents have been logged to the developer tools.\"), localize('storageLogDialogDetails', \"Open developer tools from the menu and select the Console tab.\")); } }"}
{"_id":"doc-en-vscode-59569725db512f96f2d790481e914e5fbff62d2cae62f646687fdfd3bd546639","title":"","text":"const workingCopyService = accessor.get(IWorkingCopyService); const workingCopyBackupService = accessor.get(IWorkingCopyBackupService); const logService = accessor.get(ILogService); const outputService = accessor.get(IOutputService); const backups = await workingCopyBackupService.getBackups();"}
{"_id":"doc-en-vscode-71e30c3dbd054bcaa5b51d64d5d71d4903ff794c6f9ce8472151c4ed76116eaf","title":"","text":"]; logService.info(msg.join('n')); outputService.showChannel(windowLogId, true); } }"}
{"_id":"doc-en-vscode-f27fb48b975ceb9dd0759ddcbcd0ee03fdc89518901ea5338584d9859a24df6a","title":"","text":"EditorOption.ariaLabel, 'ariaLabel', nls.localize('editorViewAccessibleLabel', \"Editor content\") )), screenReaderAnnounceInlineSuggestion: register(new EditorBooleanOption( EditorOption.screenReaderAnnounceInlineSuggestion, 'screenReaderAnnounceInlineSuggestion', false, EditorOption.screenReaderAnnounceInlineSuggestion, 'screenReaderAnnounceInlineSuggestion', true, { description: nls.localize('screenReaderAnnounceInlineSuggestion', \"Control whether inline suggestions are announced by a screen reader.\"), tags: ['accessibility']"}
{"_id":"doc-en-vscode-218929e60f9861f65451950ce872126db14715dbd94d6a1e1bdc664b030ab4a7","title":"","text":"'xterm-addon-canvas': `${baseNodeModulesPath}/xterm-addon-canvas/lib/xterm-addon-canvas.js`, 'xterm-addon-image': `${baseNodeModulesPath}/xterm-addon-image/lib/xterm-addon-image.js`, 'xterm-addon-search': `${baseNodeModulesPath}/xterm-addon-search/lib/xterm-addon-search.js`, 'xterm-addon-serialize': `${baseNodeModulesPath}/xterm-addon-serialize/lib/xterm-addon-serialize.js`, 'xterm-addon-unicode11': `${baseNodeModulesPath}/xterm-addon-unicode11/lib/xterm-addon-unicode11.js`, 'xterm-addon-webgl': `${baseNodeModulesPath}/xterm-addon-webgl/lib/xterm-addon-webgl.js`, '@vscode/iconv-lite-umd': `${baseNodeModulesPath}/@vscode/iconv-lite-umd/lib/iconv-lite-umd.js`,"}
{"_id":"doc-en-vscode-5c9aebbe602fa2496232a2c0ff29e53b5e056e4ad7dcfb1085571baab4d1d1dd","title":"","text":"entryId, name: item.entry.name, text: item.entry.text, command: typeof item.entry.command === 'string' ? item.entry.command : undefined, command: typeof item.entry.command === 'string' ? item.entry.command : typeof item.entry.command === 'object' ? item.entry.command.id : undefined, priority: item.priority, alignLeft: item.alignment === StatusbarAlignment.LEFT };"}
{"_id":"doc-en-vscode-ae2484f3fefb68c8f492b0b8a5a8eb8aa1fd8c2ee6c044f1feaca33514ccf46f","title":"","text":"ExtensionIdentifier.toKey(entry.description.identifier), candidate.name ?? entry.description.displayName ?? entry.description.name, candidate.text, undefined, undefined, undefined, undefined, undefined, candidate.command ? { id: candidate.command, title: candidate.name } : undefined, undefined, undefined, candidate.alignment === 'left', candidate.priority, undefined"}
{"_id":"doc-en-vscode-f57e004fd27a62eca19123e315abf8a0d196f1f9ffcb404e685be8ccb6548203","title":"","text":"throw e; } let label; if (claims.name && claims.email) { label = `${claims.name} - ${claims.email}`; } else { label = claims.email ?? claims.unique_name ?? claims.preferred_username ?? 'user@example.com'; } const id = `${claims.tid}/${(claims.oid ?? (claims.altsecid ?? '' + claims.ipd ?? ''))}`; const sessionId = existingId || `${id}/${randomUUID()}`; this._logger.trace(`[${scopeData.scopeStr}] '${sessionId}' Token response parsed successfully.`);"}
{"_id":"doc-en-vscode-e1114950e43ff12ef85837341c6b61b4855a0d3ab9145b921fa563a72b5dac7f","title":"","text":"scope: scopeData.scopeStr, sessionId, account: { label, label: claims.email ?? claims.preferred_username ?? claims.unique_name ?? 'user@example.com', id, type: claims.tid === MSA_TID || claims.tid === MSA_PASSTHRU_TID ? MicrosoftAccountType.MSA : MicrosoftAccountType.AAD }"}
{"_id":"doc-en-vscode-da33159f2d7fdb0ab8e01dfebddd69ab63ec3d32911a782294f3e07ee2b12414","title":"","text":"if (account.canSignOut) { const signOutAction = disposables.add(new Action('signOut', localize('signOut', \"Sign Out\"), undefined, true, async () => { const allSessions = await this.authenticationService.getSessions(providerId); const sessionsForAccount = allSessions.filter(s => s.account.id === account.id); const sessionsForAccount = allSessions.filter(s => s.account.label === account.label); return await this.authenticationService.removeAccountSessions(providerId, account.label, sessionsForAccount); })); providerSubMenuActions.push(signOutAction);"}
{"_id":"doc-en-vscode-a77f1c8bd857b97085af1b0b96ff872fddb15f55a69660d25570ef23b4c79ac8","title":"","text":"private async addOrUpdateAccount(providerId: string, account: AuthenticationSessionAccount): Promise { let accounts = this.groupedAccounts.get(providerId); if (accounts) { const existingAccount = accounts.find(a => a.id === account.id); if (existingAccount) { // Update the label if it has changed if (existingAccount.label !== account.label) { existingAccount.label = account.label; } return; } } else { if (!accounts) { accounts = []; this.groupedAccounts.set(providerId, accounts); } const sessionFromEmbedder = await this.sessionFromEmbedder.value; // If the session stored from the embedder allows sign out, then we can treat it and all others as sign out-able let canSignOut = !!sessionFromEmbedder?.canSignOut; if (!canSignOut) { if (sessionFromEmbedder?.id) { const sessions = (await this.authenticationService.getSessions(providerId)).filter(s => s.account.id === account.id); canSignOut = !sessions.some(s => s.id === sessionFromEmbedder.id); } else { // The default if we don't have a session from the embedder is to allow sign out canSignOut = true; } let canSignOut = true; if ( sessionFromEmbedder\t\t\t\t\t\t\t\t\t\t\t\t// if we have a session from the embedder && !sessionFromEmbedder.canSignOut\t\t\t\t\t\t\t\t// and that session says we can't sign out && (await this.authenticationService.getSessions(providerId))\t// and that session is associated with the account we are adding/updating .some(s => s.id === sessionFromEmbedder.id && s.account.id === account.id ) ) { canSignOut = false; } accounts.push({ ...account, canSignOut }); const existingAccount = accounts.find(a => a.label === account.label); if (existingAccount) { // if we have an existing account and we discover that we // can't sign out of it, update the account to mark it as \"can't sign out\" if (!canSignOut) { existingAccount.canSignOut = canSignOut; } } else { accounts.push({ ...account, canSignOut }); } } private removeAccount(providerId: string, account: AuthenticationSessionAccount): void {"}
{"_id":"doc-en-vscode-9120e7133451b2006ff58dacf2cd08d7f9a3fd3126d01add961f82e9a505f8e6","title":"","text":"\"ts-loader\": \"^9.4.2\", \"ts-node\": \"^10.9.1\", \"tsec\": \"0.1.4\", \"typescript\": \"^5.2.0-dev.20230524\", \"typescript\": \"^5.2.0-dev.20230602\", \"typescript-formatter\": \"7.1.0\", \"underscore\": \"^1.12.1\", \"util\": \"^0.12.4\","}
{"_id":"doc-en-vscode-cc1f0c6af42de75b918cf39e267f173717bde57d893c34db333493667cce29d3","title":"","text":"resolved \"https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6\" integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ== typescript@^5.2.0-dev.20230524: version \"5.2.0-dev.20230524\" resolved \"https://registry.yarnpkg.com/typescript/-/typescript-5.2.0-dev.20230524.tgz#c2714b82f5ef8c63328a253692ae0b8c244c86d6\" integrity sha512-1XzSUJCt31jm7jIZ3vBKzK46ZxnmqX2VdVg/dur9AIaz9WmidrABs7F8H8d4onpIV8RYD/L6xW6MXR5EHjl+LA== typescript@^5.2.0-dev.20230602: version \"5.2.0-dev.20230602\" resolved \"https://registry.yarnpkg.com/typescript/-/typescript-5.2.0-dev.20230602.tgz#01e2055aa8d8bde4431947c0c048c07c23cc6027\" integrity sha512-LenKdxmkwzZRmEKzShAq83TvEuvCGR8pCYBe0VpUTuJ7NMSK4r2yV2GTmJrSqtk8IoJAmc+PfymMQIfwX1JGQQ== typical@^4.0.0: version \"4.0.0\""}
{"_id":"doc-en-vscode-5590250057f5b7adc63fef81e7ef26de565ad6729694f81777993c1587dd0384","title":"","text":"})); } stopWebviewFind() { this._notebookEditor.findStop(); } override dispose() { this.clearDecorations(); super.dispose();"}
{"_id":"doc-en-vscode-94685dd68e49b769dac6f32bd7983e24521f468e876112443f7ea5f0c141101f","title":"","text":"this._notebookUpdateScheduler.schedule(); }) ?? null; this._findMatchDecorationModel?.stopWebviewFind(); this._findMatchDecorationModel?.dispose(); this._findMatchDecorationModel = new FindMatchDecorationModel(this._notebookEditorWidget); }"}
{"_id":"doc-en-vscode-f4adf5e431fd8d8e89f5696b68c7a19a4bbca6838dc3b27501bb848cf9c1aa8a","title":"","text":"} if (this._findMatchDecorationModel) { this._findMatchDecorationModel?.stopWebviewFind(); this._findMatchDecorationModel?.dispose(); this._findMatchDecorationModel = undefined; }"}
{"_id":"doc-en-vscode-dcb125d3a0714bfc15dafd14114a7291015a0cf62943c4249d2865a3bfd8a1dd","title":"","text":"get title(): string { const firstRequestMessage = this._requests[0]?.message; if (typeof firstRequestMessage === 'string') { return firstRequestMessage; } else if (firstRequestMessage) { return firstRequestMessage.message; } else { return ''; } const message = typeof firstRequestMessage === 'string' ? firstRequestMessage : firstRequestMessage?.message ?? ''; return message.split('n')[0].substring(0, 50); } constructor("}
{"_id":"doc-en-vscode-7464e1578b0b6a0d328fb749304d3ca5f0dc9c6d1c61db7bd27322d718e283f0","title":"","text":"const model = this.model.read(reader); const suggestion = model?.selectedInlineCompletion.read(reader); const ghostText = model?.ghostText.read(reader); const selectedSuggestItem = model?.selectedSuggestItem.read(reader); this.inlineCompletionVisible.set(selectedSuggestItem === undefined && ghostText !== undefined && !ghostText.isEmpty()); this.inlineCompletionVisible.set(ghostText !== undefined && !ghostText.isEmpty()); if (ghostText && suggestion) { this.suppressSuggestions.set(suggestion.inlineCompletion.source.inlineCompletions.suppressSuggestions);"}
{"_id":"doc-en-vscode-294e5aa0e8e7ddaecb30bce7b4662b41da173a940be3ca2b060d2cf90c5ce42c","title":"","text":"*--------------------------------------------------------------------------------------------*/ import { Event } from 'vs/base/common/event'; import { Lazy } from 'vs/base/common/lazy'; import { IDisposable } from 'vs/base/common/lifecycle'; import { ICodeEditor } from 'vs/editor/browser/editorBrowser'; import { IBulkEditService } from 'vs/editor/browser/services/bulkEditService';"}
{"_id":"doc-en-vscode-f2c0b2c5bc13426904a3664c7d248e855da7e115e13854deb84e385586cc0475","title":"","text":"export class LivePreviewStrategy extends LiveStrategy { private readonly _diffZone: InlineChatLivePreviewWidget; private readonly _previewZone: InlineChatFileCreatePreviewWidget; private readonly _diffZone: Lazy; private readonly _previewZone: Lazy; constructor( session: Session,"}
{"_id":"doc-en-vscode-0f25af9419e2e74ae95b890dbe8d72a4e60e4c8ca877314fa4fb29e252f66e4c","title":"","text":") { super(session, editor, widget, contextKeyService, storageService, bulkEditService, editorWorkerService, instaService); this._diffZone = instaService.createInstance(InlineChatLivePreviewWidget, editor, session); this._previewZone = instaService.createInstance(InlineChatFileCreatePreviewWidget, editor); this._diffZone = new Lazy(() => instaService.createInstance(InlineChatLivePreviewWidget, editor, session)); this._previewZone = new Lazy(() => instaService.createInstance(InlineChatFileCreatePreviewWidget, editor)); } override dispose(): void { this._diffZone.hide(); this._diffZone.dispose(); this._previewZone.hide(); this._previewZone.dispose(); this._diffZone.rawValue?.hide(); this._diffZone.rawValue?.dispose(); this._previewZone.rawValue?.hide(); this._previewZone.rawValue?.dispose(); super.dispose(); }"}
{"_id":"doc-en-vscode-78e9539dfa204f51106172131aad874f52674232a0e605b14990898df774f07a","title":"","text":"this._updateSummaryMessage(); if (this._diffEnabled) { this._diffZone.show(); this._diffZone.value.show(); } if (response.singleCreateFileEdit) { this._previewZone.showCreation(this._session.wholeRange.value, response.singleCreateFileEdit.uri, await Promise.all(response.singleCreateFileEdit.edits)); this._previewZone.value.showCreation(this._session.wholeRange.value, response.singleCreateFileEdit.uri, await Promise.all(response.singleCreateFileEdit.edits)); } else { this._previewZone.hide(); this._previewZone.value.hide(); } } override async undoChanges(response: EditResponse): Promise { this._diffZone.lockToDiff(); this._diffZone.value.lockToDiff(); super.undoChanges(response); } protected override _doToggleDiff(): void { const scrollState = StableEditorScrollState.capture(this._editor); if (this._diffEnabled) { this._diffZone.show(); this._diffZone.value.show(); } else { this._diffZone.hide(); this._diffZone.value.hide(); } scrollState.restore(this._editor); } override hasFocus(): boolean { return super.hasFocus() || this._diffZone.hasFocus() || this._previewZone.hasFocus(); return super.hasFocus() || this._diffZone.value.hasFocus() || this._previewZone.value.hasFocus(); } }"}
{"_id":"doc-en-vscode-f5a6558e251edbaea4efde306a8dc03cb890a7424926ef025a1db92973a9bffa","title":"","text":"async getLocalExtensions(profile: IUserDataProfile): Promise { return this.withProfileScopedServices(profile, async (extensionEnablementService) => { const result: Array = []; const result = new Map(); const installedExtensions = await this.extensionManagementService.getInstalled(undefined, profile.extensionsResource); const disabledExtensions = extensionEnablementService.getDisabledExtensions(); for (const extension of installedExtensions) {"}
{"_id":"doc-en-vscode-6bdf54251a78089e0349f21545f976048f921cd3b71e23d7c552ad151acaf8b1","title":"","text":"continue; } } const existing = result.get(identifier.id.toLowerCase()); if (existing?.disabled) { // Remove the duplicate disabled extension result.delete(identifier.id.toLowerCase()); } const profileExtension: IProfileExtension = { identifier, displayName: extension.manifest.displayName }; if (disabled) { profileExtension.disabled = true;"}
{"_id":"doc-en-vscode-35f648d14d4ef0dc06bb38e5012ef9ac5390796c0b2d6d7e8ec7a958bbcea327","title":"","text":"if (!profileExtension.version && preRelease) { profileExtension.preRelease = true; } result.push(profileExtension); result.set(profileExtension.identifier.id.toLowerCase(), profileExtension); } return result; return [...result.values()]; }); }"}
{"_id":"doc-en-vscode-686b4bdf470c4e6f1bbc984b651a0c12e126f8cd269ee012162fde49f018d45d","title":"","text":"export class ContentHoverWidget extends ResizableContentWidget { public static ID = 'editor.contrib.resizableContentHoverWidget'; private static _lastDimensions: dom.Dimension = new dom.Dimension(0, 0); private _visibleData: ContentHoverVisibleData | undefined; private _positionPreference: ContentWidgetPositionPreference | undefined;"}
{"_id":"doc-en-vscode-9e40620c70868c76488a8583ddcaf9f243f5ff28ac41d863fb4c7a9fcc8b9545","title":"","text":"} protected override _resize(size: dom.Dimension): void { ContentHoverWidget._lastDimensions = new dom.Dimension(size.width, size.height); this._setAdjustedHoverWidgetDimensions(size); this._resizableNode.layout(size.height, size.width); this._setResizableNodeMaxDimensions();"}
{"_id":"doc-en-vscode-9581f591e68f2d1564acc04e55da66542aee3ba81f3070d119fdca98310fd8a9","title":"","text":"} private _layout(): void { const height = Math.max(this._editor.getLayoutInfo().height / 4, 250); const height = Math.max(this._editor.getLayoutInfo().height / 4, 250, ContentHoverWidget._lastDimensions.height); const width = Math.max(this._editor.getLayoutInfo().width * 0.66, 500, ContentHoverWidget._lastDimensions.width); const { fontSize, lineHeight } = this._editor.getOption(EditorOption.fontInfo); const contentsDomNode = this._hover.contentsDomNode; contentsDomNode.style.fontSize = `${fontSize}px`; contentsDomNode.style.lineHeight = `${lineHeight / fontSize}`; this._setContentsDomNodeMaxDimensions(Math.max(this._editor.getLayoutInfo().width * 0.66, 500), height); this._setContentsDomNodeMaxDimensions(width, height); } private _updateFont(): void {"}
{"_id":"doc-en-vscode-bfa77206b03bc9e0a2cf68d02f24076e83aad853581ce32cce2d2203368630c3","title":"","text":"} private _updateContentsDomNodeMaxDimensions() { const width = Math.max(this._editor.getLayoutInfo().width * 0.66, 500); const height = Math.max(this._editor.getLayoutInfo().height / 4, 250); const height = Math.max(this._editor.getLayoutInfo().height / 4, 250, ContentHoverWidget._lastDimensions.height); const width = Math.max(this._editor.getLayoutInfo().width * 0.66, 500, ContentHoverWidget._lastDimensions.width); this._setContentsDomNodeMaxDimensions(width, height); }"}
{"_id":"doc-en-vscode-247ec37c61bfac48b31f262694677dee85cd811061dec3e92653e6b470264dc5","title":"","text":"} const originalProfile = this.userDataProfileService.currentProfile; await this.userDataProfileImportExportService.createTemporaryProfile(this.userDataProfileService.currentProfile, localize('troubleshoot issue', \"Troubleshoot Issue\"), true); await this.userDataProfileImportExportService.createTroubleshootProfile(); this.state = new TroubleShootState(TroubleshootStage.EXTENSIONS, originalProfile.id); await this.resume(); }"}
{"_id":"doc-en-vscode-a19f26e71765d7620033a370980a16fca7a4d1b8dd90533bf29867fcca74aead","title":"","text":"} } async createTemporaryProfile(profile: IUserDataProfile, name: string, extensionsDisabled: boolean): Promise { const userDataProfilesExportState = this.instantiationService.createInstance(UserDataProfileExportState, profile, extensionsDisabled); async createTroubleshootProfile(): Promise { const userDataProfilesExportState = this.instantiationService.createInstance(UserDataProfileExportState, this.userDataProfileService.currentProfile, true); try { const profileTemplate = await userDataProfilesExportState.getProfileTemplate(name, undefined); await this.importAndSwitch(profileTemplate, true, true, extensionsDisabled, localize('import', \"Create Profile\")); const profileTemplate = await userDataProfilesExportState.getProfileTemplate(localize('troubleshoot issue', \"Troubleshoot Issue\"), undefined); await this.progressService.withProgress({ location: ProgressLocation.Notification, delay: 1000, sticky: true, }, progress => this.importAndSwitchWithProgress(profileTemplate, true, true, true, message => progress.report({ message: localize('troubleshoot profile progress', \"Setting up Troubleshoot Profile: {0}\", message) }))); } finally { userDataProfilesExportState.dispose(); }"}
{"_id":"doc-en-vscode-a78fe55fddde68f194ac630096be0941c50e8bd7eb3773d4306d4fbce08675bd","title":"","text":"command: showWindowLogActionId, }, async (progress) => { progress.report({ message: localize('Importing profile', \"{0} ({1})...\", title, profileTemplate.name) }); const profile = await this.getProfileToImport(profileTemplate, temporaryProfile); if (!profile) { return undefined; } return this.importAndSwitchWithProgress(profileTemplate, temporaryProfile, extensions, extensionsDisabled, message => progress.report({ message: `${title} (${profileTemplate.name}): ${message}` })); }); } if (profileTemplate.settings) { progress.report({ message: localize('progress settings', \"{0} ({1}): Applying Settings...\", title, profileTemplate.name) }); await this.instantiationService.createInstance(SettingsResource).apply(profileTemplate.settings, profile); } if (profileTemplate.keybindings) { progress.report({ message: localize('progress keybindings', \"{0} ({1}): Applying Keyboard Shortcuts...\", title, profileTemplate.name) }); await this.instantiationService.createInstance(KeybindingsResource).apply(profileTemplate.keybindings, profile); } if (profileTemplate.tasks) { progress.report({ message: localize('progress tasks', \"{0} ({1}): Applying Tasks...\", title, profileTemplate.name) }); await this.instantiationService.createInstance(TasksResource).apply(profileTemplate.tasks, profile); } if (profileTemplate.snippets) { progress.report({ message: localize('progress snippets', \"{0} ({1}): Applying Snippets...\", title, profileTemplate.name) }); await this.instantiationService.createInstance(SnippetsResource).apply(profileTemplate.snippets, profile); } if (profileTemplate.globalState) { progress.report({ message: localize('progress global state', \"{0} ({1}): Applying State...\", title, profileTemplate.name) }); await this.instantiationService.createInstance(GlobalStateResource).apply(profileTemplate.globalState, profile); } if (profileTemplate.extensions && extensions) { progress.report({ message: localize('progress extensions', \"{0} ({1}): Applying Extensions...\", title, profileTemplate.name) }); await this.instantiationService.createInstance(ExtensionsResource, extensionsDisabled).apply(profileTemplate.extensions, profile); } private async importAndSwitchWithProgress(profileTemplate: IUserDataProfileTemplate, temporaryProfile: boolean, extensions: boolean, extensionsDisabled: boolean, progress: (message: string) => void): Promise { const profile = await this.getProfileToImport(profileTemplate, temporaryProfile); if (!profile) { return undefined; } progress.report({ message: localize('switching profile', \"{0} ({1}): Applying...\", title, profileTemplate.name) }); await this.userDataProfileManagementService.switchProfile(profile); return profile; }); if (profileTemplate.settings) { progress(localize('progress settings', \"Applying Settings...\")); await this.instantiationService.createInstance(SettingsResource).apply(profileTemplate.settings, profile); } if (profileTemplate.keybindings) { progress(localize('progress keybindings', \"{0}ying Keyboard Shortcuts...\")); await this.instantiationService.createInstance(KeybindingsResource).apply(profileTemplate.keybindings, profile); } if (profileTemplate.tasks) { progress(localize('progress tasks', \"Applying Tasks...\")); await this.instantiationService.createInstance(TasksResource).apply(profileTemplate.tasks, profile); } if (profileTemplate.snippets) { progress(localize('progress snippets', \"Applying Snippets...\")); await this.instantiationService.createInstance(SnippetsResource).apply(profileTemplate.snippets, profile); } if (profileTemplate.globalState) { progress(localize('progress global state', \"Applying State...\")); await this.instantiationService.createInstance(GlobalStateResource).apply(profileTemplate.globalState, profile); } if (profileTemplate.extensions && extensions) { progress(localize('progress extensions', \"Applying Extensions...\")); await this.instantiationService.createInstance(ExtensionsResource, extensionsDisabled).apply(profileTemplate.extensions, profile); } progress(localize('switching profile', \" Applying...\")); await this.userDataProfileManagementService.switchProfile(profile); return profile; } private async resolveProfileContent(resource: URI): Promise {"}
{"_id":"doc-en-vscode-d00e285236d5284d269633f3f1cab5978a6fa90e6a0f665bc43273f2d80935ec","title":"","text":"importProfile(uri: URI, options?: IProfileImportOptions): Promise; showProfileContents(): Promise; createFromCurrentProfile(name: string): Promise; createTemporaryProfile(from: IUserDataProfile, name: string, extensionsDisabled: boolean): Promise; createTroubleshootProfile(): Promise; setProfile(profile: IUserDataProfileTemplate): Promise; }"}
{"_id":"doc-en-vscode-b6ec4ee0598b280e7d57b8c820f08781861d3a8b1c6d3ece51751dc3020e587a","title":"","text":"return markdownTooltip; } private async installAndRunStartCommand(metadata: RemoteExtensionMetadata) { const extensionId = metadata.id; private async installExtension(extensionId: string) { const galleryExtension = (await this.extensionGalleryService.getExtensions([{ id: extensionId }], CancellationToken.None))[0]; await this.extensionManagementService.installFromGallery(galleryExtension, {"}
{"_id":"doc-en-vscode-c112455f6872d40e93474829eabee48e37862dd04548663313f18ea2f6b92863","title":"","text":"donotIncludePackAndDependencies: false, context: { [EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT]: true } }); } private async runRemoteStartCommand(extensionId: string, startCommand: string) { // check to ensure the extension is installed await retry(async () => { const ext = await this.extensionService.getExtension(metadata.id); const ext = await this.extensionService.getExtension(extensionId); if (!ext) { throw Error('Failed to find installed remote extension'); } return ext; }, 300, 10); this.commandService.executeCommand(metadata.startCommand); this.commandService.executeCommand(startCommand); this.telemetryService.publicLog2('workbenchActionExecuted', { id: 'remoteInstallAndRun', detail: extensionId,"}
{"_id":"doc-en-vscode-4f25e262a5a801395ea3107bd337e13324f3871878e5e2ea6c3dd64a1d1df6ce","title":"","text":"quickPick.items = []; quickPick.busy = true; quickPick.placeholder = nls.localize('remote.startActions.installingExtension', 'Installing extension... '); await this.installAndRunStartCommand(remoteExtension); await this.installExtension(remoteExtension.id); quickPick.hide(); await this.runRemoteStartCommand(remoteExtension.id, remoteExtension.startCommand); } else { this.telemetryService.publicLog2('workbenchActionExecuted', {"}
{"_id":"doc-en-vscode-309b573190c2c6cd78bc06cf3bf5382307c186742a7811857701a7e5406000d3","title":"","text":"from: 'remote indicator' }); this.commandService.executeCommand(commandId); quickPick.hide(); } quickPick.hide(); } }));"}
{"_id":"doc-en-vscode-8437340617c8dbe2f9caff6d47ab2244373bb04ac62d024803d78eafe2d22912","title":"","text":"import { ActionBar } from 'vs/base/browser/ui/actionbar/actionbar'; import { AriaRole } from 'vs/base/browser/ui/aria/aria'; import { HoverPosition } from 'vs/base/browser/ui/hover/hoverWidget'; import { IHoverWidget } from 'vs/base/browser/ui/iconLabel/iconHoverDelegate'; import { IHoverDelegate, IHoverWidget } from 'vs/base/browser/ui/iconLabel/iconHoverDelegate'; import { IconLabel, IIconLabelValueOptions } from 'vs/base/browser/ui/iconLabel/iconLabel'; import { KeybindingLabel } from 'vs/base/browser/ui/keybindingLabel/keybindingLabel'; import { IListRenderer, IListVirtualDelegate } from 'vs/base/browser/ui/list/list';"}
{"_id":"doc-en-vscode-15045212ae1adb985dd5e2a8fc3e8807a07166ca51eaca1baa1a5c83120b06f9","title":"","text":"static readonly ID = 'listelement'; constructor(private readonly themeService: IThemeService) { } constructor( private readonly themeService: IThemeService, private readonly hoverDelegate: IHoverDelegate | undefined, ) { } get templateId() { return ListElementRenderer.ID;"}
{"_id":"doc-en-vscode-e9ac5b93684f1c1ae195ca7eb0ca00ce25979955d0f1427c463b4824206d14c3","title":"","text":"const row2 = dom.append(rows, $('.quick-input-list-row')); // Label data.label = new IconLabel(row1, { supportHighlights: true, supportDescriptionHighlights: true, supportIcons: true }); data.label = new IconLabel(row1, { supportHighlights: true, supportDescriptionHighlights: true, supportIcons: true, hoverDelegate: this.hoverDelegate }); data.toDisposeTemplate.push(data.label); data.icon = dom.prepend(data.label.element, $('.quick-input-list-icon'));"}
{"_id":"doc-en-vscode-8f2f934be0df7d90f74966b02fd4edb9dbd65625681133d13373c4749296bcae","title":"","text":"// Detail const detailContainer = dom.append(row2, $('.quick-input-list-label-meta')); data.detail = new IconLabel(detailContainer, { supportHighlights: true, supportIcons: true }); data.detail = new IconLabel(detailContainer, { supportHighlights: true, supportIcons: true, hoverDelegate: this.hoverDelegate }); data.toDisposeTemplate.push(data.detail); // Separator data.separator = dom.append(data.entry, $('.quick-input-list-separator')); // Actions data.actionBar = new ActionBar(data.entry); data.actionBar = new ActionBar(data.entry, this.hoverDelegate ? { hoverDelegate: this.hoverDelegate } : undefined); data.actionBar.domNode.classList.add('quick-input-list-entry-action-bar'); data.toDisposeTemplate.push(data.actionBar);"}
{"_id":"doc-en-vscode-483a5f910553d5264aab9519100de4ab9b8d72862cc73ad3408bbf7ab8fb1374","title":"","text":"// Label const options: IIconLabelValueOptions = { matches: labelHighlights || [], descriptionTitle: element.saneDescription, // If we have a tooltip, we want that to be shown and not any other hover descriptionTitle: element.saneTooltip ? undefined : element.saneDescription, descriptionMatches: descriptionHighlights || [], labelEscapeNewLines: true };"}
{"_id":"doc-en-vscode-497acc3c8bbfb98acaf89985513bb5b0f66d2043cfc516932a40678199d742c5","title":"","text":"data.detail.element.style.display = ''; data.detail.setLabel(element.saneDetail, undefined, { matches: detailHighlights, title: element.saneDetail, // If we have a tooltip, we want that to be shown and not any other hover title: element.saneTooltip ? undefined : element.saneDetail, labelEscapeNewLines: true }); } else {"}
{"_id":"doc-en-vscode-d3e1e2dd10d270d10f51cdee3cf9de5396ec33a242d77e4b00c60b97ac7a76d8","title":"","text":"this.container = dom.append(this.parent, $('.quick-input-list')); const delegate = new ListElementDelegate(); const accessibilityProvider = new QuickInputAccessibilityProvider(); this.list = options.createList('QuickInput', this.container, delegate, [new ListElementRenderer(themeService)], { this.list = options.createList('QuickInput', this.container, delegate, [new ListElementRenderer(themeService, options.hoverDelegate)], { identityProvider: { getId: element => { // always prefer item over separator because if item is defined, it must be the main item type"}
{"_id":"doc-en-vscode-4725c033a49f6c0b5bb1e8d966419dee081b8d495716d29f43a56e48122b164c","title":"","text":"async function copyVscodeDevLink(gitAPI: GitAPI, useSelection: boolean, context: LinkContext, includeRange = true) { try { const permalink = await getLink(gitAPI, useSelection, getVscodeDevHost(), 'headlink', context, includeRange); const permalink = await getLink(gitAPI, useSelection, true, getVscodeDevHost(), 'headlink', context, includeRange); if (permalink) { return vscode.env.clipboard.writeText(permalink); }"}
{"_id":"doc-en-vscode-a115e68b66c5e297a32dee2f3baffbece641c17322e8c5328169b18f8c938249","title":"","text":"async function openVscodeDevLink(gitAPI: GitAPI): Promise { try { const headlink = await getLink(gitAPI, true, getVscodeDevHost(), 'headlink'); const headlink = await getLink(gitAPI, true, false, getVscodeDevHost(), 'headlink'); return headlink ? vscode.Uri.parse(headlink) : undefined; } catch (err) { if (!(err instanceof vscode.CancellationError)) {"}
{"_id":"doc-en-vscode-21117b14ee470a137f0d1f496f4c12e0e2b1827b7328bc121103d2fc541bb231","title":"","text":"return path.split('/').map((segment) => encodeURIComponent(segment)).join('/'); } export async function getLink(gitAPI: GitAPI, useSelection: boolean, hostPrefix?: string, linkType: 'permalink' | 'headlink' = 'permalink', context?: LinkContext, useRange?: boolean): Promise { export async function getLink(gitAPI: GitAPI, useSelection: boolean, shouldEnsurePublished: boolean, hostPrefix?: string, linkType: 'permalink' | 'headlink' = 'permalink', context?: LinkContext, useRange?: boolean): Promise { hostPrefix = hostPrefix ?? 'https://github.com'; const fileAndPosition = getFileAndPosition(context); if (!fileAndPosition) {"}
{"_id":"doc-en-vscode-1d94d97f1672be82b05db7e5ef3390a9625846302fe9c03a291c8e96d9aec45e","title":"","text":"return; } await ensurePublished(gitRepo, uri); if (shouldEnsurePublished) { await ensurePublished(gitRepo, uri); } let repo: { owner: string; repo: string } | undefined; gitRepo.state.remotes.find(remote => {"}
{"_id":"doc-en-vscode-8115eddd5d25a018e72b577e7adf7965127b60d8ca0227cba716bda6983036b5","title":"","text":"} } for (let i = (renderActions.length - 1); i !== 0; i--) { for (let i = (renderActions.length - 1); i > 0; i--) { const temp = renderActions[i]; if (temp.size === 0) { continue;"}
{"_id":"doc-en-vscode-f803cf6606640b7ad709b93d8c66d76683347f88a3890c802f56a873f7984091","title":"","text":"const data = this.editorTransfer.getData(DraggedEditorIdentifier.prototype); if (Array.isArray(data)) { const draggedEditor = data[0].identifier; const targetGroup = ensureTargetGroup(); const sourceGroup = this.accessor.getGroup(draggedEditor.groupId); if (sourceGroup) { if (sourceGroup === targetGroup) { return; const copyEditor = this.isCopyOperation(event, draggedEditor); let targetGroup: IEditorGroupView | undefined = undefined; // Optimization: if we move the last editor of an editor group // and we are configured to close empty editor groups, we can // rather move the entire editor group according to the direction if (this.editorGroupService.partOptions.closeEmptyGroups && sourceGroup.count === 1 && typeof splitDirection === 'number' && !copyEditor) { targetGroup = this.accessor.moveGroup(sourceGroup, this.groupView, splitDirection); } // Open in target group const options = fillActiveEditorViewState(sourceGroup, draggedEditor.editor, { pinned: true,\t\t\t\t\t\t\t\t\t\t// always pin dropped editor sticky: sourceGroup.isSticky(draggedEditor.editor),\t// preserve sticky state }); // In any other case do a normal move/copy operation else { targetGroup = ensureTargetGroup(); if (sourceGroup === targetGroup) { return; } const copyEditor = this.isCopyOperation(event, draggedEditor); if (!copyEditor) { sourceGroup.moveEditor(draggedEditor.editor, targetGroup, options); } else { sourceGroup.copyEditor(draggedEditor.editor, targetGroup, options); // Open in target group const options = fillActiveEditorViewState(sourceGroup, draggedEditor.editor, { pinned: true,\t\t\t\t\t\t\t\t\t\t// always pin dropped editor sticky: sourceGroup.isSticky(draggedEditor.editor),\t// preserve sticky state }); if (!copyEditor) { sourceGroup.moveEditor(draggedEditor.editor, targetGroup, options); } else { sourceGroup.copyEditor(draggedEditor.editor, targetGroup, options); } } // Ensure target has focus"}
{"_id":"doc-en-vscode-ba6ab063da7bda3b7128428786a23326781a4c1c3b2ce0249e7cff58bb80d556","title":"","text":"\"jschardet\": \"3.0.0\", \"keytar\": \"7.9.0\", \"minimist\": \"^1.2.6\", \"native-is-elevated\": \"0.6.0\", \"native-is-elevated\": \"0.7.0\", \"native-keymap\": \"^3.3.2\", \"native-watchdog\": \"^1.4.1\", \"node-pty\": \"1.1.0-beta1\","}
{"_id":"doc-en-vscode-2ba8d883dff4c47bd3cefd095c25a6970c226e981a98d0b5e9cc49056b589c72","title":"","text":"resolved \"https://registry.yarnpkg.com/napi-build-utils/-/napi-build-utils-1.0.2.tgz#b1fddc0b2c46e380a0b7a76f984dd47c41a13806\" integrity sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg== native-is-elevated@0.6.0: version \"0.6.0\" resolved \"https://registry.yarnpkg.com/native-is-elevated/-/native-is-elevated-0.6.0.tgz#9fd9c9c53bfd87d6e6af15a5d6bcb8e592b7ec79\" integrity sha512-HW1wDo4WYZC7W68kaS0cs7FtDTrcFoAY1APc4SlU4Un/FuL7pjilXFEteBCA58EWClKk0912JLIoekOJ/NohnQ== native-is-elevated@0.7.0: version \"0.7.0\" resolved \"https://registry.yarnpkg.com/native-is-elevated/-/native-is-elevated-0.7.0.tgz#77499639e232edad1886403969e2bf236294e7af\" integrity sha512-tp8hUqK7vexBiyIWKMvmRxdG6kqUtO+3eay9iB0i16NYgvCqE5wMe1Y0guHilpkmRgvVXEWNW4et1+qqcwpLBA== native-keymap@^3.3.2: version \"3.3.3\""}
{"_id":"doc-en-vscode-769bf99d125a4a70ee879259e44b45f6995d45e795e13b9ecf1ab88d653d8b1c","title":"","text":"import * as dom from 'vs/base/browser/dom'; import { StandardMouseEvent } from 'vs/base/browser/mouseEvent'; import { createTrustedTypesPolicy } from 'vs/base/browser/trustedTypes'; import { equals } from 'vs/base/common/arrays'; import { Disposable, DisposableStore } from 'vs/base/common/lifecycle'; import 'vs/css!./stickyScroll'; import { ICodeEditor, IOverlayWidget, IOverlayWidgetPosition } from 'vs/editor/browser/editorBrowser';"}
{"_id":"doc-en-vscode-173418e851d6c69e53c9c3b2fa17fc0592198b2f08dbffaa5b943635d3e5cd95","title":"","text":"readonly lineNumbers: number[], readonly lastLineRelativePosition: number ) { } public equals(other: StickyScrollWidgetState | undefined): boolean { return !!other && this.lastLineRelativePosition === other.lastLineRelativePosition && equals(this.lineNumbers, other.lineNumbers); } } const _ttPolicy = createTrustedTypesPolicy('stickyScrollViewLayer', { createHTML: value => value });"}
{"_id":"doc-en-vscode-1a6794144c2358cd6adcb9dbf20d134d681f14f74c592cd2f22bb672028ef540","title":"","text":"private _lastLineRelativePosition: number = 0; private _hoverOnLine: number = -1; private _hoverOnColumn: number = -1; private _state: StickyScrollWidgetState | undefined; constructor( private readonly _editor: ICodeEditor"}
{"_id":"doc-en-vscode-839c328769b10b34bdf3011a36ef5ed66cc77ce3c5ae9c3f7a9ff29e88a0cfe1","title":"","text":"} setState(state: StickyScrollWidgetState): void { if (state.equals(this._state)) { return; } this._state = state; dom.clearNode(this._rootDomNode); this._disposableStore.clear(); this._lineNumbers.length = 0;"}
{"_id":"doc-en-vscode-f7fc4e1be384b888b0bb220a91036edbc25df001f2d9be3c5473ca26f03ac1b7","title":"","text":"private _onDidChangeTaskSystemInfo: Emitter = new Emitter(); private _willRestart: boolean = false; public onDidChangeTaskSystemInfo: Event = this._onDidChangeTaskSystemInfo.event; private _onDidReconnectToTasks: Emitter = new Emitter(); public onDidReconnectToTasks: Event = this._onDidReconnectToTasks.event; constructor( @IConfigurationService private readonly _configurationService: IConfigurationService,"}
{"_id":"doc-en-vscode-d0be11384bcf6dc9d5b0f4712a0994bf98b114b98cdc900e9f218766069b7c91","title":"","text":"} this.getWorkspaceTasks(TaskRunSource.Reconnect).then(async () => { this._tasksReconnected = await this._reconnectTasks(); this._onDidReconnectToTasks.fire(); }); }"}
{"_id":"doc-en-vscode-3d1ad84ed92f1e682a04d35639f3a39a7ff0901e316f21c79872ac59b0dd6547","title":"","text":"} if (executeResult.kind === TaskExecuteKind.Active) { const active = executeResult.active; if (active && active.same && runSource === TaskRunSource.FolderOpen) { // ignore, the task is already active, likely from being reconnected. this._logService.debug('Ignoring task that is already active', executeResult.task); return executeResult.promise; } if (active && active.same) { if (this._taskSystem?.isTaskVisible(executeResult.task)) { const message = nls.localize('TaskSystem.activeSame.noBackground', 'The task '{0}' is already active.', executeResult.task.getQualifiedLabel());"}
{"_id":"doc-en-vscode-12e4fd38ace4f9562d1e68a8c601d27c545f03c5fcb84ad4a7ffcb4f4ab6c3a4","title":"","text":"@IWorkspaceTrustManagementService private readonly _workspaceTrustManagementService: IWorkspaceTrustManagementService, @ILogService private readonly _logService: ILogService) { super(); if (this._workspaceTrustManagementService.isWorkspaceTrusted()) { this._tryRunTasks(); } this._taskService.onDidReconnectToTasks((() => { if (this._workspaceTrustManagementService.isWorkspaceTrusted()) { this._tryRunTasks(); } })); this._register(this._workspaceTrustManagementService.onDidChangeTrust(async trusted => { if (trusted) { await this._tryRunTasks();"}
{"_id":"doc-en-vscode-3f08ec0882a7b50480186a32eb6f13df100a6965bdfb21fae5f263bd0b81a062","title":"","text":"export interface ITaskService { readonly _serviceBrand: undefined; onDidStateChange: Event; onDidReconnectToTasks: Event; supportsMultipleTaskExecutions: boolean; configureAction(): Action;"}
{"_id":"doc-en-vscode-372fda74f98576d348cdc9370aa0027376dc6073c0aff7c0c287223f443888b3","title":"","text":"} }; observable.addObserver(observer); observable.reportChanges(); return { dispose() { observable.removeObserver(observer);"}
{"_id":"doc-en-vscode-50fd00ea3a88b3d5961ac9722030ca53ec418084227005496c3efaefdc8b32ab","title":"","text":"*--------------------------------------------------------------------------------------------*/ import * as assert from 'assert'; import { Emitter } from 'vs/base/common/event'; import { Emitter, Event } from 'vs/base/common/event'; import { ISettableObservable, autorun, derived, ITransaction, observableFromEvent, observableValue, transaction, keepAlive } from 'vs/base/common/observable'; import { BaseObservable, IObservable, IObserver } from 'vs/base/common/observableImpl/base';"}
{"_id":"doc-en-vscode-f117cefe0ec727f9da83837d91167b365398d911fdf571d7ea13c77843ed206a","title":"","text":"myObservable2.set(1, tx); }); }); test('bug: fromObservableLight doesnt subscribe', () => { const log = new Log(); const myObservable = new LoggingObservableValue('myObservable', 0, log); const myDerived = derived('myDerived', reader => { const val = myObservable.read(reader); log.log(`myDerived.computed(myObservable2: ${val})`); return val % 10; }); const e = Event.fromObservableLight(myDerived); log.log('event created'); e(() => { log.log('event fired'); }); myObservable.set(1, undefined); assert.deepStrictEqual(log.getAndClearEntries(), [ 'event created', 'myObservable.firstObserverAdded', 'myObservable.get', 'myDerived.computed(myObservable2: 0)', 'myObservable.set (value 1)', 'myObservable.get', 'myDerived.computed(myObservable2: 1)', 'event fired', ]); }); }); export class LoggingObserver implements IObserver {"}
{"_id":"doc-en-vscode-75f31200e8e7b00fe7238548a71443249b99abdfea8a2aab811d8dc87030c07c","title":"","text":"private _isInLayout: boolean = false; private readonly _viewContext: ViewContext; private _webviewElement: FastDomNode | null = null; get webviewElement() {"}
{"_id":"doc-en-vscode-f200cc85e92b8aeb6be73d5b45300bcd3d94df50a970dde4aaceb45b73433407","title":"","text":") { super(listUser, container, delegate, renderers, options, contextKeyService, listService, configurationService, instantiationService); NOTEBOOK_CELL_LIST_FOCUSED.bindTo(this.contextKeyService).set(true); this._viewContext = viewContext; this._previousFocusedElements = this.getFocusedElements(); this._localDisposableStore.add(this.onDidChangeFocus((e) => { this._previousFocusedElements.forEach(element => {"}
{"_id":"doc-en-vscode-8f1fb7e624851529f034463f4120e96ae1a01bd0849d0d2b2b1f0977410fb0a5","title":"","text":"const scrollHeight = this.view.scrollHeight; const scrollTop = this.getViewScrollTop(); const wrapperBottom = this.getViewScrollBottom(); const topInsertToolbarHeight = this._viewContext.notebookOptions.computeTopInsertToolbarHeight(this.viewModel?.viewType); this.view.setScrollTop(scrollHeight - (wrapperBottom - scrollTop) - topInsertToolbarHeight); this.view.setScrollTop(scrollHeight - (wrapperBottom - scrollTop)); } //#region Reveal Cell synchronously"}
{"_id":"doc-en-vscode-74c6231d9272d27abe361ae88dc7c495b29a73a8be77a1bf8bc09c1ebf8f48f0","title":"","text":"} getViewScrollBottom() { const topInsertToolbarHeight = this._viewContext.notebookOptions.computeTopInsertToolbarHeight(this.viewModel?.viewType); return this.getViewScrollTop() + this.view.renderHeight - topInsertToolbarHeight; return this.getViewScrollTop() + this.view.renderHeight; } setCellEditorSelection(cell: ICellViewModel, range: Range) {"}
{"_id":"doc-en-vscode-ce7f7e11c24f50e1f720a0a3bc1971b5c3f79d6fff6ee59b02bdd1085ac6d7fb","title":"","text":"import * as assert from 'assert'; import { DisposableStore } from 'vs/base/common/lifecycle'; import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; import { TestInstantiationService } from 'vs/platform/instantiation/test/common/instantiationServiceMock'; import { CellKind } from 'vs/workbench/contrib/notebook/common/notebookCommon'; import { INotebookExecutionStateService } from 'vs/workbench/contrib/notebook/common/notebookExecutionStateService'; import { NotebookOptions } from 'vs/workbench/contrib/notebook/browser/notebookOptions'; import { createNotebookCellList, setupInstantiationService, withTestNotebook } from 'vs/workbench/contrib/notebook/test/browser/testNotebookEditor'; suite('NotebookCellList', () => { let disposables: DisposableStore; let instantiationService: TestInstantiationService; let notebookDefaultOptions: NotebookOptions; let topInsertToolbarHeight: number; suiteSetup(() => { disposables = new DisposableStore(); instantiationService = setupInstantiationService(disposables); notebookDefaultOptions = new NotebookOptions(instantiationService.get(IConfigurationService), instantiationService.get(INotebookExecutionStateService), false); topInsertToolbarHeight = notebookDefaultOptions.computeTopInsertToolbarHeight(); }); suiteTeardown(() => disposables.dispose());"}
{"_id":"doc-en-vscode-b31fcff52d614dbbb3f2bd0d9dd900c460382dafcfee4af9fb9abda79fd6019e","title":"","text":"cellList.attachViewModel(viewModel); // render height 210, it can render 3 full cells and 1 partial cell cellList.layout(210 + topInsertToolbarHeight, 100); cellList.layout(210, 100); // scroll a bit, scrollTop to bottom: 5, 215 cellList.scrollTop = 5;"}
{"_id":"doc-en-vscode-d9089b7d206a7bc86151e64569717f2e5bbdd6b3367fda7237bdd08272c50740","title":"","text":"cellList.attachViewModel(viewModel); // render height 210, it can render 3 full cells and 1 partial cell cellList.layout(210 + topInsertToolbarHeight, 100); cellList.layout(210, 100); // init scrollTop and scrollBottom assert.deepStrictEqual(cellList.scrollTop, 0);"}
{"_id":"doc-en-vscode-f165b81e7f28164bc7b1a8c7055bd40024185f88e1f0413b38cfc045797e87f7","title":"","text":"if (this._isVisible) { const notificationsList = assertIsDefined(this.notificationsList); // Make visible and focus first notificationsList.show(true /* focus */); // Make visible notificationsList.show(); // Focus first notificationsList.focusFirst(); return; // already visible"}
{"_id":"doc-en-vscode-b195a9b98e80890c980cc6d12007d5d17708c1edd5753f30f02e7902e63f7f03","title":"","text":"import { NotificationsListDelegate, NotificationRenderer } from 'vs/workbench/browser/parts/notifications/notificationsViewer'; import { CopyNotificationMessageAction } from 'vs/workbench/browser/parts/notifications/notificationsActions'; import { IContextMenuService } from 'vs/platform/contextview/browser/contextView'; import { assertIsDefined, assertAllDefined } from 'vs/base/common/types'; import { assertAllDefined } from 'vs/base/common/types'; import { NotificationFocusedContext } from 'vs/workbench/common/contextkeys'; import { Disposable } from 'vs/base/common/lifecycle'; import { AriaRole } from 'vs/base/browser/ui/aria/aria';"}
{"_id":"doc-en-vscode-eb0031e9fadb3bbe4e030d7c271ebe670135e3687174d5cc00e7d8c974a155ab","title":"","text":"super(); } show(focus?: boolean): void { show(): void { if (this.isVisible) { if (focus) { const list = assertIsDefined(this.list); list.domFocus(); } return; // already visible }"}
{"_id":"doc-en-vscode-b7f3e6d47d285dad43f0a9b7ec50016e580f727aba8364af68d83ca332f43c85","title":"","text":"// Make visible this.isVisible = true; // Focus if (focus) { const list = assertIsDefined(this.list); list.domFocus(); } } private createNotificationsList(): void {"}
{"_id":"doc-en-vscode-fedd75f9172a6d6fc8da4bce5fa7894b4edeb0ba5bc04b39f7c01dede229a120","title":"","text":"} focusFirst(): void { if (!this.isVisible || !this.list) { return; // hidden if (!this.list) { return; // not created yet } this.list.focusFirst();"}
{"_id":"doc-en-vscode-5362e0c4cae0d0c211f89e6a34f2d6ba57dee7c97251f163315f876c713e4e57","title":"","text":"} hasFocus(): boolean { if (!this.isVisible || !this.listContainer) { return false; // hidden if (!this.listContainer) { return false; // not created yet } return isAncestor(document.activeElement, this.listContainer);"}
{"_id":"doc-en-vscode-53cf6ac67afacd1dfbbafaea9b846740031c1f9de77cb803bb85eb3b35c0ba9e","title":"","text":"} } const textTokenTypes = new Set(['paragraph_open', 'inline', 'heading_open', 'ordered_list_open', 'bullet_list_open', 'list_item_open', 'blockquote_open']); async function shouldSmartPasteForSelection( parser: IMdParser, document: ITextDocument,"}
{"_id":"doc-en-vscode-3deff7abfcf244c2010e10908147fc40496a1a56d1cd0ad4855ba8c371b93f27","title":"","text":"if (token.isCancellationRequested) { return false; } for (const token of tokens) { if (token.map && token.map[0] <= selectedRange.start.line && token.map[1] > selectedRange.start.line) { if (!['paragraph_open', 'inline', 'heading_open', 'ordered_list_open', 'bullet_list_open', 'list_item_open', 'blockquote_open'].includes(token.type)) { for (let i = 0; i < tokens.length; i++) { const token = tokens[i]; if (!token.map) { continue; } if (token.map[0] <= selectedRange.start.line && token.map[1] > selectedRange.start.line) { if (!textTokenTypes.has(token.type)) { return false; } } // Special case for html such as: // // // | // // // In this case pasting will cause the html block to be created even though the cursor is not currently inside a block if (token.type === 'html_block' && token.map[1] === selectedRange.start.line) { const nextToken = tokens.at(i + 1); // The next token does not need to be a html_block, but it must be on the next line if (nextToken?.map?.[0] === selectedRange.end.line + 1) { return false; } }"}
{"_id":"doc-en-vscode-aabd82a1d0c0bb136fae1a23e247f0d14eed4896e954d67087fb234afbd586e7","title":"","text":" /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import * as assert from 'assert'; import 'mocha'; import * as vscode from 'vscode'; import { InMemoryDocument } from '../client/inMemoryDocument'; import { PasteUrlAsMarkdownLink, findValidUriInText, shouldInsertMarkdownLinkByDefault } from '../languageFeatures/copyFiles/pasteUrlProvider'; import { createInsertUriListEdit } from '../languageFeatures/copyFiles/shared'; import { createNewMarkdownEngine } from './engine'; import { noopToken } from '../util/cancellation'; function makeTestDoc(contents: string) { return new InMemoryDocument(vscode.Uri.file('test.md'), contents); } suite('createEditAddingLinksForUriList', () => { test('Markdown Link Pasting should occur for a valid link (end to end)', async () => { // createEditAddingLinksForUriList -> checkSmartPaste -> tryGetUriListSnippet -> createUriListSnippet -> createLinkSnippet const result = createInsertUriListEdit( new InMemoryDocument(vscode.Uri.file('test.md'), 'hello world!'), [new vscode.Range(0, 0, 0, 12)], 'https://www.microsoft.com/'); // need to check the actual result -> snippet value assert.strictEqual(result?.label, 'Insert Markdown Link'); }); suite('validateLink', () => { test('Markdown pasting should occur for a valid link', () => { assert.strictEqual( findValidUriInText('https://www.microsoft.com/'), 'https://www.microsoft.com/'); }); test('Markdown pasting should occur for a valid link preceded by a new line', () => { assert.strictEqual( findValidUriInText('rnhttps://www.microsoft.com/'), 'https://www.microsoft.com/'); }); test('Markdown pasting should occur for a valid link followed by a new line', () => { assert.strictEqual( findValidUriInText('https://www.microsoft.com/rn'), 'https://www.microsoft.com/'); }); test('Markdown pasting should not occur for a valid hostname and invalid protool', () => { assert.strictEqual( findValidUriInText('invalid:www.microsoft.com'), undefined); }); test('Markdown pasting should not occur for plain text', () => { assert.strictEqual( findValidUriInText('hello world!'), undefined); }); test('Markdown pasting should not occur for plain text including a colon', () => { assert.strictEqual( findValidUriInText('hello: world!'), undefined); }); test('Markdown pasting should not occur for plain text including a slashes', () => { assert.strictEqual( findValidUriInText('helloworld!'), undefined); }); test('Markdown pasting should not occur for a link followed by text', () => { assert.strictEqual( findValidUriInText('https://www.microsoft.com/ hello world!'), undefined); }); test('Markdown pasting should occur for a link preceded or followed by spaces', () => { assert.strictEqual( findValidUriInText(' https://www.microsoft.com/ '), 'https://www.microsoft.com/'); }); test('Markdown pasting should not occur for a link with an invalid scheme', () => { assert.strictEqual( findValidUriInText('hello:www.microsoft.com'), undefined); }); test('Markdown pasting should not occur for multiple links being pasted', () => { assert.strictEqual( findValidUriInText('https://www.microsoft.com/rnhttps://www.microsoft.com/rnhttps://www.microsoft.com/rnhttps://www.microsoft.com/'), undefined); }); test('Markdown pasting should not occur for multiple links with spaces being pasted', () => { assert.strictEqual( findValidUriInText('https://www.microsoft.com/ rnhttps://www.microsoft.com/rnhttps://www.microsoft.com/rn hello rnhttps://www.microsoft.com/'), undefined); }); test('Markdown pasting should not occur for just a valid uri scheme', () => { assert.strictEqual( findValidUriInText('https://'), undefined); }); }); suite('createInsertUriListEdit', () => { test('Should create snippet with < > when pasted link has an mismatched parentheses', () => { const edit = createInsertUriListEdit(makeTestDoc(''), [new vscode.Range(0, 0, 0, 0)], 'https://www.mic(rosoft.com'); assert.strictEqual(edit?.edits?.[0].snippet.value, '[${1:text}]()'); }); test('Should create Markdown link snippet when pasteAsMarkdownLink is true', () => { const edit = createInsertUriListEdit(makeTestDoc(''), [new vscode.Range(0, 0, 0, 0)], 'https://www.microsoft.com'); assert.strictEqual(edit?.edits?.[0].snippet.value, '[${1:text}](https://www.microsoft.com)'); }); test('Should use an unencoded URI string in Markdown link when passing in an external browser link', () => { const edit = createInsertUriListEdit(makeTestDoc(''), [new vscode.Range(0, 0, 0, 0)], 'https://www.microsoft.com'); assert.strictEqual(edit?.edits?.[0].snippet.value, '[${1:text}](https://www.microsoft.com)'); }); test('Should not decode an encoded URI string when passing in an external browser link', () => { const edit = createInsertUriListEdit(makeTestDoc(''), [new vscode.Range(0, 0, 0, 0)], 'https://www.microsoft.com/%20'); assert.strictEqual(edit?.edits?.[0].snippet.value, '[${1:text}](https://www.microsoft.com/%20)'); }); test('Should not encode an unencoded URI string when passing in an external browser link', () => { const edit = createInsertUriListEdit(makeTestDoc(''), [new vscode.Range(0, 0, 0, 0)], 'https://www.example.com/path?query=value&another=value#fragment'); assert.strictEqual(edit?.edits?.[0].snippet.value, '[${1:text}](https://www.example.com/path?query=value&another=value#fragment)'); }); }); suite('shouldInsertMarkdownLinkByDefault', () => { test('Smart should be enabled for selected plain text', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('hello world'), PasteUrlAsMarkdownLink.SmartWithSelection, [new vscode.Range(0, 0, 0, 12)], noopToken), true); }); test('Smart should be enabled in headers', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('# title'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 2, 0, 2)], noopToken), true); }); test('Smart should be enabled in lists', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('1. text'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 3, 0, 3)], noopToken), true); }); test('Smart should be enabled in blockquotes', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('> text'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 3, 0, 3)], noopToken), true); }); test('Smart should be disabled in indented code blocks', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc(' code'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 4, 0, 4)], noopToken), false); }); test('Smart should be disabled in fenced code blocks', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('```rnrn```'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 5, 0, 5)], noopToken), false); assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('~~~rnrn~~~'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 5, 0, 5)], noopToken), false); }); test('Smart should be disabled in math blocks', async () => { const katex = (await import('@vscode/markdown-it-katex')).default; const engine = createNewMarkdownEngine(); (await engine.getEngine(undefined)).use(katex); assert.strictEqual( await shouldInsertMarkdownLinkByDefault(engine, makeTestDoc('$$rnrn$$'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 5, 0, 5)], noopToken), false); }); test('Smart should be disabled in link definitions', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('[ref]: http://example.com'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 4, 0, 6)], noopToken), false); assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('[ref]: '), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 7, 0, 7)], noopToken), false); }); test('Smart should be disabled in html blocks', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('nan
'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(1, 0, 1, 0)], noopToken), false); }); test('Smart should be disabled in Markdown links', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('[a](bcdef)'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 4, 0, 6)], noopToken), false); }); test('Smart should be disabled in Markdown images', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc(''), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 5, 0, 10)], noopToken), false); }); test('Smart should be disabled in inline code', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('``'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 1, 0, 1)], noopToken), false); assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('``'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 0, 0, 0)], noopToken), false); }); test('Smart should be disabled in inline math', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('$$'), PasteUrlAsMarkdownLink.SmartWithSelection, [new vscode.Range(0, 1, 0, 1)], noopToken), false); }); test('Smart should be enabled for empty selection', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('xyz'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 0, 0, 0)], noopToken), true); }); test('SmartWithSelection should disable for empty selection', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('xyz'), PasteUrlAsMarkdownLink.SmartWithSelection, [new vscode.Range(0, 0, 0, 0)], noopToken), false); }); test('Smart should disable for selected link', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('https://www.microsoft.com'), PasteUrlAsMarkdownLink.SmartWithSelection, [new vscode.Range(0, 0, 0, 25)], noopToken), false); }); test('Smart should disable for selected link with trailing whitespace', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc(' https://www.microsoft.com '), PasteUrlAsMarkdownLink.SmartWithSelection, [new vscode.Range(0, 0, 0, 30)], noopToken), false); }); test('Should evaluate pasteAsMarkdownLink as true for a link pasted in square brackets', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('[abc]'), PasteUrlAsMarkdownLink.SmartWithSelection, [new vscode.Range(0, 1, 0, 4)], noopToken), true); }); test('Should evaluate pasteAsMarkdownLink as false for selected whitespace and new lines', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc(' rnrn'), PasteUrlAsMarkdownLink.SmartWithSelection, [new vscode.Range(0, 0, 0, 7)], noopToken), false); }); }); }); "}
{"_id":"doc-en-vscode-fafde711d76c883aed05342af9865141d0ac7a22c70ef526bb77ab9ce1dce484","title":"","text":" /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import * as assert from 'assert'; import 'mocha'; import * as vscode from 'vscode'; import { InMemoryDocument } from '../client/inMemoryDocument'; import { PasteUrlAsMarkdownLink, findValidUriInText, shouldInsertMarkdownLinkByDefault } from '../languageFeatures/copyFiles/pasteUrlProvider'; import { createInsertUriListEdit } from '../languageFeatures/copyFiles/shared'; import { createNewMarkdownEngine } from './engine'; import { noopToken } from '../util/cancellation'; function makeTestDoc(contents: string) { return new InMemoryDocument(vscode.Uri.file('test.md'), contents); } suite('createEditAddingLinksForUriList', () => { test('Markdown Link Pasting should occur for a valid link (end to end)', async () => { // createEditAddingLinksForUriList -> checkSmartPaste -> tryGetUriListSnippet -> createUriListSnippet -> createLinkSnippet const result = createInsertUriListEdit( new InMemoryDocument(vscode.Uri.file('test.md'), 'hello world!'), [new vscode.Range(0, 0, 0, 12)], 'https://www.microsoft.com/'); // need to check the actual result -> snippet value assert.strictEqual(result?.label, 'Insert Markdown Link'); }); suite('validateLink', () => { test('Markdown pasting should occur for a valid link', () => { assert.strictEqual( findValidUriInText('https://www.microsoft.com/'), 'https://www.microsoft.com/'); }); test('Markdown pasting should occur for a valid link preceded by a new line', () => { assert.strictEqual( findValidUriInText('rnhttps://www.microsoft.com/'), 'https://www.microsoft.com/'); }); test('Markdown pasting should occur for a valid link followed by a new line', () => { assert.strictEqual( findValidUriInText('https://www.microsoft.com/rn'), 'https://www.microsoft.com/'); }); test('Markdown pasting should not occur for a valid hostname and invalid protool', () => { assert.strictEqual( findValidUriInText('invalid:www.microsoft.com'), undefined); }); test('Markdown pasting should not occur for plain text', () => { assert.strictEqual( findValidUriInText('hello world!'), undefined); }); test('Markdown pasting should not occur for plain text including a colon', () => { assert.strictEqual( findValidUriInText('hello: world!'), undefined); }); test('Markdown pasting should not occur for plain text including a slashes', () => { assert.strictEqual( findValidUriInText('helloworld!'), undefined); }); test('Markdown pasting should not occur for a link followed by text', () => { assert.strictEqual( findValidUriInText('https://www.microsoft.com/ hello world!'), undefined); }); test('Markdown pasting should occur for a link preceded or followed by spaces', () => { assert.strictEqual( findValidUriInText(' https://www.microsoft.com/ '), 'https://www.microsoft.com/'); }); test('Markdown pasting should not occur for a link with an invalid scheme', () => { assert.strictEqual( findValidUriInText('hello:www.microsoft.com'), undefined); }); test('Markdown pasting should not occur for multiple links being pasted', () => { assert.strictEqual( findValidUriInText('https://www.microsoft.com/rnhttps://www.microsoft.com/rnhttps://www.microsoft.com/rnhttps://www.microsoft.com/'), undefined); }); test('Markdown pasting should not occur for multiple links with spaces being pasted', () => { assert.strictEqual( findValidUriInText('https://www.microsoft.com/ rnhttps://www.microsoft.com/rnhttps://www.microsoft.com/rn hello rnhttps://www.microsoft.com/'), undefined); }); test('Markdown pasting should not occur for just a valid uri scheme', () => { assert.strictEqual( findValidUriInText('https://'), undefined); }); }); suite('createInsertUriListEdit', () => { test('Should create snippet with < > when pasted link has an mismatched parentheses', () => { const edit = createInsertUriListEdit(makeTestDoc(''), [new vscode.Range(0, 0, 0, 0)], 'https://www.mic(rosoft.com'); assert.strictEqual(edit?.edits?.[0].snippet.value, '[${1:text}]()'); }); test('Should create Markdown link snippet when pasteAsMarkdownLink is true', () => { const edit = createInsertUriListEdit(makeTestDoc(''), [new vscode.Range(0, 0, 0, 0)], 'https://www.microsoft.com'); assert.strictEqual(edit?.edits?.[0].snippet.value, '[${1:text}](https://www.microsoft.com)'); }); test('Should use an unencoded URI string in Markdown link when passing in an external browser link', () => { const edit = createInsertUriListEdit(makeTestDoc(''), [new vscode.Range(0, 0, 0, 0)], 'https://www.microsoft.com'); assert.strictEqual(edit?.edits?.[0].snippet.value, '[${1:text}](https://www.microsoft.com)'); }); test('Should not decode an encoded URI string when passing in an external browser link', () => { const edit = createInsertUriListEdit(makeTestDoc(''), [new vscode.Range(0, 0, 0, 0)], 'https://www.microsoft.com/%20'); assert.strictEqual(edit?.edits?.[0].snippet.value, '[${1:text}](https://www.microsoft.com/%20)'); }); test('Should not encode an unencoded URI string when passing in an external browser link', () => { const edit = createInsertUriListEdit(makeTestDoc(''), [new vscode.Range(0, 0, 0, 0)], 'https://www.example.com/path?query=value&another=value#fragment'); assert.strictEqual(edit?.edits?.[0].snippet.value, '[${1:text}](https://www.example.com/path?query=value&another=value#fragment)'); }); }); suite('shouldInsertMarkdownLinkByDefault', () => { test('Smart should be enabled for selected plain text', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('hello world'), PasteUrlAsMarkdownLink.SmartWithSelection, [new vscode.Range(0, 0, 0, 12)], noopToken), true); }); test('Smart should be enabled in headers', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('# title'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 2, 0, 2)], noopToken), true); }); test('Smart should be enabled in lists', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('1. text'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 3, 0, 3)], noopToken), true); }); test('Smart should be enabled in blockquotes', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('> text'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 3, 0, 3)], noopToken), true); }); test('Smart should be disabled in indented code blocks', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc(' code'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 4, 0, 4)], noopToken), false); }); test('Smart should be disabled in fenced code blocks', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('```rnrn```'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 5, 0, 5)], noopToken), false); assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('~~~rnrn~~~'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 5, 0, 5)], noopToken), false); }); test('Smart should be disabled in math blocks', async () => { const katex = (await import('@vscode/markdown-it-katex')).default; const engine = createNewMarkdownEngine(); (await engine.getEngine(undefined)).use(katex); assert.strictEqual( await shouldInsertMarkdownLinkByDefault(engine, makeTestDoc('$$rnrn$$'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 5, 0, 5)], noopToken), false); }); test('Smart should be disabled in link definitions', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('[ref]: http://example.com'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 4, 0, 6)], noopToken), false); assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('[ref]: '), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 7, 0, 7)], noopToken), false); }); test('Smart should be disabled in html blocks', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('nan
'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(1, 0, 1, 0)], noopToken), false); }); test('Smart should be disabled in html blocks where paste creates the block', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('nn
'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(1, 0, 1, 0)], noopToken), false, 'Between two html tags should be treated as html block'); assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('nntext'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(1, 0, 1, 0)], noopToken), false, 'Between opening html tag and text should be treated as html block'); assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('
nnn
'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(1, 0, 1, 0)], noopToken), true, 'Extra new line after paste should not be treated as html block'); }); test('Smart should be disabled in Markdown links', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('[a](bcdef)'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 4, 0, 6)], noopToken), false); }); test('Smart should be disabled in Markdown images', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc(''), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 5, 0, 10)], noopToken), false); }); test('Smart should be disabled in inline code', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('``'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 1, 0, 1)], noopToken), false); assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('``'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 0, 0, 0)], noopToken), false); }); test('Smart should be disabled in inline math', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('$$'), PasteUrlAsMarkdownLink.SmartWithSelection, [new vscode.Range(0, 1, 0, 1)], noopToken), false); }); test('Smart should be enabled for empty selection', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('xyz'), PasteUrlAsMarkdownLink.Smart, [new vscode.Range(0, 0, 0, 0)], noopToken), true); }); test('SmartWithSelection should disable for empty selection', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('xyz'), PasteUrlAsMarkdownLink.SmartWithSelection, [new vscode.Range(0, 0, 0, 0)], noopToken), false); }); test('Smart should disable for selected link', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('https://www.microsoft.com'), PasteUrlAsMarkdownLink.SmartWithSelection, [new vscode.Range(0, 0, 0, 25)], noopToken), false); }); test('Smart should disable for selected link with trailing whitespace', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc(' https://www.microsoft.com '), PasteUrlAsMarkdownLink.SmartWithSelection, [new vscode.Range(0, 0, 0, 30)], noopToken), false); }); test('Should evaluate pasteAsMarkdownLink as true for a link pasted in square brackets', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc('[abc]'), PasteUrlAsMarkdownLink.SmartWithSelection, [new vscode.Range(0, 1, 0, 4)], noopToken), true); }); test('Should evaluate pasteAsMarkdownLink as false for selected whitespace and new lines', async () => { assert.strictEqual( await shouldInsertMarkdownLinkByDefault(createNewMarkdownEngine(), makeTestDoc(' rnrn'), PasteUrlAsMarkdownLink.SmartWithSelection, [new vscode.Range(0, 0, 0, 7)], noopToken), false); }); }); }); "}
{"_id":"doc-en-vscode-801259d4b82e94090b65139bf070cdb5ad937d7d115f211a2870f54e7a2982b2","title":"","text":"import { resolveMarketplaceHeaders } from 'vs/platform/externalServices/common/marketplace'; import { IStorageService } from 'vs/platform/storage/common/storage'; import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry'; import { StopWatch } from 'vs/base/common/stopwatch'; const CURRENT_TARGET_PLATFORM = isWeb ? TargetPlatform.WEB : getTargetPlatform(platform, arch); const ACTIVITY_HEADER_NAME = 'X-Market-Search-Activity-Id';"}
{"_id":"doc-en-vscode-64ec1e47dd83b024e1bac908347ccb539cc177e662a8d338ec8b1c4caa228277","title":"","text":"} if (needAllVersions.size) { const startTime = new Date().getTime(); const stopWatch = new StopWatch(); const query = new Query() .withFlags(flags & ~Flags.IncludeLatestVersionOnly, Flags.IncludeVersions) .withPage(1, needAllVersions.size) .withFilter(FilterType.ExtensionId, ...needAllVersions.keys()); const { extensions } = await this.queryGalleryExtensions(query, criteria, token); this.telemetryService.publicLog2('galleryService:additionalQuery', { duration: new Date().getTime() - startTime, duration: stopWatch.elapsed(), count: needAllVersions.size }); for (const extension of extensions) {"}
{"_id":"doc-en-vscode-8c7758ba2feaa0e305d23dc691632cfd1897f9d270e780ede9489d248c410d75","title":"","text":"'Content-Length': String(data.length), }; const startTime = new Date().getTime(); const stopWatch = new StopWatch(); let context: IRequestContext | undefined, error: any, total: number = 0; try {"}
{"_id":"doc-en-vscode-70c688729d9296d4934801e2a6b820a2ae0cc83d97d6e1b9ce442c0499339f0c","title":"","text":"this.telemetryService.publicLog2('galleryService:query', { ...query.telemetryData, requestBodySize: String(data.length), duration: new Date().getTime() - startTime, duration: stopWatch.elapsed(), success: !!context && isSuccess(context), responseBodySize: context?.res.headers['Content-Length'], statusCode: context ? String(context.res.statusCode) : undefined,"}
{"_id":"doc-en-vscode-788c19b9ffbfc4af233557a352f4b580f52dd0d78ebc9a2e459ba02c6e871938","title":"","text":"} } this._currentContent = message + provider.provideContent() + readMoreLink + disableHelpHint + localize('exit-tip', 'nnExit this dialog via the Escape key.'); this._currentContent = message + provider.provideContent() + readMoreLink + disableHelpHint + localize('exit-tip', 'nExit this dialog via the Escape key.'); this._updateContextKeys(provider, true); this._getTextModel(URI.from({ path: `accessible-view-${provider.verbositySettingKey}`, scheme: 'accessible-view', fragment: this._currentContent })).then((model) => {"}
{"_id":"doc-en-vscode-1968aedbcd49959320380073405135f55c7b86ae2c91e8f88aa0db7630c517bb","title":"","text":"_xterm: Pick & { raw: Terminal }, @IInstantiationService _instantiationService: IInstantiationService, @IKeybindingService private readonly _keybindingService: IKeybindingService, @IAccessibilityService private readonly _accessibilityService: IAccessibilityService, @IContextKeyService private readonly _contextKeyService: IContextKeyService, @ICommandService private readonly _commandService: ICommandService @ICommandService private readonly _commandService: ICommandService, @IAccessibilityService private readonly _accessibilityService: IAccessibilityService ) { super(); this._hasShellIntegration = _xterm.shellIntegration.status === ShellIntegrationStatus.VSCode; } private _descriptionForCommand(commandId: string, msg: string, noKbMsg: string): string { const kb = this._keybindingService.lookupKeybindings(commandId); switch (kb.length) { case 0: return format(noKbMsg, commandId); case 1: return format(msg, kb[0].getAriaLabel()); if (commandId === TerminalCommandId.RunRecentCommand) { const kb = this._keybindingService.lookupKeybindings(commandId); // Run recent command has multiple keybindings. lookupKeybinding just returns the first one regardless of the when context. // Thus, we have to check if accessibility mode is enabled to determine which keybinding to use. return this._accessibilityService.isScreenReaderOptimized() ? format(msg, kb[1].getAriaLabel()) : format(msg, kb[0].getAriaLabel()); } // Run recent command has multiple keybindings. lookupKeybinding just returns the first one regardless of the when context. // Thus, we have to check if accessibility mode is enabled to determine which keybinding to use. return this._accessibilityService.isScreenReaderOptimized() ? format(msg, kb[1].getAriaLabel()) : format(msg, kb[0].getAriaLabel()); const kb = this._keybindingService.lookupKeybinding(commandId, this._contextKeyService)?.getAriaLabel(); return !kb ? format(noKbMsg, commandId) : format(msg, kb); } provideContent(): string {"}
{"_id":"doc-en-vscode-50b174417338e58a0a1eb139873483eee709854dd1503d809c2cb358a4df30d0","title":"","text":"import { getNotificationFromContext } from 'vs/workbench/browser/parts/notifications/notificationsCommands'; import { IListService, WorkbenchList } from 'vs/platform/list/browser/listService'; import { NotificationFocusedContext } from 'vs/workbench/common/contextkeys'; import { IAccessibleViewService, AccessibleViewService, IAccessibleContentProvider, IAccessibleViewOptions, AccessibleViewType, accessibleViewIsShown } from 'vs/workbench/contrib/accessibility/browser/accessibleView'; import { IAccessibleViewService, AccessibleViewService, IAccessibleContentProvider, IAccessibleViewOptions, AccessibleViewType } from 'vs/workbench/contrib/accessibility/browser/accessibleView'; import { IHoverService } from 'vs/workbench/services/hover/browser/hover'; import { alert } from 'vs/base/browser/ui/aria/aria';"}
{"_id":"doc-en-vscode-76eb602c58f6ca0dfef670c9225cf5be0ff449d399fda3e516f7df3b63c9a9e4","title":"","text":"const accessibleViewService = accessor.get(IAccessibleViewService); accessibleViewService.next(); return true; }, accessibleViewIsShown)); })); this._register(AccessibleViewPreviousAction.addImplementation(95, 'previous', accessor => { const accessibleViewService = accessor.get(IAccessibleViewService); accessibleViewService.previous(); return true; }, accessibleViewIsShown)); })); } }"}
{"_id":"doc-en-vscode-e6691f3871bbb67b293176017ddcb9aea375483edc8b1893344448bb8a9a5641","title":"","text":"import { KeyCode, KeyMod } from 'vs/base/common/keyCodes'; import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry'; import { MenuId } from 'vs/platform/actions/common/actions'; import { RawContextKey } from 'vs/platform/contextkey/common/contextkey'; export const accessibilityHelpIsShown = new RawContextKey('accessibilityHelpIsShown', false, true); export const accessibleViewIsShown = new RawContextKey('accessibleViewIsShown', false, true); export const enum AccessibilityVerbositySettingId { Terminal = 'accessibility.verbosity.terminal',"}
{"_id":"doc-en-vscode-d99da5da9199c039b5f79d927e309bdf60cb5401fbb83af4cc5e6d6b9853150e","title":"","text":"export const AccessibleViewNextAction = registerCommand(new MultiCommand({ id: 'editor.action.accessibleViewNext', precondition: undefined, precondition: accessibleViewIsShown, kbOpts: { primary: KeyMod.Alt | KeyCode.BracketRight, weight: KeybindingWeight.WorkbenchContrib"}
{"_id":"doc-en-vscode-d9a7705f53973a285e08ed076dd38d846cb5ba8273d375fac4a1950eecca470c","title":"","text":"export const AccessibleViewPreviousAction = registerCommand(new MultiCommand({ id: 'editor.action.accessibleViewPrevious', precondition: undefined, precondition: accessibleViewIsShown, kbOpts: { primary: KeyMod.Alt | KeyCode.BracketLeft, weight: KeybindingWeight.WorkbenchContrib"}
{"_id":"doc-en-vscode-05897fdf589a825c184ae47cd4dbbb4e3b7b9349b750e1148d251911bd471e36","title":"","text":"import { localize } from 'vs/nls'; import { IAccessibilityService } from 'vs/platform/accessibility/common/accessibility'; import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; import { IContextKey, IContextKeyService, RawContextKey } from 'vs/platform/contextkey/common/contextkey'; import { IContextKey, IContextKeyService } from 'vs/platform/contextkey/common/contextkey'; import { IContextViewDelegate, IContextViewService } from 'vs/platform/contextview/browser/contextView'; import { IInstantiationService, createDecorator } from 'vs/platform/instantiation/common/instantiation'; import { IOpenerService } from 'vs/platform/opener/common/opener';"}
{"_id":"doc-en-vscode-3328c23433d641a663e945557a86cae0b391357958617e9ffd3ab53838ba92c5","title":"","text":"import { getSimpleEditorOptions } from 'vs/workbench/contrib/codeEditor/browser/simpleEditorOptions'; import { CodeActionController } from 'vs/editor/contrib/codeAction/browser/codeActionController'; import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding'; import { AccessibilityVerbositySettingId, AccessibleViewAction, AccessibleViewNextAction, AccessibleViewPreviousAction } from 'vs/workbench/contrib/accessibility/browser/accessibilityContribution'; import { AccessibilityVerbositySettingId, AccessibleViewAction, AccessibleViewNextAction, AccessibleViewPreviousAction, accessibilityHelpIsShown, accessibleViewIsShown } from 'vs/workbench/contrib/accessibility/browser/accessibilityContribution'; import { ILayoutService } from 'vs/platform/layout/browser/layoutService'; const enum DIMENSIONS {"}
{"_id":"doc-en-vscode-e4f8ee7f90ace168db36a0baa2cf29826e4c607dd0b01cd83bc89cc28dd30200","title":"","text":"type: AccessibleViewType; } export const accessibilityHelpIsShown = new RawContextKey('accessibilityHelpIsShown', false, true); export const accessibleViewIsShown = new RawContextKey('accessibleViewIsShown', false, true); class AccessibleView extends Disposable { private _editorWidget: CodeEditorWidget; private _accessiblityHelpIsShown: IContextKey;"}
{"_id":"doc-en-vscode-1141e8b1e9decaca75f3c0fa48a86f89aa44e5cfe2cf5249309fd4a0002e1ee7","title":"","text":"import { ServicesAccessor } from 'vs/platform/instantiation/common/instantiation'; import { IAccessibilityService } from 'vs/platform/accessibility/common/accessibility'; import { Action2, registerAction2 } from 'vs/platform/actions/common/actions'; import { accessibilityHelpIsShown } from 'vs/workbench/contrib/accessibility/browser/accessibleView'; import { accessibilityHelpIsShown } from 'vs/workbench/contrib/accessibility/browser/accessibilityContribution'; import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry'; import { KeyCode, KeyMod } from 'vs/base/common/keyCodes'; import { alert } from 'vs/base/browser/ui/aria/aria';"}
{"_id":"doc-en-vscode-5577d48a7907a7559d15b6a92cb2515854cf7cf3c010104b78e93786b517ad45","title":"","text":"this.setHover(node.checkbox); this.setAccessibilityInformation(node.checkbox); this.toggle.domNode.classList.add(TreeItemCheckbox.checkboxClass); this.toggle.domNode.tabIndex = 1; DOM.append(this.checkboxContainer, this.toggle.domNode); this.registerListener(node); }"}
{"_id":"doc-en-vscode-037f1bb2922e2fe77c165b25b32acefd33f398fd2cf187afa17648ece4609210","title":"","text":"} async toggleAppliationScope(extension: ILocalExtension, fromProfileLocation: URI): Promise { if (isApplicationScopedExtension(extension.manifest)) { if (isApplicationScopedExtension(extension.manifest) || extension.isBuiltin) { return extension; }"}
{"_id":"doc-en-vscode-56a9a7628fe737d415271dff8bf45499b86083c92b7d86a27fcda43b89faa7ef","title":"","text":"menu: { id: MenuId.ExtensionContext, group: '2_configure', when: ContextKeyExpr.and(ContextKeyExpr.equals('extensionStatus', 'installed'), ContextKeyExpr.has('isDefaultApplicationScopedExtension').negate()), when: ContextKeyExpr.and(ContextKeyExpr.equals('extensionStatus', 'installed'), ContextKeyExpr.has('isDefaultApplicationScopedExtension').negate(), ContextKeyExpr.has('isBuiltinExtension').negate()), order: 3 }, run: async (accessor: ServicesAccessor, id: string) => {"}
{"_id":"doc-en-vscode-277b4808e4bc24f10ecef6c20642056045c0a42aa24a8f9f06efe899204affbf","title":"","text":"} async toggleApplyExtensionToAllProfiles(extension: IExtension): Promise { if (!extension.local || isApplicationScopedExtension(extension.local.manifest)) { if (!extension.local || isApplicationScopedExtension(extension.local.manifest) || extension.isBuiltin) { return; } await this.extensionManagementService.toggleAppliationScope(extension.local, this.userDataProfileService.currentProfile.extensionsResource);"}
{"_id":"doc-en-vscode-4a1c516fcfcc2c745215d91437573b43ee2e3e35e7a65c12cd7819aac98b926f","title":"","text":"* Given the `repository.root` compute the relative path while trying to preserve * the casing of the resource URI. The `repository.root` segment of the path can * have a casing mismatch if the folder/workspace is being opened with incorrect * casing. * casing which is why we attempt to use substring() before relative(). */ export function relativePath(from: string, to: string): string { // On Windows, there are cases in which `from` is a path that contains a trailing `` character // (ex: C:, serverfolder) due to the implementation of `path.normalize()`. This behavior is // by design as documented in https://github.com/nodejs/node/issues/1765. if (isWindows) { from = from.replace(/$/, ''); // There are cases in which the `from` path may contain a trailing separator at // the end (ex: \"C:\", \"serverfolder\" (Windows) or \"/\" (Linux/macOS)) which // is by design as documented in https://github.com/nodejs/node/issues/1765. If // the trailing separator is missing, we add it. if (from.charAt(from.length - 1) !== sep) { from += sep; } if (isDescendant(from, to) && from.length < to.length) { return to.substring(from.length + 1); return to.substring(from.length); } // Fallback to `path.relative`"}
{"_id":"doc-en-vscode-c054f6d43ab079e1cca77adcd9f2536f89d6674b7ebb2a70472f20930a18f972","title":"","text":"padding-right: 5px; /* with tab sizing shrink/fixed and badges, we want a right-padding because the close button is hidden */ } .monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.sizing-shrink:not(.tab-actions-left):not(.tab-actions-off) .tab-label { padding-right: 5px; /* ensure that the gradient does not show when tab actions show https://github.com/microsoft/vscode/issues/189625*/ } .monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.sticky-compact:not(.has-icon) .monaco-icon-label { text-align: center; /* ensure that sticky-compact tabs without icon have label centered */ }"}
{"_id":"doc-en-vscode-80310d798c953093ba07c7484f17c57b8b5aea07d917f585268af5be884ac17a","title":"","text":"/* Window Title Menu */ .monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center { z-index: 2500; } /* MacOS Desktop supports click event despite `drag` and therefore we don't need to clear it */ .monaco-workbench:not(.mac) .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center, .monaco-workbench.mac.web .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center { -webkit-app-region: no-drag; }"}
{"_id":"doc-en-vscode-dcec5a6927fe9b34130d941baec2a6557c2a2b016abfc1c956a5e2814eb0cb31","title":"","text":"} if (styles.listFocusForeground) { content.push(`.monaco-list${suffix}:focus .monaco-list-row.focused:not(.monaco-list-row.action.option-disabled) { color: ${styles.listFocusForeground}; }`); content.push(`.monaco-list${suffix}:focus .monaco-list-row.focused { color: ${styles.listFocusForeground}; }`); } if (styles.listActiveSelectionBackground) {"}
{"_id":"doc-en-vscode-0b1481ab4b862ca96cafd8a3db3841fabb5e583fbee378e7c92c5ecddcb1ff20","title":"","text":"} .action-widget .monaco-list-row.action.option-disabled, .action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled, .action-widget .monaco-list-row.action.option-disabled .codicon { color: var(--vscode-disabledForeground); } .action-widget .monaco-list-row.action:not(.option-disabled) .codicon { color: inherit; }"}
{"_id":"doc-en-vscode-d0db92d32b9b8e8627831b82697a866eb2328d1206f7dca35a6dbe23a32c4c92","title":"","text":"builtin printf '%s' \"${terms[2]:-}\" } __vsc_escape_value_fast() { builtin local LC_ALL=C out out=${1///} out=${out//;/x3b} builtin printf '%sn' \"${out}\" } # The property (P) and command (E) codes embed values which require escaping. # Backslashes are doubled. Non-alphanumeric characters are converted to escaped hex. __vsc_escape_value() { # If the input being too large, switch to the faster function if [ \"${#1}\" -ge 2000 ]; then __vsc_escape_value_fast \"$1\" builtin return fi # Process text byte by byte, not by codepoint. builtin local LC_ALL=C str=\"${1}\" i byte token out=''"}
{"_id":"doc-en-vscode-c55f7796d1528d0c96fd9f29120b53daad784c34f94f7812a76b7d8f59ffbe42","title":"","text":"disturl \"https://electronjs.org/headers\" target \"25.9.2\" ms_build_id \"24603566\" target \"25.9.4\" ms_build_id \"25127168\" runtime \"electron\" build_from_source \"true\""}
{"_id":"doc-en-vscode-35241f6053a51f18d249c33095d0e43353ff28524e2c3310c2eafda799a697b9","title":"","text":" 2606d6745056d248fe7ba21e6a30467d3ea80d2689c5fa6d2a35acf1b4a72ddd *chromedriver-v25.9.2-darwin-arm64.zip 22a86732b9e6c2afc07021ea0adeb92cdbaaa8751843c0d5170b5e96550685e7 *chromedriver-v25.9.2-darwin-x64.zip f5f42513bb55c7c1098e669d12488844ca2e63cd0d3a375db2eab517975c130c *chromedriver-v25.9.2-linux-arm64.zip 28a5613f7e4b117a65ec2882b124bf1d388f1c4fb86b228acadc297601faa6fd *chromedriver-v25.9.2-linux-armv7l.zip 7d01d537383df4b1653647e14fb768d27879943596a87b57ae3f171aa2aaf5d1 *chromedriver-v25.9.2-linux-x64.zip 3fac66fe45b4a5dcd9a4784d66bd8087d0dee5fccf06cb3f34e78f8bef3f0f8f *chromedriver-v25.9.2-mas-arm64.zip a15fc80fac243330f15a7ff7cc834c50c79833e81b871cc45f7239bf1743b4ac *chromedriver-v25.9.2-mas-x64.zip f0a354e01e277b14422e34f8af9c8c43ae975c6fb69a2e61ef275b6ec919f2ab *chromedriver-v25.9.2-win32-arm64.zip 570a6b5bc485bfea9681c97b79832d5d5bcafdd993c13dc4ab11558e3a27c554 *chromedriver-v25.9.2-win32-ia32.zip 4134f539ac304c65dfca9812b0d3943ea64d886989eba8f62828718b106c4eee *chromedriver-v25.9.2-win32-x64.zip 835418b9274c76503542c986d63bb9d98f071c702170536bdd62c1760589e01e *electron-api.json fd9f5b1439445acc69441ef66cc47f56c5c0848dec5f6daf91a476073e72a756 *electron-v25.9.2-darwin-arm64-dsym-snapshot.zip de29ef2a4c7b76281b1cf3ac9e6047a9275cc60167c6cd60509f2eb2a3258842 *electron-v25.9.2-darwin-arm64-dsym.zip 732f51802f2902ca08c3a06a45fe23820b1effbeb3ebd39fcae9fce5a1e0b25d *electron-v25.9.2-darwin-arm64-symbols.zip ab82efb59077a85fd20264f8ad0dedc4c8b0b2fc9d2948ed9461425faf5e35f6 *electron-v25.9.2-darwin-arm64.zip fb924b4dd0d781a14114e54fa556ca326c60665b674712c59163e7b44db675d8 *electron-v25.9.2-darwin-x64-dsym-snapshot.zip 197fc3e120e54578658e2f10b5fcec1d2004f1637d4bee116ff1e12b0c5a1429 *electron-v25.9.2-darwin-x64-dsym.zip 57d0a0f55726524ff843a040e516e425c3537a4602ab8c23120433fbc51470fb *electron-v25.9.2-darwin-x64-symbols.zip 0fe310e2ed13a97cd9c28fb0cf806338cd2e720083e6d1b13d60ba4cedb8f295 *electron-v25.9.2-darwin-x64.zip eb1a31ccd6a89a21538a8b1f0b5d3b77e1fe946b898319e1832cb9dc3abcd753 *electron-v25.9.2-linux-arm64-debug.zip b5b128bed0a09955ad5bb91fa9f5ab9155a547f787ad580bcd5bf409bb697ff6 *electron-v25.9.2-linux-arm64-symbols.zip 0b2d48a29d79fcd21d72d05fdb7638dd2fd257cf0d4cf9bd32f182b2634de466 *electron-v25.9.2-linux-arm64.zip eb1a31ccd6a89a21538a8b1f0b5d3b77e1fe946b898319e1832cb9dc3abcd753 *electron-v25.9.2-linux-armv7l-debug.zip 43f1f4c1475335719ba8f1f7f036a084fb22b5faa908bf4f7d30a96d5d9c159d *electron-v25.9.2-linux-armv7l-symbols.zip 4ea3ee3ad41c69454d9a12518eeff1ec5dbd841c8200dc8652e6c0b101d1259c *electron-v25.9.2-linux-armv7l.zip 1a8daf1f9e155d7143d16367e54e4e3b8e9d71ad580b44c8dfba0cb4e7a1c640 *electron-v25.9.2-linux-x64-debug.zip 803f32ca345d8974cc074dc177e06c62f8bcc98d4a39eccb676b7d302b8fc466 *electron-v25.9.2-linux-x64-symbols.zip aab65a562723e04eadbdee1251a749756b366dc1c5014bcc987c21c0a523fe2f *electron-v25.9.2-linux-x64.zip fd9f5b1439445acc69441ef66cc47f56c5c0848dec5f6daf91a476073e72a756 *electron-v25.9.2-mas-arm64-dsym-snapshot.zip 0ec88ec7bd2b7cb2e5e6b94f13df7d8c22433637004a473370e0959cb01f78cc *electron-v25.9.2-mas-arm64-dsym.zip 398a0575c1974565af99b6759a74967c0709bc101059542a00bfe64a1210a86f *electron-v25.9.2-mas-arm64-symbols.zip 17f86ad33f9fc2ca5eaac5ef87604e65b1eefba5a51d4ad58e70018fdfb84ac6 *electron-v25.9.2-mas-arm64.zip db61b29802ee1f598a3e61211a281656f16e70ae84041e6b2b5dd8ecae43cd67 *electron-v25.9.2-mas-x64-dsym-snapshot.zip 2f76620eb7d632335f7620f5d3713af5e59c98bdb0b323269c2319b7164fcaac *electron-v25.9.2-mas-x64-dsym.zip ea226c8d049e527d84ec5058474fd4e64476e6924fef42b1dbea774925f59064 *electron-v25.9.2-mas-x64-symbols.zip 51b9d192ccb7612211ca9cc8ddb373a86f791d38b369337ad099a133e9d9807a *electron-v25.9.2-mas-x64.zip 53b39857303191ea2f26dda06461e6e612ca0ed799bdf0c26a1a63ff89f7ea1b *electron-v25.9.2-win32-arm64-pdb.zip 49199591c69fbeb68dd57252a3d8525babe79ab98447ad639f2d0c3e63aba4b6 *electron-v25.9.2-win32-arm64-symbols.zip e7b968fc53cc7a10a4ccb5133af045968479685ebb9617f06817f03667fdd425 *electron-v25.9.2-win32-arm64-toolchain-profile.zip 6abd0a6697d7fe8b6add4d1017a01a0ac756d16da5bfa077bd373a685b529bd8 *electron-v25.9.2-win32-arm64.zip cc5c67b027c679eb86882c2ec267d38fafcc5127b49e8a060002541253e2b26b *electron-v25.9.2-win32-ia32-pdb.zip 2cd8aab8aa4eadfce90c8ba6565a77689db1efe55b7eaafedede3b08e8c41f53 *electron-v25.9.2-win32-ia32-symbols.zip e7b968fc53cc7a10a4ccb5133af045968479685ebb9617f06817f03667fdd425 *electron-v25.9.2-win32-ia32-toolchain-profile.zip ac2aebe7d7b21351256fb3b60219269e75ff33f8c3cfbbca682c3622d1943b94 *electron-v25.9.2-win32-ia32.zip 000b506bab92c92e0ff8428033fc7e1c15049437606794c4bec84a66eb29b6cd *electron-v25.9.2-win32-x64-pdb.zip fd40d04de0ef4a04dd720505f03a6d209a38387fe05493869f441037aa950e4d *electron-v25.9.2-win32-x64-symbols.zip e7b968fc53cc7a10a4ccb5133af045968479685ebb9617f06817f03667fdd425 *electron-v25.9.2-win32-x64-toolchain-profile.zip de3fc45f4fa5572d6dbb4f21580e75d3b6429a6b3b833a962c810e7e199b8573 *electron-v25.9.2-win32-x64.zip c3f22fbf99713bb44546278ef1456e4fc9a83d33bf038f6752fea12c7a721337 *electron.d.ts 2a088f4c227405783466e456e69154193a730130f5cc39520091abc8993977bc *ffmpeg-v25.9.2-darwin-arm64.zip 4da4197282a9a31379d2194d1072888b9ed3200663e322df2759b971725a2915 *ffmpeg-v25.9.2-darwin-x64.zip bd52d57ff97fb56ac01a3482af905d04f0d4e9c13c53858c6d9f99957eca82da *ffmpeg-v25.9.2-linux-arm64.zip 9b3d09177fa1e63e2a6beecfa70aeec30aeb5c1873ff21128a68051c4e23f95d *ffmpeg-v25.9.2-linux-armv7l.zip 39c3e411873262873edff4b9f4b5d9973fb3cab8f700d6ff665872dab3b39eb3 *ffmpeg-v25.9.2-linux-x64.zip 861287a6cb0f546c0e39f49a2b28f5575d66fbddb26486584cc7802e84402339 *ffmpeg-v25.9.2-mas-arm64.zip bcc8315a9e07394510c96ffca20720e3cdb2a4aecc75798bfca8fd60417782aa *ffmpeg-v25.9.2-mas-x64.zip 0ebfe5a72aaf0a9af81ffbcba03763f4baa142c93c31b50ad0145365366f0076 *ffmpeg-v25.9.2-win32-arm64.zip d8e7ea1268145d3481a74152ced8ae677ca5b174f06eb874a6ce0005ff0d471c *ffmpeg-v25.9.2-win32-ia32.zip d1f499b957377c3822c43eadf3bc32e7cb04b52fb2fd51ba22f14cd61ef01727 *ffmpeg-v25.9.2-win32-x64.zip 86a0df1394e741feb21a891747775911d5c2f9cd940662826b33c309275abb7c *hunspell_dictionaries.zip 4c4bab279b39c4e463dcb3a897e256e5e4f088e6e6495f6aea10e26703ecafc3 *libcxx-objects-v25.9.2-linux-arm64.zip d2b6349a89c9fce3ccc0a9a430b059eb18cd3967dbbe34bfcae54b3f58cd462a *libcxx-objects-v25.9.2-linux-armv7l.zip e8d4b1a3228c0709dc54d780bd4d33727fff30c38f8e00409a6eaf54a69e5869 *libcxx-objects-v25.9.2-linux-x64.zip 7679259e7cb02140806cc616d012102462d671ae07c4673ad0c2c9a6716444a6 *libcxx_headers.zip b1683af6708bceaa966e5168fda51223fa51e09549abc90f5744d500f9260c92 *libcxxabi_headers.zip 4fed33611a889d0100a6fbf4253cf9dcb9fbe3c42f7c86d8886d460a9a9cf8e6 *mksnapshot-v25.9.2-darwin-arm64.zip 5e1daea6393bd977a70020c36f1e4ee4e416c8c4eafe2b27b38292e4acb1764b *mksnapshot-v25.9.2-darwin-x64.zip 92ff719eb83df7f107d4dd3970122333f4bde194292c568b5c0a5ea4684bc9f1 *mksnapshot-v25.9.2-linux-arm64-x64.zip e621d50652f2afa49f47ab7cccd07f7d29ef60f694a0e70d4e6434ddd07cf282 *mksnapshot-v25.9.2-linux-armv7l-x64.zip 012c24dd59f7b5b4322e53c12bb6450a7b15bc6800042fcf3804ba14685f8188 *mksnapshot-v25.9.2-linux-x64.zip 62e880bf8594b1d83926984c252d86990f1386655bd1375afc0fd3054018adef *mksnapshot-v25.9.2-mas-arm64.zip 0742e1bfcbe171199f0a333fddbf401a61777928d462b852d21fec2822b2c46e *mksnapshot-v25.9.2-mas-x64.zip b019e6e117e13238465d1758274ebbaf7ccb999921dcb11ef1e3a9a5a6df952b *mksnapshot-v25.9.2-win32-arm64-x64.zip bc7196f1fd2ba3aedc6c16e96e455d280155dfc493a0d0f6ce7bffe645e39e1e *mksnapshot-v25.9.2-win32-ia32.zip 2d152f09969d69439e831b4212e77ea157a9e4b3a9b3ad55d4f2efcc547c25eb *mksnapshot-v25.9.2-win32-x64.zip No newline at end of file 004cb2a93a7094449675ac49998f1c1572dd74b7839039332525f44a2a4d6905 *chromedriver-v25.9.4-darwin-arm64.zip e578c2b7c88ae066664c0562ca77f776d419a6ae5045383df9718e743147f880 *chromedriver-v25.9.4-darwin-x64.zip 7c0f030cf143d682ae838e078d560b76b5f0af8c65d67f6026167c0a04c8f60b *chromedriver-v25.9.4-linux-arm64.zip 320026f620bdd708aff88c97ee9bf40d2fbad4fce4be0be3c8252876c9a629ec *chromedriver-v25.9.4-linux-armv7l.zip 65d4473294f024e4ba56a72ba9f87bec51207a7c924fda998acf499e5db4da9c *chromedriver-v25.9.4-linux-x64.zip 191ba934dace5851f60ec5cdb040202dacebf837ae6b8483649cc85da698ffeb *chromedriver-v25.9.4-mas-arm64.zip 1da9b56db091b1825cb3913de5eb12e30bb55f55023e044bed9e6d1518ab86f7 *chromedriver-v25.9.4-mas-x64.zip 3efd22a6d4500603f629f5c58af44570909df6871eccc9d17c01d04ab17ca47e *chromedriver-v25.9.4-win32-arm64.zip cd8b4be4d491f39aebc97102e2a48e43260eff693163c1526f1fb0b401ec0a81 *chromedriver-v25.9.4-win32-ia32.zip 03df2f38e3a07f70b766a5f0a9548acf8b35148dcb97d12e0479fd527da423e3 *chromedriver-v25.9.4-win32-x64.zip f1c4c82db5b9649d7e9cdb4c482a76ded439f6b11267f4b5eb869616a7f8244a *electron-api.json ac61c1f78f4bebf74073b4dbca356bc3aef6b44b4b069f8f2bfdb03d562e50f9 *electron-v25.9.4-darwin-arm64-dsym-snapshot.zip 54424b0db7f38794dbc5aff1bf3a20fc93f0f35a03fce8eaaf523bbc075fef83 *electron-v25.9.4-darwin-arm64-dsym.zip 1d816ad4c6a6e198d8ae6bb49698982f0f0298a605db09d46d3d4509c16a84a1 *electron-v25.9.4-darwin-arm64-symbols.zip 8022153ed1437a5785a0f819d14f41ae1026c1c5c1406d535a32c2a0ec1e4ba3 *electron-v25.9.4-darwin-arm64.zip 1a76a3c9ef80989488ed5a5cb9d4f54d284f79931f98907e6dbe3437271b33c0 *electron-v25.9.4-darwin-x64-dsym-snapshot.zip 92b14aa0a6dbbf9dd4829464ecea4ee77536f6c45cd393aa00b502eb5d72e480 *electron-v25.9.4-darwin-x64-dsym.zip 0bd268108df307e6d7770fea8882b5072ced5da23a0914e3e660e26c80314174 *electron-v25.9.4-darwin-x64-symbols.zip 4a3b55cfdb3fedbe188f51c552ffa1f9d17d145926990ca914faccbb72634ee6 *electron-v25.9.4-darwin-x64.zip 59bde360b480228cb166836d678682146d6f4cf9c8e6a534087c974e827b11bb *electron-v25.9.4-linux-arm64-debug.zip c8a2174ddfa18eeb326c830cbaf944931038de422d7e8492a9a5680dd54c77eb *electron-v25.9.4-linux-arm64-symbols.zip 119481d318dec273434f9f4f43fb808ff66858cc0da1f17deccc6b08a99fbb83 *electron-v25.9.4-linux-arm64.zip 59bde360b480228cb166836d678682146d6f4cf9c8e6a534087c974e827b11bb *electron-v25.9.4-linux-armv7l-debug.zip f791ce6c4bfe8ae7a00df9ac9dad766ce5ac4e502092b02c0361327a84ac07a8 *electron-v25.9.4-linux-armv7l-symbols.zip 2ef1673f4c6b943b35dc1dd3379aae7534f2456c91eabc704e2db35012aac706 *electron-v25.9.4-linux-armv7l.zip ff0e6cd86b963d87edd02202284e1fd29842f5fa85b4ca7a21ab753507ab3a9d *electron-v25.9.4-linux-x64-debug.zip add83741ede569ec1ed243aea8a77d782674a59c62221a4b9bd07507af62441e *electron-v25.9.4-linux-x64-symbols.zip 84f92675e3a9616cc163de673ebfafaad3c2976dc500612875a23849bc3661ce *electron-v25.9.4-linux-x64.zip ac61c1f78f4bebf74073b4dbca356bc3aef6b44b4b069f8f2bfdb03d562e50f9 *electron-v25.9.4-mas-arm64-dsym-snapshot.zip a76831375f19b4d48766211026446f2b073247c1e1a29edb52683caa0d0fc349 *electron-v25.9.4-mas-arm64-dsym.zip 5a8a82ac24fdd31389391a157509b0a45e23d7e70236968b7b4a2130d930d04f *electron-v25.9.4-mas-arm64-symbols.zip c7e47d78ee8fc6d9112a38977cf1ebbec31cdf06b8a0540f120e7a69500c56f7 *electron-v25.9.4-mas-arm64.zip 94253d587d9ed00b1741a64ca36e32fe8bc60cc32df48675bef89af081c4f0ec *electron-v25.9.4-mas-x64-dsym-snapshot.zip bf6e83d683c7fb88e21b93d4926b1e3dc9151f94e1bb4635ae2b77992b2c6598 *electron-v25.9.4-mas-x64-dsym.zip 4b9758d4a74e21f66eedb95392d098e057e509a1f0eecc09729fa36747918838 *electron-v25.9.4-mas-x64-symbols.zip 6e26f31b8088563b2cc4d1552d9ff00e61bc7ef1b95b7cfe404564f84b5b210d *electron-v25.9.4-mas-x64.zip c6fe73f028eff3dfdd6408b8762b5e0d2a67b3bd110b5910d1bec1fa85da8a5a *electron-v25.9.4-win32-arm64-pdb.zip ccccad00e4e16048743d5252023665b74ab804a7482606dc0dc9ad01f94c988b *electron-v25.9.4-win32-arm64-symbols.zip e7b968fc53cc7a10a4ccb5133af045968479685ebb9617f06817f03667fdd425 *electron-v25.9.4-win32-arm64-toolchain-profile.zip 667c212b51400bfd1ab78a83d2adcdd6c9624a71b1a6892432e38ce9658d8093 *electron-v25.9.4-win32-arm64.zip 320dab9a57c4f0efa1ecadb4a07ec15adecaa913ef62524cacaa9f011292571f *electron-v25.9.4-win32-ia32-pdb.zip 2875e171ebba7fc12be3133cabbd38cdca30d3cedbb89a1e1e11270380b4afc5 *electron-v25.9.4-win32-ia32-symbols.zip e7b968fc53cc7a10a4ccb5133af045968479685ebb9617f06817f03667fdd425 *electron-v25.9.4-win32-ia32-toolchain-profile.zip 18b11abf7b1f2f4568c3cf5dc9a2a0fc5349b6e3f40ecb91e086b030f254510d *electron-v25.9.4-win32-ia32.zip a4b49fee1139071eb33c014ed8ac49cf83065a6d95255c44acc78c3922c56185 *electron-v25.9.4-win32-x64-pdb.zip 1712567ed6b050501a974e33a9a46cd806965d73b36ec8e18346d49022f74a8a *electron-v25.9.4-win32-x64-symbols.zip e7b968fc53cc7a10a4ccb5133af045968479685ebb9617f06817f03667fdd425 *electron-v25.9.4-win32-x64-toolchain-profile.zip 03abc9d5b2b28b440e9e5b0fc61806e3f3c2888dac5d5939957726bd68955113 *electron-v25.9.4-win32-x64.zip 706c40b11144551b2da43cdfd191c2e3e2bf0d7600b8d2751f3a806f72d0ede2 *electron.d.ts 859e7f8f6b6faf1fd004ef335ccff6f25f18c17f1aa63031e0af238899513958 *ffmpeg-v25.9.4-darwin-arm64.zip 3b63d30acb2bc5cdcc94ac2dc9e69e0919bf5038d3fd61f822c183280684cc4e *ffmpeg-v25.9.4-darwin-x64.zip bd52d57ff97fb56ac01a3482af905d04f0d4e9c13c53858c6d9f99957eca82da *ffmpeg-v25.9.4-linux-arm64.zip 9b3d09177fa1e63e2a6beecfa70aeec30aeb5c1873ff21128a68051c4e23f95d *ffmpeg-v25.9.4-linux-armv7l.zip edc7b1c9f1a0733f109a2c0375a4e40c5bfe0bf28b7f06dcc76e1ada0aa2f125 *ffmpeg-v25.9.4-linux-x64.zip dae4d7857e7cf2d1333ce522ed3c8e3639a95432015a649a6cc3d064ddc076eb *ffmpeg-v25.9.4-mas-arm64.zip b2d9a72f57a18c68c30cbbde305ba91e740656746e37d5ce22e8895e7ec36a74 *ffmpeg-v25.9.4-mas-x64.zip 7ebbd70835b6bbd1d12e432a2b0df4fb5fccd4039c6b5125401069b1c0ff6f0e *ffmpeg-v25.9.4-win32-arm64.zip 128499e322306bf4900106d1120e28d93cafd7af5c5052109f2739360c7e212a *ffmpeg-v25.9.4-win32-ia32.zip 00a2e9d9b783899662b430feb5fb030e89ae7682ef4e3bf8eb4c8ecbfd435b84 *ffmpeg-v25.9.4-win32-x64.zip 1b9943e151314644652f738afa309d1d4f3cb18fc505e568c1f80e66e0ccf1b3 *hunspell_dictionaries.zip 631aac564c555332dbf9d7acdcce6852c594cd84d3afd3056e738c64f4b1cb1b *libcxx-objects-v25.9.4-linux-arm64.zip 4ad907d1b04bb93aba78b086ffdf16e2c0aa23f5a3901ad23ab4fd1aa46e80a3 *libcxx-objects-v25.9.4-linux-armv7l.zip c8950fb9555c33015cb0d2299dfb2b35daa1c0c7d392bf53a96f570b8c064c93 *libcxx-objects-v25.9.4-linux-x64.zip aaafbf6dfc756d3244d6085c419eec5dc3aa7b12face8a0bab1733aed3e7f3e7 *libcxx_headers.zip c571e713663bdc68f5956e45b975b89bd23cc2e401a1161321167d224b1dea3d *libcxxabi_headers.zip cf42b5f0e4e6500b89ab8313267a459584be8a175cc6c7e20c1fee50277c65f4 *mksnapshot-v25.9.4-darwin-arm64.zip 6f1b74306d691214218e2894f813af1d0fde5e6ded31ad94c1ad4f44b4582b29 *mksnapshot-v25.9.4-darwin-x64.zip 9a0e09332db556357288b46738a409269cc4c83816396c70fd5b518548eb884d *mksnapshot-v25.9.4-linux-arm64-x64.zip 80692a923553ae0172f5a981ff44d7194a307d826be5c39473f2555c1af4a025 *mksnapshot-v25.9.4-linux-armv7l-x64.zip 6dfb2d094b96f8507b4984ad8dcb14c56a8df5cd5bf89533ff6c7714009da4a0 *mksnapshot-v25.9.4-linux-x64.zip 50c800e3aa75997ec377e3d91682f9f4b49dd4e95555dd9acbbdd083d73718ac *mksnapshot-v25.9.4-mas-arm64.zip 81ea7704f3453c6d8e55525dd7e2999664e45002dab70dd250b2194b6ddccc7c *mksnapshot-v25.9.4-mas-x64.zip e817d7637498531c4de3bcbdfbd45a6255f04e349b2aa8ffdf454817f2c78b54 *mksnapshot-v25.9.4-win32-arm64-x64.zip f61be226a7c303d1b2502561de5093b0a9d364ae6d0a3b51d9c1d8b793ac97ef *mksnapshot-v25.9.4-win32-ia32.zip 73c65b7356aa3d703ca8ca43ec2436ee9c9475ce8b27b71b4313c0b3d4d76e10 *mksnapshot-v25.9.4-win32-x64.zip No newline at end of file"}
{"_id":"doc-en-vscode-4fe437fec34d60493a45c0b3a3acc0698f633fe64c4f8ce4684570f7205eb648","title":"","text":"\"git\": { \"name\": \"electron\", \"repositoryUrl\": \"https://github.com/electron/electron\", \"commitHash\": \"468c4af6611c88762b7ba6c4400c5022895457c2\" \"commitHash\": \"bb6a7d443b4f00680d05cc703b4d7ae180fdde03\" } }, \"isOnlyProductionDependency\": true, \"license\": \"MIT\", \"version\": \"25.9.2\" \"version\": \"25.9.4\" }, { \"component\": {"}
{"_id":"doc-en-vscode-5f4bb8ce0efdd6bc95242875e06e8452e22417309b867ec953f4d06073d83653","title":"","text":"{ \"name\": \"code-oss-dev\", \"version\": \"1.85.0\", \"distro\": \"cbc81496e34eafbc771b8f008e6a742d755968c9\", \"distro\": \"210db50a0928d4857ed3d511ddb5612b947e0fef\", \"author\": { \"name\": \"Microsoft Corporation\" },"}
{"_id":"doc-en-vscode-52ec9474fa05ebf970f81fe03254f9362c91820cc81034828d5b2028d7bf0b18","title":"","text":"\"cssnano\": \"^4.1.11\", \"debounce\": \"^1.0.0\", \"deemon\": \"^1.8.0\", \"electron\": \"25.9.2\", \"electron\": \"25.9.4\", \"eslint\": \"8.36.0\", \"eslint-plugin-header\": \"3.1.1\", \"eslint-plugin-jsdoc\": \"^46.5.0\","}
{"_id":"doc-en-vscode-f8e1d6f3de0551af8fede95a211e65d6808caab34fa3a174645e57606dfafa4a","title":"","text":"disturl \"https://nodejs.org/dist\" target \"18.15.0\" ms_build_id \"234519\" ms_build_id \"243295\" runtime \"node\" build_from_source \"true\""}
{"_id":"doc-en-vscode-d4391a1b30225f9aa28a27b55a88b559a479ee740cfc386e709df301f380af76","title":"","text":"resolved \"https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.207.tgz#9c3310ebace2952903d05dcaba8abe3a4ed44c01\" integrity sha512-piH7MJDJp4rJCduWbVvmUd59AUne1AFBJ8JaRQvk0KzNTSUnZrVXHCZc+eg+CGE4OujkcLJznhGKD6tuAshj5Q== electron@25.9.2: version \"25.9.2\" resolved \"https://registry.yarnpkg.com/electron/-/electron-25.9.2.tgz#12be98fbcff485c94ff99df21e0727797a45364a\" integrity sha512-hVBN5rsrL99BKNHvzMeYy2PkAmewuIobu4U3o3EzVz4MDoLmMfW4yTH5GZ4RbJrpokoEky5IzGtRR/ggPzL6Fw== electron@25.9.4: version \"25.9.4\" resolved \"https://registry.yarnpkg.com/electron/-/electron-25.9.4.tgz#1935b6fbfd8ad920719a4136d867021496703884\" integrity sha512-5pDU8a7o7ZIPTZHAqjflGMq764Favdsc271KXrAT3oWvFTHs5Ve9+IOt5EUVPrwvC2qRWKpCIEM47WzwkTlENQ== dependencies: \"@electron/get\" \"^2.0.0\" \"@types/node\" \"^18.11.18\""}
{"_id":"doc-en-vscode-b19a1dcf73436ba0790b4e6f2c412063ebe53b0b75f1602b2cbdb476d2ef6a8f","title":"","text":"import { IRemoteSocketFactoryService } from 'vs/platform/remote/common/remoteSocketFactoryService'; import { ISignService } from 'vs/platform/sign/common/sign'; import { AbstractTunnelService, ISharedTunnelsService, ITunnelProvider, ITunnelService, RemoteTunnel, TunnelPrivacyId, isAllInterfaces, isLocalhost, isPortPrivileged, isTunnelProvider } from 'vs/platform/tunnel/common/tunnel'; import { VSBuffer } from 'vs/base/common/buffer'; async function createRemoteTunnel(options: IConnectionOptions, defaultTunnelHost: string, tunnelRemoteHost: string, tunnelRemotePort: number, tunnelLocalPort?: number): Promise { let readyTunnel: NodeRemoteTunnel | undefined;"}
{"_id":"doc-en-vscode-b13fb89600829fb55415a125276e3cffba058fc05edb0548ddc616bc7481f8bc","title":"","text":"remoteSocket.onClose(() => localSocket.destroy()); remoteSocket.onEnd(() => localSocket.end()); remoteSocket.onData(d => localSocket.write(d.buffer)); localSocket.on('data', d => remoteSocket.write(VSBuffer.wrap(d))); localSocket.resume(); }"}
{"_id":"doc-en-vscode-aef9e78ae46db1c21fdda94dc0fdede34f52eb10fcf8f612a210a6458fa1d3da","title":"","text":"import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; import { InstantiationType, registerSingleton } from 'vs/platform/instantiation/common/extensions'; import { ISemanticSimilarityService } from 'vs/workbench/services/semanticSimilarity/common/semanticSimilarityService'; import { IAiRelatedInformationService, RelatedInformationType, SettingInformationResult } from 'vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation'; export interface IEndpointDetails { urlBase?: string;"}
{"_id":"doc-en-vscode-b69a2bd006da62aff3a8e3b513b1d813f97cb4d2ac99fd40367fa603d9c1d265","title":"","text":"private settingsRecord: Record = {}; private currentPreferencesModel: ISettingsEditorModel | undefined; constructor(private readonly semanticSimilarityService: ISemanticSimilarityService) { } constructor( private readonly aiRelatedInformationService: IAiRelatedInformationService, private readonly semanticSimilarityService: ISemanticSimilarityService ) { } updateModel(preferencesModel: ISettingsEditorModel) { if (preferencesModel === this.currentPreferencesModel) {"}
{"_id":"doc-en-vscode-92ec65de9f9a29cbc12cf565ca23eaaecf7dfa9a6994aa9c48ec88019dc4436c","title":"","text":"this.settingKeys = []; this.settingsRecord = {}; if (!this.semanticSimilarityService.isEnabled() || !this.currentPreferencesModel) { if ( !this.currentPreferencesModel || (!this.semanticSimilarityService.isEnabled() && !this.aiRelatedInformationService.isEnabled()) ) { return; }"}
{"_id":"doc-en-vscode-bc85faa8f9bd378b1fb49834adeb6a4001bd9e969ad4172e59be13759ffe18d3","title":"","text":"constructor( @ISemanticSimilarityService private readonly semanticSimilarityService: ISemanticSimilarityService, @IAiRelatedInformationService private readonly aiRelatedInformationService: IAiRelatedInformationService ) { this._keysProvider = new RemoteSearchKeysProvider(semanticSimilarityService); this._keysProvider = new RemoteSearchKeysProvider(aiRelatedInformationService, semanticSimilarityService); } setFilter(filter: string) {"}
{"_id":"doc-en-vscode-c6bdea6656e934c13660d009fcc5417515f4c736a4502374720c44377be9a180","title":"","text":"} async searchModel(preferencesModel: ISettingsEditorModel, token?: CancellationToken | undefined): Promise { if (!this.semanticSimilarityService.isEnabled() || !this._filter) { if ( !this._filter || (!this.semanticSimilarityService.isEnabled() && !this.aiRelatedInformationService.isEnabled())) { return null; } this._keysProvider.updateModel(preferencesModel); const filterMatches = this.aiRelatedInformationService.isEnabled() ? await this.getAiRelatedInformationItems(token) : this.semanticSimilarityService.isEnabled() ? await this.getSemanticSimilarityItems(token) : []; return { filterMatches }; } // TODO: Remove this when all semantic similarity providers are migrated to aiRelatedInformationService private async getSemanticSimilarityItems(token?: CancellationToken | undefined) { const settingKeys = this._keysProvider.getSettingKeys(); const settingsRecord = this._keysProvider.getSettingsRecord();"}
{"_id":"doc-en-vscode-5604f2f27fe202ca615c22a5153e4468b995065c68f3cd62f58daf30e4594955","title":"","text":"}); numOfSmartPicks++; } return { filterMatches }; return filterMatches; } private async getAiRelatedInformationItems(token?: CancellationToken | undefined) { const settingsRecord = this._keysProvider.getSettingsRecord(); const filterMatches: ISettingMatch[] = []; const relatedInformation = await this.aiRelatedInformationService.getRelatedInformation(this._filter, [RelatedInformationType.SettingInformation], token ?? CancellationToken.None) as SettingInformationResult[]; relatedInformation.sort((a, b) => b.weight - a.weight); for (const info of relatedInformation) { if (info.weight < RemoteSearchProvider.SEMANTIC_SIMILARITY_THRESHOLD || filterMatches.length === RemoteSearchProvider.SEMANTIC_SIMILARITY_MAX_PICKS) { break; } const pick = info.setting; filterMatches.push({ setting: settingsRecord[pick], matches: [settingsRecord[pick].range], matchType: SettingMatchType.RemoteMatch, score: info.weight }); } return filterMatches; } }"}
{"_id":"doc-en-vscode-37da515d4aec5a35134ff55d0d230521e6caefa8fe183707f83fcf145e417f06","title":"","text":"command: string; } export interface SettingInformationResult extends RelatedInformationResult { type: RelatedInformationType.SettingInformation; setting: string; } export interface IAiRelatedInformationService { readonly _serviceBrand: undefined;"}
{"_id":"doc-en-vscode-9637b602b3bbfcb4b244b407e896b1dbde50ad10d34cab53c328e02b48417494","title":"","text":"import { StopWatch } from 'vs/base/common/stopwatch'; import { ILogService } from 'vs/platform/log/common/log'; /** * @deprecated Use `IAiRelatedInformationService` instead. */ export const ISemanticSimilarityService = createDecorator('ISemanticSimilarityService'); /** * @deprecated Use `IAiRelatedInformationService` instead. */ export interface ISemanticSimilarityService { readonly _serviceBrand: undefined;"}
{"_id":"doc-en-vscode-03bf0006338602df8577ab6cfe80dedadcaea0449accb29ab5c07e18cf2c4f94","title":"","text":"private _readConfiguration() { const options = this._editor.getOption(EditorOption.stickyScroll); if (options.enabled === false) { this._editor.removeOverlayWidget(this._stickyScrollWidget); this._sessionStore.clear();"}
{"_id":"doc-en-vscode-baf4306134df6e8a7e300c1ccc5411a18f5e4bf95534a95d7ad2c3254ec033c3","title":"","text":"} private _renderStickyScroll() { if (!(this._editor.hasModel())) { const model = this._editor.getModel(); if (!model || model.isTooLargeForTokenization()) { this._stickyScrollWidget.setState(undefined); return; } const model = this._editor.getModel(); const stickyLineVersion = this._stickyLineCandidateProvider.getVersionId(); if (stickyLineVersion === undefined || stickyLineVersion === model.getVersionId()) { this._widgetState = this.findScrollWidgetState();"}
{"_id":"doc-en-vscode-bf9d07f22cdf1d2627ba7ef3a5950bdcacf99663d754b81f452867f95a3ed773","title":"","text":"return this._lineNumbers; } setState(state: StickyScrollWidgetState): void { dom.clearNode(this._lineNumbersDomNode); dom.clearNode(this._linesDomNode); setState(state: StickyScrollWidgetState | undefined): void { this._clearStickyWidget(); if (!state) { return; } this._stickyLines = []; const editorLineHeight = this._editor.getOption(EditorOption.lineHeight); const futureWidgetHeight = state.startLineNumbers.length * editorLineHeight + state.lastLineRelativePosition;"}
{"_id":"doc-en-vscode-4d8e855b60663640e81d33ee2ceff6fb277f60067426429292671207e180567e","title":"","text":"this._rootDomNode.style.width = `${layoutInfo.width - layoutInfo.minimap.minimapCanvasOuterWidth - layoutInfo.verticalScrollbarWidth}px`; } private _clearStickyWidget() { dom.clearNode(this._lineNumbersDomNode); dom.clearNode(this._linesDomNode); this._rootDomNode.style.display = 'none'; } private _renderRootNode(): void { if (!this._editor._getViewModel()) {"}
{"_id":"doc-en-vscode-1f1d70fae993b5735ed9dc37d6727f34be8cea056ce516e76a72dace79b89d8a","title":"","text":"const editorLineHeight = this._editor.getOption(EditorOption.lineHeight); const widgetHeight: number = this._lineNumbers.length * editorLineHeight + this._lastLineRelativePosition; this._rootDomNode.style.display = widgetHeight > 0 ? 'block' : 'none'; if (widgetHeight === 0) { this._clearStickyWidget(); return; } this._rootDomNode.style.display = 'block'; this._lineNumbersDomNode.style.height = `${widgetHeight}px`; this._linesDomNodeScrollable.style.height = `${widgetHeight}px`; this._rootDomNode.style.height = `${widgetHeight}px`;"}
{"_id":"doc-en-vscode-fdb4ea15a082fa1a36c5dcdaf5c2e6f248be467f114e172aba4e5189f045eaf6","title":"","text":"'Variable 0 will be a file name.' ] }, \"{0}: tokenization, wrapping and folding have been turned off for this large file in order to reduce memory usage and avoid freezing or crashing.\", \"{0}: tokenization, wrapping, folding and sticky scroll have been turned off for this large file in order to reduce memory usage and avoid freezing or crashing.\", path.basename(model.uri.path) );"}
{"_id":"doc-en-vscode-eb14f2578ca4ada6a2f29614777df455d572e64f496ea675bc5f1d5756fa6f75","title":"","text":"import { memoize } from 'vs/base/common/decorators'; import { join } from 'vs/base/common/path'; import { isLinux } from 'vs/base/common/platform'; import { URI } from 'vs/base/common/uri'; import { createStaticIPCHandle } from 'vs/base/parts/ipc/node/ipc.net'; import { IEnvironmentService, INativeEnvironmentService } from 'vs/platform/environment/common/environment'; import { NativeEnvironmentService } from 'vs/platform/environment/node/environmentService';"}
{"_id":"doc-en-vscode-acbb8bd801fa0aefbd2b5df1da2d66f6a294ddcbdc9b3b9bbabc2f4879b8601e","title":"","text":"@memoize get useCodeCache(): boolean { return !!this.codeCachePath; } @memoize override get userRoamingDataHome(): URI { return this.appSettingsHome; } unsetSnapExportedVariables() { if (!isLinux) { return;"}
{"_id":"doc-en-vscode-801d980c19cc1ea63b432cd85831472eb6f32e38359326795ea5dc2320d058cb","title":"","text":"\"title\": \"%cleanInvalidImageAttachment.title%\" }, { \"command\": \"notebook.cellOutput.copyToClipboard\", \"title\": \"%copyOutputToClipboard.title%\" \"command\": \"notebook.cellOutput.copy\", \"title\": \"%copyCellOutput.title%\" } ], \"notebooks\": ["}
{"_id":"doc-en-vscode-1a2d03669e47d228c0a11ccd184e96b98919c4c7960ed47b82b977e5e754b7dd","title":"","text":"], \"webview/context\": [ { \"command\": \"notebook.cellOutput.copyToClipboard\", \"command\": \"notebook.cellOutput.copy\", \"when\": \"webviewId == 'notebook.output' && webviewSection == 'image'\" } ]"}
{"_id":"doc-en-vscode-66a3e28e23b92bd6d9c0026b36348b6554b8ceafb5e0283953bcce55f09c8d5c","title":"","text":"\"newUntitledIpynb.shortTitle\": \"Jupyter Notebook\", \"openIpynbInNotebookEditor.title\": \"Open IPYNB File In Notebook Editor\", \"cleanInvalidImageAttachment.title\": \"Clean Invalid Image Attachment Reference\", \"copyOutputToClipboard.title\": \"Copy Output to Clipboard\", \"copyCellOutput.title\": \"Copy Output\", \"markdownAttachmentRenderer.displayName\": { \"message\": \"Markdown-It ipynb Cell Attachment renderer\", \"comment\": ["}
{"_id":"doc-en-vscode-61fb63b08d8c87ac320723a3011fed0a6836fb33aca35d7ec57db2fccef936c6","title":"","text":"import { CellKind } from 'vs/workbench/contrib/notebook/common/notebookCommon'; import { CodeCellViewModel } from 'vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel'; export const COPY_OUTPUT_COMMAND_ID = 'notebook.cellOutput.copyToClipboard'; export const COPY_OUTPUT_COMMAND_ID = 'notebook.cellOutput.copy'; registerAction2(class CopyCellOutputAction extends Action2 { constructor() { super({ id: COPY_OUTPUT_COMMAND_ID, title: localize('notebookActions.copyOutput', \"Copy Output to Clipboard\"), title: localize('notebookActions.copyOutput', \"Copy Output\"), menu: { id: MenuId.NotebookOutputToolbar, when: NOTEBOOK_CELL_HAS_OUTPUTS"}
{"_id":"doc-en-vscode-29dee07a6f203193a8c35400dd9de48d84c4d14468e1945f63f2f874ace86a17","title":"","text":"'application/x.notebook.stream', 'application/vnd.code.notebook.stderr', 'application/x.notebook.stderr', 'text/plain' 'text/plain', 'text/markdown', 'application/json' ];"}
{"_id":"doc-en-vscode-bd36ebd200b6ad15f5d7abbc01bdd3e92977464a64f80dc4520a57268f781a1a","title":"","text":"this._loadState(); this._register(this._storageService.onWillSaveState(() => this._saveState())); this._register(this._storageService.onDidChangeValue(StorageScope.WORKSPACE, NotebookKernelHistoryService.STORAGE_KEY, this._register(new DisposableStore()))(() => { this._restoreState(); this._loadState(); })); }"}
{"_id":"doc-en-vscode-286e3c8244b3b962690609cc286e66c6a86ad9063d015bc5c9cca1a9e165aa62","title":"","text":"} } private _restoreState(): void { const serialized = this._storageService.get(NotebookKernelHistoryService.STORAGE_KEY, StorageScope.WORKSPACE); if (serialized) { try { for (const [viewType, kernels] of JSON.parse(serialized)) { const linkedMap = this._mostRecentKernelsMap[viewType] ?? new LinkedMap(); for (const entry of kernels.entries) { linkedMap.set(entry, entry, Touch.AsOld); } this._mostRecentKernelsMap[viewType] = linkedMap; } } catch (e) { console.error('Deserialize notebook kernel history failed', e); } } } private _loadState(): void { const serialized = this._storageService.get(NotebookKernelHistoryService.STORAGE_KEY, StorageScope.WORKSPACE); if (serialized) {"}
{"_id":"doc-en-vscode-633d4c3f67a744d4fa8a73ff997d1eb56bcccf1e712a930c24387422488b361b","title":"","text":"import { workspace, window, languages, commands, ExtensionContext, extensions, Uri, ColorInformation, Diagnostic, StatusBarAlignment, TextEditor, TextDocument, FormattingOptions, CancellationToken, FoldingRange, ProviderResult, TextEdit, Range, Position, Disposable, CompletionItem, CompletionList, CompletionContext, Hover, MarkdownString, FoldingContext, DocumentSymbol, SymbolInformation, l10n, TextEditorOptions ProviderResult, TextEdit, Range, Position, Disposable, CompletionItem, CompletionList, CompletionContext, Hover, MarkdownString, FoldingContext, DocumentSymbol, SymbolInformation, l10n } from 'vscode'; import { LanguageClientOptions, RequestType, NotificationType, FormattingOptions as LSPFormattingOptions,"}
{"_id":"doc-en-vscode-4fabef0af7507fa467e3ed075ed4bc6e5abc885577ece8c54ea0f8b4f3e36e72","title":"","text":"export namespace SettingIds { export const enableFormatter = 'json.format.enable'; export const enableKeepLines = 'json.format.keepLines'; export const enableSortOnSave = 'json.sortOnSave.enable'; export const enableValidation = 'json.validate.enable'; export const enableSchemaDownload = 'json.schemaDownload.enable'; export const maxItemsComputed = 'json.maxItemsComputed';"}
{"_id":"doc-en-vscode-e250b5d04f2cd12b888f9a128c7d4ddeda71cb5143bda700121df2fbdb1ad777","title":"","text":"window.showInformationMessage(l10n.t('JSON schema cache cleared.')); })); toDispose.push(workspace.onWillSaveTextDocument(event => { const sortOnSave = workspace.getConfiguration().get(SettingIds.enableSortOnSave); const document = event.document; if (sortOnSave && (document.languageId === 'json' || document.languageId === 'jsonc')) { const documentOptions = getOptionsForDocument(document); const textEditsPromise = getSortTextEdits(document, documentOptions?.tabSize, documentOptions?.insertSpaces); event.waitUntil(textEditsPromise); } })); toDispose.push(commands.registerCommand('json.sort', async () => {"}
{"_id":"doc-en-vscode-1ad463eb6de4f25d173c36033b1774619dcd1c21276899adc4aafeeaf1cf4d09","title":"","text":"function isSchemaResolveError(d: Diagnostic) { return d.code === /* SchemaResolveError */ 0x300; } function getOptionsForDocument(document: TextDocument): TextEditorOptions | undefined { for (const editor of window.visibleTextEditors) { if (editor.document.uri.toString() === document.uri.toString()) { return editor.options; } } return; } "}
{"_id":"doc-en-vscode-59f374578101a91a42748b09e403825911116af59c24d108bf7952854434d499","title":"","text":"\"default\": false, \"description\": \"%json.format.keepLines.desc%\" }, \"json.sortOnSave.enable\": { \"type\": \"boolean\", \"scope\": \"window\", \"default\": false, \"description\": \"%json.sortOnSave.enable.desc%\" }, \"json.trace.server\": { \"type\": \"string\", \"scope\": \"window\","}
{"_id":"doc-en-vscode-91cec486ab75689743047353b7b99d6d86ac1d4f3be3a1de2257d86febc50116","title":"","text":"\"json.schemas.schema.desc\": \"The schema definition for the given URL. The schema only needs to be provided to avoid accesses to the schema URL.\", \"json.format.enable.desc\": \"Enable/disable default JSON formatter\", \"json.format.keepLines.desc\" : \"Keep all existing new lines when formatting.\", \"json.sortOnSave.enable.desc\": \"Enable/disable default sorting on save\", \"json.validate.enable.desc\": \"Enable/disable JSON validation.\", \"json.tracing.desc\": \"Traces the communication between VS Code and the JSON language server.\", \"json.colorDecorators.enable.desc\": \"Enables or disables color decorators\","}
{"_id":"doc-en-vscode-232c98c14ceb74f894862c2bcab41fcf9d91003d8d49a065888249e72a9d05b5","title":"","text":"import { Connection, TextDocuments, InitializeParams, InitializeResult, NotificationType, RequestType, DocumentRangeFormattingRequest, Disposable, ServerCapabilities, TextDocumentSyncKind, TextEdit, DocumentFormattingRequest, TextDocumentIdentifier, FormattingOptions, Diagnostic DocumentRangeFormattingRequest, Disposable, ServerCapabilities, TextDocumentSyncKind, TextEdit, DocumentFormattingRequest, TextDocumentIdentifier, FormattingOptions, Diagnostic, CodeAction, CodeActionKind } from 'vscode-languageserver'; import { runSafe, runSafeAsync } from './utils/runner';"}
{"_id":"doc-en-vscode-4db652586d1154e5f0e5ecf414c673702e6b3b0e7cd834661f8241aaa3ffcc87","title":"","text":"import { TextDocument, JSONDocument, JSONSchema, getLanguageService, DocumentLanguageSettings, SchemaConfiguration, ClientCapabilities, Range, Position, SortOptions } from 'vscode-json-languageservice'; import { getLanguageModelCache } from './languageModelCache'; import { Utils, URI } from 'vscode-uri'; import * as l10n from '@vscode/l10n'; type ISchemaAssociations = Record;"}
{"_id":"doc-en-vscode-4dc458e1836f48c7d06b61f69fc0291276d89dc74985f59354eb24793837c28a","title":"","text":"documentSelector: null, interFileDependencies: false, workspaceDiagnostics: false } }, codeActionProvider: true }; return { capabilities };"}
{"_id":"doc-en-vscode-8a9a4e56ad8ce33455f951cce1c450af1ed5df6f1bcb22cc05a857468c74388d","title":"","text":"}, [], `Error while computing document symbols for ${documentSymbolParams.textDocument.uri}`, token); }); connection.onCodeAction((codeActionParams, token) => { return runSafeAsync(runtime, async () => { const document = documents.get(codeActionParams.textDocument.uri); if (document) { const sortCodeAction = CodeAction.create('Sort JSON', CodeActionKind.Source.concat('.sort', '.json')); sortCodeAction.command = { command: 'json.sort', title: l10n.t('Sort JSON') }; return [sortCodeAction]; } return []; }, [], `Error while computing code actions for ${codeActionParams.textDocument.uri}`, token); }); function onFormat(textDocument: TextDocumentIdentifier, range: Range | undefined, options: FormattingOptions): TextEdit[] { options.keepLines = keepLinesEnabled;"}
{"_id":"doc-en-vscode-e0b31b961c9e8c53fa12aba4a234702bc9145f16f66efd884e604b907c0f9ff5","title":"","text":"const startN = binarySearch2(da.length, i => Number(da.row(i).address - firstAddr)); const start = startN < 0 ? ~startN : startN; const endN = binarySearch2(da.length, i => Number(da.row(i).address - lastAddr)); const end = endN < 0 ? ~endN : endN; const end = endN < 0 ? ~endN : endN + 1; const toDelete = end - start; // Go through everything we're about to add, and only show the source"}
{"_id":"doc-en-vscode-a70bd2bf106628148c7f4e84188dc6fa302aecb20e53adcc805644f83fee6191","title":"","text":"let textModel: ITextModel | undefined = undefined; const sourceSB = new StringBuilder(10000); const ref = await this.textModelService.createModelReference(sourceURI); if (templateData.currentElement.element !== element) { return; // avoid a race, #192831 } textModel = ref.object.textEditorModel; templateData.cellDisposable.push(ref);"}
{"_id":"doc-en-vscode-cbfaacd6e89d6a47ddca00864788724ea3a06df52cfa83d094ba953a5ca04692","title":"","text":"rename(title?: string): Promise; /** * Triggers a quick pick to change the icon of this terminal. * Sets or triggers a quick pick to change the icon of this terminal. */ changeIcon(): Promise; changeIcon(icon?: TerminalIcon): Promise; /** * Triggers a quick pick to change the color of the associated terminal tab icon. * Sets or triggers a quick pick to change the color of the associated terminal tab icon. */ changeColor(): Promise; changeColor(color?: string): Promise; /** * Triggers a quick pick that displays recent commands or cwds. Selecting one will"}
{"_id":"doc-en-vscode-fa5a0fef2cca73974b6fc896f0d1038b081ab50a61066054ee3510290293ab1e","title":"","text":"import { INotificationService, Severity } from 'vs/platform/notification/common/notification'; import { IOpenerService } from 'vs/platform/opener/common/opener'; import { IPickOptions, IQuickInputService, IQuickPickItem } from 'vs/platform/quickinput/common/quickInput'; import { ITerminalProfile, TerminalExitReason, TerminalLocation, TerminalSettingId } from 'vs/platform/terminal/common/terminal'; import { ITerminalProfile, TerminalExitReason, TerminalIcon, TerminalLocation, TerminalSettingId } from 'vs/platform/terminal/common/terminal'; import { IWorkspaceContextService, IWorkspaceFolder } from 'vs/platform/workspace/common/workspace'; import { PICK_WORKSPACE_FOLDER_COMMAND_ID } from 'vs/workbench/browser/actions/workspaceCommands'; import { CLOSE_EDITOR_COMMAND_ID } from 'vs/workbench/browser/parts/editor/editorCommands';"}
{"_id":"doc-en-vscode-305b5cafd341837cffb873ec3f106b04b7b5d390b41ca10c0561e99669d3b2b1","title":"","text":"title: terminalStrings.changeIcon, f1: false, precondition: ContextKeyExpr.and(ContextKeyExpr.or(TerminalContextKeys.processSupported, TerminalContextKeys.terminalHasBeenCreated), TerminalContextKeys.tabsSingularSelection), run: (c, accessor) => getSelectedInstances(accessor)?.[0].changeIcon() run: async (c, accessor) => { let icon: TerminalIcon | undefined; for (const terminal of getSelectedInstances(accessor) ?? []) { icon = await terminal.changeIcon(icon); } } }); registerTerminalAction({"}
{"_id":"doc-en-vscode-642331a1b38d1370eb8096c5a03579f6c39e5891037cdde92eb2ab4a67baf0bf","title":"","text":"title: terminalStrings.changeColor, f1: false, precondition: ContextKeyExpr.and(ContextKeyExpr.or(TerminalContextKeys.processSupported, TerminalContextKeys.terminalHasBeenCreated), TerminalContextKeys.tabsSingularSelection), run: (c, accessor) => getSelectedInstances(accessor)?.[0].changeColor() run: async (c, accessor) => { let color: string | undefined; for (const terminal of getSelectedInstances(accessor) ?? []) { color = await terminal.changeColor(color); } } }); registerTerminalAction({"}
{"_id":"doc-en-vscode-ef2cd241fa1538a139fb259893ed104573b193fc43f20496c0d904002b88d9b9","title":"","text":"run: (c, accessor) => accessor.get(ICommandService).executeCommand(CLOSE_EDITOR_COMMAND_ID) }); registerContextualInstanceAction({ registerTerminalAction({ id: TerminalCommandId.KillActiveTab, title: terminalStrings.kill, f1: false,"}
{"_id":"doc-en-vscode-82bcfa594f5cbc21ccc3ffff524d2eefc399659287d195a5b3be9505df9318ec","title":"","text":"weight: KeybindingWeight.WorkbenchContrib, when: TerminalContextKeys.tabsFocus }, run: (instance, c) => c.service.safeDisposeTerminal(instance), runAfter: (instances, c) => c.groupService.focusTabs() run: async (c, accessor) => { for (const terminal of getSelectedInstances(accessor) ?? []) { c.service.safeDisposeTerminal(terminal); } c.groupService.focusTabs(); } }); registerTerminalAction({"}
{"_id":"doc-en-vscode-4e0840efa5f545e9d390c9025159151341096c43ed4a959103c22abee9bf64e3","title":"","text":"} } async changeIcon() { async changeIcon(icon?: TerminalIcon): Promise { if (icon) { this._icon = icon; this._onIconChanged.fire({ instance: this, userInitiated: true }); return icon; } type Item = IQuickPickItem & { icon: TerminalIcon }; const items: Item[] = []; for (const icon of getAllCodicons()) {"}
{"_id":"doc-en-vscode-a518b4b7bcfee6cd55642bf8e3fbd3cb1a5927663bbd07ebea58ae432c107113","title":"","text":"if (result) { this._icon = result.icon; this._onIconChanged.fire({ instance: this, userInitiated: true }); return this._icon; } return; } async changeColor() { async changeColor(color?: string): Promise { if (color) { this.shellLaunchConfig.color = color; this._onIconChanged.fire({ instance: this, userInitiated: true }); return color; } const icon = this._getIcon(); if (!icon) { return;"}
{"_id":"doc-en-vscode-916478a5c51c094ce8978f289191f4bc3118fd2e099d1565c06fe1d023691859","title":"","text":"quickPick.hide(); colorStyleDisposable.dispose(); return result?.id; } selectPreviousSuggestion(): void {"}
{"_id":"doc-en-vscode-93102b865e1ce704ae87d1c4d07dcfa91599185ccc8e9f2c39235edc5145def4","title":"","text":"const keys = ['audioCues.diffLineDeleted', 'audioCues.diffLineInserted', 'audioCues.diffLineModified']; const content = [ localize('msg1', \"You are in a diff editor.\"), localize('msg2', \"View the next {0} or previous {1} diff in diff review mode that is optimized for screen readers.\", next, previous), localize('msg2', \"View the next ({0}) or previous ({1}) diff in diff review mode that is optimized for screen readers.\", next, previous), localize('msg3', \"To control which audio cues should be played, the following settings can be configured: {0}.\", keys.join(', ')), ]; const commentCommandInfo = getCommentCommandInfo(keybindingService, contextKeyService, codeEditor);"}
{"_id":"doc-en-vscode-fafe265892e3d9cb83c57b3312b194aa2a7acd6782c98bd6b30d3dfc6d43402d","title":"","text":"import { killTerminalIcon, newTerminalIcon } from 'vs/workbench/contrib/terminal/browser/terminalIcons'; import { IEditorGroupsService } from 'vs/workbench/services/editor/common/editorGroupsService'; import { Iterable } from 'vs/base/common/iterator'; import { AccessibleViewProviderId, accessibleViewCurrentProviderId, accessibleViewOnLastLine } from 'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration'; import { AccessibleViewProviderId, accessibleViewCurrentProviderId, accessibleViewIsShown, accessibleViewOnLastLine } from 'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration'; export const switchTerminalActionViewItemSeparator = 'u2500u2500u2500u2500u2500u2500u2500u2500u2500'; export const switchTerminalShowTabsTitle = localize('showTerminalTabs', \"Show Tabs\");"}
{"_id":"doc-en-vscode-fdff3fb11dfbc4b215bd7703dc85f1406ecc09a4bb4b8b85814efbf094cf596a","title":"","text":"keybinding: [ { primary: KeyMod.CtrlCmd | KeyCode.KeyR, when: ContextKeyExpr.and(TerminalContextKeys.focus, CONTEXT_ACCESSIBILITY_MODE_ENABLED), when: ContextKeyExpr.and(CONTEXT_ACCESSIBILITY_MODE_ENABLED, ContextKeyExpr.or(TerminalContextKeys.focus, ContextKeyExpr.and(accessibleViewIsShown, accessibleViewCurrentProviderId.isEqualTo(AccessibleViewProviderId.Terminal)))), weight: KeybindingWeight.WorkbenchContrib }, {"}
{"_id":"doc-en-vscode-ba6486d4bbedda74204080562147ab6c484ee312f35610adb76e98714e768933","title":"","text":"if (this._hasShellIntegration) { const shellIntegrationCommandList = []; shellIntegrationCommandList.push(localize('shellIntegration', \"The terminal has a feature called shell integration that offers an enhanced experience and provides useful commands for screen readers such as:\")); shellIntegrationCommandList.push('- ' + this._descriptionForCommand(TerminalCommandId.AccessibleBufferGoToNextCommand, localize('goToNextCommand', 'Go to Next Command ({0})'), localize('goToNextCommandNoKb', 'Go to Next Command is currently not triggerable by a keybinding.'))); shellIntegrationCommandList.push('- ' + this._descriptionForCommand(TerminalCommandId.AccessibleBufferGoToPreviousCommand, localize('goToPreviousCommand', 'Go to Previous Command ({0})'), localize('goToPreviousCommandNoKb', 'Go to Previous Command is currently not triggerable by a keybinding.'))); shellIntegrationCommandList.push('- ' + this._descriptionForCommand(TerminalCommandId.AccessibleBufferGoToNextCommand, localize('goToNextCommand', 'Go to Next Command ({0}) in the accessible view'), localize('goToNextCommandNoKb', 'Go to Next Command in the accessible view is currently not triggerable by a keybinding.'))); shellIntegrationCommandList.push('- ' + this._descriptionForCommand(TerminalCommandId.AccessibleBufferGoToPreviousCommand, localize('goToPreviousCommand', 'Go to Previous Command ({0}) in the accessible view'), localize('goToPreviousCommandNoKb', 'Go to Previous Command in the accessible view is currently not triggerable by a keybinding.'))); shellIntegrationCommandList.push('- ' + this._descriptionForCommand(AccessibilityCommandId.GoToSymbol, localize('goToSymbol', 'Go to Symbol ({0})'), localize('goToSymbolNoKb', 'Go to symbol is currently not triggerable by a keybinding.'))); shellIntegrationCommandList.push('- ' + this._descriptionForCommand(TerminalCommandId.RunRecentCommand, localize('runRecentCommand', 'Run Recent Command ({0})'), localize('runRecentCommandNoKb', 'Run Recent Command is currently not triggerable by a keybinding.'))); shellIntegrationCommandList.push('- ' + this._descriptionForCommand(TerminalCommandId.GoToRecentDirectory, localize('goToRecentDirectory', 'Go to Recent Directory ({0})'), localize('goToRecentDirectoryNoKb', 'Go to Recent Directory is currently not triggerable by a keybinding.')));"}
{"_id":"doc-en-vscode-f999f0974bc97d5098006c476560626a1272b50a8bc7ed3a4ff30108f6a3435c","title":"","text":"async getBranchBase(ref: string): Promise { const branch = await this.getBranch(ref); const branchMergeBaseConfigKey = `branch.${branch.name}.vscode-merge-base`; const branchUpstream = await this.getUpstreamBranch(branch); // Upstream if (branch.upstream) { return await this.getBranch(`refs/remotes/${branch.upstream.remote}/${branch.upstream.name}`); if (branchUpstream) { return branchUpstream; } // Git config const mergeBaseConfigKey = `branch.${branch.name}.vscode-merge-base`; try { const mergeBase = await this.getConfig(branchMergeBaseConfigKey); if (mergeBase !== '') { const mergeBaseBranch = await this.getBranch(mergeBase); return mergeBaseBranch; const mergeBase = await this.getConfig(mergeBaseConfigKey); const branchFromConfig = mergeBase !== '' ? await this.getBranch(mergeBase) : undefined; if (branchFromConfig) { return branchFromConfig; } } catch (err) { } // Reflog const branchFromReflog = await this.getBranchBaseFromReflog(ref); if (branchFromReflog) { await this.setConfig(branchMergeBaseConfigKey, branchFromReflog.name!); return branchFromReflog; const branchFromReflogUpstream = branchFromReflog ? await this.getUpstreamBranch(branchFromReflog) : undefined; if (branchFromReflogUpstream) { await this.setConfig(mergeBaseConfigKey, `${branchFromReflogUpstream.remote}/${branchFromReflogUpstream.name}`); return branchFromReflogUpstream; } // Default branch const defaultBranch = await this.getDefaultBranch(); if (defaultBranch) { await this.setConfig(branchMergeBaseConfigKey, defaultBranch.name!); await this.setConfig(mergeBaseConfigKey, `${defaultBranch.remote}/${defaultBranch.name}`); return defaultBranch; }"}
{"_id":"doc-en-vscode-903ab2188e813d8d0d55daecc7e050882276f12eb709f9b8648c29a02f0bbc2f","title":"","text":"return undefined; } private async getUpstreamBranch(branch: Branch): Promise { if (!branch.upstream) { return undefined; } try { const upstreamBranch = await this.getBranch(`refs/remotes/${branch.upstream.remote}/${branch.upstream.name}`); return upstreamBranch; } catch (err) { this.logger.warn(`Failed to get branch details for 'refs/remotes/${branch.upstream.remote}/${branch.upstream.name}': ${err.message}.`); return undefined; } } async getRefs(query: RefQuery = {}, cancellationToken?: CancellationToken): Promise[ { const config = workspace.getConfiguration('git'); let defaultSort = config.get<'alphabetically' | 'committerdate'>('branchSortOrder');"}
{"_id":"doc-en-vscode-06d79c4566cef6116f47d36c2152e5e97030a0f35c763da1d5763f95c6a5036a","title":"","text":"@IKeybindingService private _keybindingService: IKeybindingService, @IInstantiationService private _instaService: IInstantiationService, ) { ] super(undefined, _submenu.actions[0], options); super(undefined, _submenu.actions.find(action => action.id === 'workbench.action.quickOpenWithModes') ?? _submenu.actions[0], options); } override render(container: HTMLElement): void {"}
{"_id":"doc-en-vscode-17dfc967e5a380e8b25061cc72c1186d03bf7b991c0a6e70db0e6a1320e73cd2","title":"","text":"}); const CONTEXT_TOOLBAR_COMMAND_CENTER = ContextKeyExpr.equals('config.debug.toolBarLocation', 'commandCenter'); MenuRegistry.appendMenuItem(MenuId.CommandCenterCenter, { submenu: MenuId.DebugToolBar, title: 'Debug', icon: Codicon.debug, order: 1, when: ContextKeyExpr.and(CONTEXT_IN_DEBUG_MODE, ContextKeyExpr.equals('config.debug.toolBarLocation', 'commandCenter')) when: ContextKeyExpr.and(CONTEXT_IN_DEBUG_MODE, CONTEXT_TOOLBAR_COMMAND_CENTER) }); registerDebugToolBarItem(CONTINUE_ID, CONTINUE_LABEL, 10, icons.debugContinue, CONTEXT_DEBUG_STATE.isEqualTo('stopped'));"}
{"_id":"doc-en-vscode-f4fa6a3d039f534629938ddb219184980860462697e4cb25b3ab6f0e8952c659","title":"","text":"registerDebugToolBarItem(RESTART_SESSION_ID, RESTART_LABEL, 60, icons.debugRestart); registerDebugToolBarItem(STEP_BACK_ID, localize('stepBackDebug', \"Step Back\"), 50, icons.debugStepBack, CONTEXT_STEP_BACK_SUPPORTED, CONTEXT_DEBUG_STATE.isEqualTo('stopped')); registerDebugToolBarItem(REVERSE_CONTINUE_ID, localize('reverseContinue', \"Reverse\"), 55, icons.debugReverseContinue, CONTEXT_STEP_BACK_SUPPORTED, CONTEXT_DEBUG_STATE.isEqualTo('stopped')); registerDebugToolBarItem(FOCUS_SESSION_ID, FOCUS_SESSION_LABEL, 100, Codicon.listTree, CONTEXT_MULTI_SESSION_DEBUG); registerDebugToolBarItem(FOCUS_SESSION_ID, FOCUS_SESSION_LABEL, 100, Codicon.listTree, ContextKeyExpr.and(CONTEXT_MULTI_SESSION_DEBUG, CONTEXT_TOOLBAR_COMMAND_CENTER.negate())); MenuRegistry.appendMenuItem(MenuId.DebugToolBarStop, { group: 'navigation',"}
{"_id":"doc-en-vscode-e043e7de33435c3cf4b039647ac47744affa6961c453b3e0ac8251d3d99eab66","title":"","text":"} public async $OnDidEndTask(execution: tasks.ITaskExecutionDTO): Promise { if (!this._taskExecutionPromises.has(execution.id)) { // Event already fired by the main thread // See https://github.com/microsoft/vscode/commit/aaf73920aeae171096d205efb2c58804a32b6846 return; } const _execution = await this.getTaskExecution(execution); this._taskExecutionPromises.delete(execution.id); this._taskExecutions.delete(execution.id);"}
{"_id":"doc-en-vscode-0c1fc519c425c4dae49d2ba42472a68ad4d2e42377cd3629241f5b21171e4305","title":"","text":"if (result) { return result; } const createdResult: Promise = new Promise((resolve, reject) => { function resolvePromiseWithCreatedTask(that: ExtHostTaskBase, execution: tasks.ITaskExecutionDTO, taskToCreate: vscode.Task | types.Task | undefined) { if (!taskToCreate) { reject('Unexpected: Task does not exist.'); } else { resolve(new TaskExecutionImpl(that, execution.id, taskToCreate)); } } if (task) { resolvePromiseWithCreatedTask(this, execution, task); } else { TaskDTO.to(execution.task, this._workspaceProvider, this._providedCustomExecutions2) .then(task => resolvePromiseWithCreatedTask(this, execution, task)); } }); this._taskExecutionPromises.set(execution.id, createdResult); return createdResult.then(executionCreatedResult => { this._taskExecutions.set(execution.id, executionCreatedResult); return executionCreatedResult; }, rejected => { return Promise.reject(rejected); let executionPromise: Promise; if (!task) { executionPromise = TaskDTO.to(execution.task, this._workspaceProvider, this._providedCustomExecutions2).then(t => { if (!t) { throw new ErrorNoTelemetry('Unexpected: Task does not exist.'); } return new TaskExecutionImpl(this, execution.id, t); }); } else { executionPromise = Promise.resolve(new TaskExecutionImpl(this, execution.id, task)); } this._taskExecutionPromises.set(execution.id, executionPromise); return executionPromise.then(taskExecution => { this._taskExecutions.set(execution.id, taskExecution); return taskExecution; }); }"}
{"_id":"doc-en-vscode-b2e6bfc899ea1aeb08b79af31e71217a80b6b80e902df6e372c59843a2614ea6","title":"","text":"key: 'workbench.editor.untitled.hint', migrateFn: (value, _accessor) => ([ [emptyTextEditorHintSetting, { value }], ['workbench.editor.untitled.hint', { value: undefined }] ]) }, { key: 'accessibility.verbosity.untitledHint', migrateFn: (value, _accessor) => ([ [AccessibilityVerbositySettingId.EmptyEditorHint, { value }], ['accessibility.verbosity.untitledHint', { value: undefined }] ]) }]);"}
{"_id":"doc-en-vscode-2083b2a96734c20df50c9d5cdd36c532a95e7d77a7a14a285b8f8ba19ff8b27f","title":"","text":"import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry'; import { Registry } from 'vs/platform/registry/common/platform'; import { InlineChatController } from 'vs/workbench/contrib/inlineChat/browser/inlineChatController'; import { CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_INNER_CURSOR_LAST } from 'vs/workbench/contrib/inlineChat/common/inlineChat'; import { INotebookActionContext, INotebookCellActionContext, NotebookAction, NotebookCellAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, findTargetCellEditor } from 'vs/workbench/contrib/notebook/browser/controller/coreActions'; import { CellEditState } from 'vs/workbench/contrib/notebook/browser/notebookBrowser'; import { CellKind, NOTEBOOK_EDITOR_CURSOR_BOUNDARY } from 'vs/workbench/contrib/notebook/common/notebookCommon';"}
{"_id":"doc-en-vscode-b7933b0c8a831c11471ed60661c86e9a43003c5e2476739e2b9b4e8a073eb097","title":"","text":"weight: KeybindingWeight.WorkbenchContrib }, { when: ContextKeyExpr.and( NOTEBOOK_EDITOR_FOCUSED, CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate(), ContextKeyExpr.equals('config.notebook.navigation.allowNavigateToSurroundingCells', true), ContextKeyExpr.and( ContextKeyExpr.has(InputFocusedContextKey), NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('top'), NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('none'), ), CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_INNER_CURSOR_LAST, EditorContextKeys.isEmbeddedDiffEditor.negate() ), primary: KeyCode.DownArrow, weight: KeybindingWeight.EditorCore }, { when: ContextKeyExpr.and( NOTEBOOK_EDITOR_FOCUSED, CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate(), ContextKeyExpr.equals('config.notebook.navigation.allowNavigateToSurroundingCells', true), ContextKeyExpr.and( NOTEBOOK_CELL_TYPE.isEqualTo('markup'), NOTEBOOK_CELL_MARKDOWN_EDIT_MODE.isEqualTo(false), NOTEBOOK_CURSOR_NAVIGATION_MODE), CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_INNER_CURSOR_LAST, EditorContextKeys.isEmbeddedDiffEditor.negate() ), primary: KeyCode.DownArrow, weight: KeybindingWeight.EditorCore }, { when: NOTEBOOK_EDITOR_FOCUSED, primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageDown, mac: { primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageDown, },"}
{"_id":"doc-en-vscode-92e85cc174502767cc46433e47b44f8186428d56e92fa30bff0d3a41dd589655","title":"","text":"super({ id: NOTEBOOK_FOCUS_PREVIOUS_EDITOR, title: localize('cursorMoveUp', 'Focus Previous Cell Editor'), precondition: CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate(), keybinding: [ { when: ContextKeyExpr.and("}
{"_id":"doc-en-vscode-43f856c376c0ba52f50b05e6158e6778eb2a3673b514dbeee3b595947b4b78f6","title":"","text":"id: AccessibilityCommandId.AccessibleViewAcceptInlineCompletion, precondition: ContextKeyExpr.and(accessibleViewIsShown, ContextKeyExpr.equals(accessibleViewCurrentProviderId.key, AccessibleViewProviderId.InlineCompletions)), keybinding: { primary: KeyMod.CtrlCmd | KeyCode.Enter, mac: { primary: KeyMod.WinCtrl | KeyCode.Enter }, primary: KeyMod.CtrlCmd | KeyCode.Slash, mac: { primary: KeyMod.WinCtrl | KeyCode.Slash }, weight: KeybindingWeight.WorkbenchContrib }, icon: Codicon.check,"}
{"_id":"doc-en-vscode-a342902debad9d4a38d5bc5c7c7833b924e2f73675f2c95ac6d4028b4d664746","title":"","text":"return undefined; } export async function getDocumentFormattingEditsWithSelectedProvider( workerService: IEditorWorkerService, languageFeaturesService: ILanguageFeaturesService, editorOrModel: ITextModel | IActiveCodeEditor, mode: FormattingMode, token: CancellationToken, ): Promise { const model = isCodeEditor(editorOrModel) ? editorOrModel.getModel() : editorOrModel; const provider = getRealAndSyntheticDocumentFormattersOrdered(languageFeaturesService.documentFormattingEditProvider, languageFeaturesService.documentRangeFormattingEditProvider, model); const selected = await FormattingConflicts.select(provider, model, mode, FormattingKind.File); if (selected) { const rawEdits = await Promise.resolve(selected.provideDocumentFormattingEdits(model, model.getOptions(), token)).catch(onUnexpectedExternalError); return await workerService.computeMoreMinimalEdits(model.uri, rawEdits); } return undefined; } export function getOnTypeFormattingEdits( workerService: IEditorWorkerService, languageFeaturesService: ILanguageFeaturesService,"}
{"_id":"doc-en-vscode-058058659a52e15f49d14807c1257e1d1833c142cbc52f6033721e2e1cbde175","title":"","text":"import { IEditorWorkerService } from 'vs/editor/common/services/editorWorker'; import { ILanguageFeaturesService } from 'vs/editor/common/services/languageFeatures'; import { ITextModelService } from 'vs/editor/common/services/resolverService'; import { FormattingMode, formatDocumentWithSelectedProvider, getDocumentFormattingEditsUntilResult } from 'vs/editor/contrib/format/browser/format'; import { FormattingMode, formatDocumentWithSelectedProvider, getDocumentFormattingEditsWithSelectedProvider } from 'vs/editor/contrib/format/browser/format'; import { Action2, MenuId, registerAction2 } from 'vs/platform/actions/common/actions'; import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey'; import { IInstantiationService, ServicesAccessor } from 'vs/platform/instantiation/common/instantiation';"}
{"_id":"doc-en-vscode-ff5d484fddee5feb41cab304e8b1f6f15cfa417838ea68f97db5815635c77a67","title":"","text":"const model = ref.object.textEditorModel; const formatEdits = await getDocumentFormattingEditsUntilResult( const formatEdits = await getDocumentFormattingEditsWithSelectedProvider( editorWorkerService, languageFeaturesService, model, model.getOptions(), FormattingMode.Explicit, CancellationToken.None );"}
{"_id":"doc-en-vscode-c4be8aa3f71fee6896f1cafa8fdc8fb7056333044f76531fdb42cc2a9ebfab34","title":"","text":"const model = ref.object.textEditorModel; // todo: eventually support cancellation. potential leak if cell deleted mid execution const formatEdits = await getDocumentFormattingEditsUntilResult( const formatEdits = await getDocumentFormattingEditsWithSelectedProvider( this.editorWorkerService, this.languageFeaturesService, model, model.getOptions(), FormattingMode.Silent, CancellationToken.None );"}
{"_id":"doc-en-vscode-97be8befb9ea59af08a893c33c2215fd407381e0afb3cf0b0a2de2d0891ab368","title":"","text":"import { ITextModelService } from 'vs/editor/common/services/resolverService'; import { ApplyCodeActionReason, applyCodeAction, getCodeActions } from 'vs/editor/contrib/codeAction/browser/codeAction'; import { CodeActionKind, CodeActionTriggerSource } from 'vs/editor/contrib/codeAction/common/types'; import { getDocumentFormattingEditsUntilResult } from 'vs/editor/contrib/format/browser/format'; import { FormattingMode, getDocumentFormattingEditsWithSelectedProvider } from 'vs/editor/contrib/format/browser/format'; import { SnippetController2 } from 'vs/editor/contrib/snippet/browser/snippetController2'; import { localize } from 'vs/nls'; import { IConfigurationService } from 'vs/platform/configuration/common/configuration';"}
{"_id":"doc-en-vscode-380bc29b9ac58355725ae93a4851c60607cabfa2eb6782b082078c7fbc0b6199","title":"","text":"const model = ref.object.textEditorModel; const formatEdits = await getDocumentFormattingEditsUntilResult( const formatEdits = await getDocumentFormattingEditsWithSelectedProvider( this.editorWorkerService, this.languageFeaturesService, model, model.getOptions(), FormattingMode.Silent, token );"}
{"_id":"doc-en-vscode-34f3ff9e6a4a3fade78b7d6c4e623eafd8a4666797a20f8d774c212ccb4bc544","title":"","text":"const activeTextEditor = window.activeTextEditor; // Must extract these now because opening a new document will change the activeTextEditor reference const previousVisibleRange = activeTextEditor?.visibleRanges[0]; const previousVisibleRanges = activeTextEditor?.visibleRanges; const previousURI = activeTextEditor?.document.uri; const previousSelection = activeTextEditor?.selection;"}
{"_id":"doc-en-vscode-bd186ad61f02c884bb2be526095574b3de2f02eae2c20b1a390e9574d11c4541","title":"","text":"opts.selection = previousSelection; const editor = await window.showTextDocument(document, opts); // This should always be defined but just in case if (previousVisibleRange) { editor.revealRange(previousVisibleRange); if (previousVisibleRanges && previousVisibleRanges.length > 0) { let rangeToReveal = previousVisibleRanges[0]; if (previousSelection && previousVisibleRanges.length > 1) { // In case of multiple visible ranges, find the one that intersects with the selection rangeToReveal = previousVisibleRanges.find(r => r.intersection(previousSelection)) ?? rangeToReveal; } editor.revealRange(rangeToReveal); } } }"}
{"_id":"doc-en-vscode-afae73ddf9aa419f2c4f2b09c82b3fcb8fc085ac9747a73df75f021b1edd9d80","title":"","text":" content=\"default-src 'none'; script-src 'sha256-QA1gXilHYAUFCvp7MpjgcmyBCFzSKV0SpiecMU8aUVc=' 'self'; frame-src 'self'; style-src 'unsafe-inline';\"> content=\"default-src 'none'; script-src 'sha256-Ne5nVg2ZDLxLh1eqzYd1sGbOz022xlokwv+X6+HR1hw=' 'self'; frame-src 'self'; style-src 'unsafe-inline';\"> font-family: var(--monaco-monospace-font); color: var(--vscode-textPreformat-foreground); font-size: 12px; background-color: var(--vscode-textPreformat-background); padding: 1px 3px; border-radius: 4px; } blockquote {"}
{"_id":"doc-en-vscode-aa306162814c4c4237a7dcc5f950e0b29230af88d0b0260f52b5f8cc92bdbd16","title":"","text":") { } showHover(options: IHoverDelegateOptions, focus?: boolean): IHoverWidget | undefined { // Only show the hover hint if the content is of a decent size const showHoverHint = ( options.content instanceof HTMLElement ? options.content.textContent ?? '' : typeof options.content === 'string' ? options.content : options.content.value ).length > 20; return this.hoverService.showHover({ ...options, persistence: { hideOnKeyDown: false, }, appearance: { showHoverHint: true, showHoverHint, skipFadeInAnimation: true, }, }, focus);"}
{"_id":"doc-en-vscode-9ac1aa7b0f68c1c1c785e3532b066b502e846badd3974e7f5b705694fa26946f","title":"","text":"*/ mode?: 'prefix' | 'subword' | 'subwordSmart'; showToolbar?: 'always' | 'onHover'; showToolbar?: 'always' | 'onHover' | 'never'; suppressSuggestions?: boolean;"}
{"_id":"doc-en-vscode-3202015e2aaecaf1a6b98b3173d236ea57ad53c15ef463a6852416553f951ebd","title":"","text":"'editor.inlineSuggest.showToolbar': { type: 'string', default: defaults.showToolbar, enum: ['always', 'onHover'], enum: ['always', 'onHover', 'never'], enumDescriptions: [ nls.localize('inlineSuggest.showToolbar.always', \"Show the inline suggestion toolbar whenever an inline suggestion is shown.\"), nls.localize('inlineSuggest.showToolbar.onHover', \"Show the inline suggestion toolbar when hovering over an inline suggestion.\"), nls.localize('inlineSuggest.showToolbar.never', \"Never show the inline suggestion toolbar.\"), ], description: nls.localize('inlineSuggest.showToolbar', \"Controls when to show the inline suggestion toolbar.\"), },"}
{"_id":"doc-en-vscode-42547131d0b64fe403448c62af05fe9429c9e7f3be0af7b11447fd3ca0f8bc0f","title":"","text":"return { enabled: boolean(input.enabled, this.defaultValue.enabled), mode: stringSet(input.mode, this.defaultValue.mode, ['prefix', 'subword', 'subwordSmart']), showToolbar: stringSet(input.showToolbar, this.defaultValue.showToolbar, ['always', 'onHover']), showToolbar: stringSet(input.showToolbar, this.defaultValue.showToolbar, ['always', 'onHover', 'never']), suppressSuggestions: boolean(input.suppressSuggestions, this.defaultValue.suppressSuggestions), keepOnBlur: boolean(input.keepOnBlur, this.defaultValue.keepOnBlur), };"}
{"_id":"doc-en-vscode-44d78c2edcc0ec7967c87a0b6a1d9a2c30dbcd47457855fe57aa555740f22357","title":"","text":"} computeSync(anchor: HoverAnchor, lineDecorations: IModelDecoration[]): InlineCompletionsHover[] { if (this._editor.getOption(EditorOption.inlineSuggest).showToolbar === 'always') { if (this._editor.getOption(EditorOption.inlineSuggest).showToolbar !== 'onHover') { return []; }"}
{"_id":"doc-en-vscode-14c1f6d1a8871125a16dcb2baca238f214e2694d67e4840d05da5f64f2d3854b","title":"","text":"* Defaults to `prefix`. */ mode?: 'prefix' | 'subword' | 'subwordSmart'; showToolbar?: 'always' | 'onHover'; showToolbar?: 'always' | 'onHover' | 'never'; suppressSuggestions?: boolean; /** * Does not clear active inline suggestions when the editor loses focus."}
{"_id":"doc-en-vscode-d680ceeb344098c0b88f76ade55ca6c5f3d5c3dd1ab7207ca1adbc25a04e9885","title":"","text":"\".eyaml\", \".eyml\", \".yaml\", \".cff\" \".cff\", \".yaml-tmlanguage\", \".yaml-tmpreferences\", \".yaml-tmtheme\" ], \"firstLine\": \"^#cloud-config\", \"configuration\": \"./language-configuration.json\""}
{"_id":"doc-en-vscode-a816d3e365b345db24b7d8169a1f59442f14715b52750862b7760c58543a6804","title":"","text":".suggest-input-container .monaco-editor, .suggest-input-container .monaco-editor .lines-content { background: none; background: none !important; }"}
{"_id":"doc-en-vscode-29f9f7599619b0878d9e7e3e7702ef73404b3fd7f0bad6545714bdf0586c03d0","title":"","text":"const lastUnchangedRegions = this._unchangedRegions.get(); const lastUnchangedRegionsOrigRanges = lastUnchangedRegions.originalDecorationIds .map(id => model.original.getDecorationRange(id)) .filter(r => !!r) .map(r => LineRange.fromRange(r!)); .map(r => r ? LineRange.fromRange(r) : undefined); const lastUnchangedRegionsModRanges = lastUnchangedRegions.modifiedDecorationIds .map(id => model.modified.getDecorationRange(id)) .filter(r => !!r) .map(r => LineRange.fromRange(r!)); .map(r => r ? LineRange.fromRange(r) : undefined); const originalDecorationIds = model.original.deltaDecorations( lastUnchangedRegions.originalDecorationIds,"}
{"_id":"doc-en-vscode-80b76359016454812e5b46161c7442a05b4ee389dd91cc61724d3833549fb94f","title":"","text":"for (const r of newUnchangedRegions) { for (let i = 0; i < lastUnchangedRegions.regions.length; i++) { if (r.originalUnchangedRange.intersectsStrict(lastUnchangedRegionsOrigRanges[i]) && r.modifiedUnchangedRange.intersectsStrict(lastUnchangedRegionsModRanges[i])) { if (lastUnchangedRegionsOrigRanges[i] && r.originalUnchangedRange.intersectsStrict(lastUnchangedRegionsOrigRanges[i]!) && lastUnchangedRegionsModRanges[i] && r.modifiedUnchangedRange.intersectsStrict(lastUnchangedRegionsModRanges[i]!)) { r.setHiddenModifiedRange(lastUnchangedRegions.regions[i].getHiddenModifiedRange(undefined), tx); break; }"}
{"_id":"doc-en-vscode-c9a2a49da2e4fb8effe799c088a0dcbf0ffbbd2b383bb0132f240b23e0fc5768","title":"","text":"import { MarkdownString } from 'vs/base/common/htmlContent'; import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding'; import { LOCALIZED_START_INLINE_CHAT_STRING } from 'vs/workbench/contrib/inlineChat/browser/inlineChatActions'; import { IBreakpoint, IDebugService } from 'vs/workbench/contrib/debug/common/debug'; import { IBreakpoint, IDebugService, IDebugSession } from 'vs/workbench/contrib/debug/common/debug'; import { IPreferencesService } from 'vs/workbench/services/preferences/common/preferences'; import { URI } from 'vs/base/common/uri';"}
{"_id":"doc-en-vscode-742037b57d61fdb4e2a993332d5dc1a0438a15b7cd0f4da1d0bb2e4e7c8b3bcb","title":"","text":"private _gutterDecorationID: string | undefined; private _inlineChatKeybinding: string | undefined; private _hasInlineChatSession: boolean = false; private _hasActiveDebugSession: boolean = false; private _debugSessions: Set = new Set(); private readonly _localToDispose = new DisposableStore(); private readonly _gutterDecorationOpaque: IModelDecorationOptions; private readonly _gutterDecorationTransparent: IModelDecorationOptions;"}
{"_id":"doc-en-vscode-f132cb5504d2aa7a0c5c1f2091e46f8ca25657b8e3f837003f11f5e0995ba970","title":"","text":"this._onEnablementOrModelChanged(); } })); this._register(this._debugService.onWillNewSession((session) => { this._debugSessions.add(session); if (!this._hasActiveDebugSession) { this._hasActiveDebugSession = true; this._onEnablementOrModelChanged(); } })); this._register(this._debugService.onDidEndSession((session) => { this._debugSessions.delete(session); if (this._debugSessions.size === 0) { this._hasActiveDebugSession = false; this._onEnablementOrModelChanged(); } })); this._register(this._inlineChatService.onDidChangeProviders(() => this._onEnablementOrModelChanged())); this._register(this._editor.onDidChangeModel(() => this._onEnablementOrModelChanged())); this._register(this._keybindingService.onDidUpdateKeybindings(() => {"}
{"_id":"doc-en-vscode-0aa87ab32187c350880bccabd9bcb4c3915baa0a80f9a61d021c99c961e133d7","title":"","text":"private _onEnablementOrModelChanged(): void { // cancels the scheduler, removes editor listeners / removes decoration this._localToDispose.clear(); if (!this._editor.hasModel() || this._hasInlineChatSession || this._showGutterIconMode() === ShowGutterIcon.Never || !this._hasProvider()) { if (!this._editor.hasModel() || this._hasActiveDebugSession || this._hasInlineChatSession || this._showGutterIconMode() === ShowGutterIcon.Never || !this._hasProvider()) { return; } const editor = this._editor;"}
{"_id":"doc-en-vscode-52202734345b48c1b3b4f6db99c6092fa2efeccdadbd07779e023c5323d699ed","title":"","text":"*--------------------------------------------------------------------------------------------*/ import { LazyStatefulPromise, raceTimeout } from 'vs/base/common/async'; import { onUnexpectedError } from 'vs/base/common/errors'; import { IDisposable, DisposableStore, toDisposable } from 'vs/base/common/lifecycle'; import { deepClone } from 'vs/base/common/objects'; import { isObject } from 'vs/base/common/types'; import { isDefined, isObject } from 'vs/base/common/types'; import { URI } from 'vs/base/common/uri'; import { ConstLazyPromise, IDocumentDiffItem, IMultiDiffEditorModel } from 'vs/editor/browser/widget/multiDiffEditorWidget/model'; import { MultiDiffEditorViewModel } from 'vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorViewModel';"}
{"_id":"doc-en-vscode-5f25271696f3359afb75bc52ea5fc9568928e91ad6a9ea94e97a4df1d4b8d254","title":"","text":"import { EditorInput } from 'vs/workbench/common/editor/editorInput'; import { ILanguageSupport } from 'vs/workbench/services/textfile/common/textfiles'; /* hot-reload:patch-prototype-methods */ export class MultiDiffEditorInput extends EditorInput implements ILanguageSupport { static readonly ID: string = 'workbench.input.multiDiffEditor';"}
{"_id":"doc-en-vscode-28d9f5e2db60f089961a12bbb06bd392b46589b635c590f49b2564b01c7f987d","title":"","text":"private async _createModel(): Promise { const store = new DisposableStore(); const rs = await Promise.all(this.resources.map(async r => ({ originalRef: r.original ? store.add(await this._textModelService.createModelReference(r.original)) : undefined, originalModel: !r.original ? store.add(this._modelService.createModel('', null)) : undefined, modifiedRef: r.modified ? store.add(await this._textModelService.createModelReference(r.modified)) : undefined, modifiedModel: !r.modified ? store.add(this._modelService.createModel('', null)) : undefined, title: r.resource.fsPath, }))); const rs = (await Promise.all(this.resources.map(async r => { try { return { originalRef: r.original ? store.add(await this._textModelService.createModelReference(r.original)) : undefined, originalModel: !r.original ? store.add(this._modelService.createModel('', null)) : undefined, modifiedRef: r.modified ? store.add(await this._textModelService.createModelReference(r.modified)) : undefined, modifiedModel: !r.modified ? store.add(this._modelService.createModel('', null)) : undefined, title: r.resource.fsPath, }; } catch (e) { // e.g. \"File seems to be binary and cannot be opened as text\" console.error(e); onUnexpectedError(e); return undefined; } }))).filter(isDefined); const textResourceConfigurationService = this._textResourceConfigurationService;"}
{"_id":"doc-en-vscode-521b32210990218ed1225d3d5de862a1a99704c9c0c5d0ca1d78863d109bbdff","title":"","text":"this.logService.trace(`Extension signature verification details for ${extension.identifier.id} ${extension.version}:n${sigError.output}`); } if (verificationStatus === ExtensionSignaturetErrorCode.PackageIsInvalidZip || verificationStatus === ExtensionSignaturetErrorCode.SignatureArchiveIsInvalidZip) { try { // Delete the downloaded vsix before throwing the error await this.delete(location); } catch (error) { this.logService.error(error); } throw new ExtensionManagementError(CorruptZipMessage, ExtensionManagementErrorCode.CorruptZip); } } finally {"}
{"_id":"doc-en-vscode-d912d787afffbf493156d34e23c22318dd0f0674ae1c0865b56ed409f3eb54ed","title":"","text":"public static INSTANCE = new EditorRenderingCoordinator(); private _coordinatedRenderings: ICoordinatedRendering[] = []; private _animationFrameRunner: IDisposable | null = null; private _animationFrameRunners = new Map(); private constructor() { }"}
{"_id":"doc-en-vscode-75af694cf92928097a6e2babfbc74be073e3bdda2f7735acaaa8d27248adc9ae","title":"","text":"this._coordinatedRenderings.splice(renderingIndex, 1); if (this._coordinatedRenderings.length === 0) { // There are no more renderings to coordinate => cancel animation frame if (this._animationFrameRunner !== null) { this._animationFrameRunner.dispose(); this._animationFrameRunner = null; // There are no more renderings to coordinate => cancel animation frames for (const [_, disposable] of this._animationFrameRunners) { disposable.dispose(); } this._animationFrameRunners.clear(); } } }; } private _scheduleRender(window: CodeWindow): void { if (this._animationFrameRunner === null) { if (!this._animationFrameRunners.has(window)) { const runner = () => { this._animationFrameRunner = null; this._animationFrameRunners.delete(window); this._onRenderScheduled(); }; this._animationFrameRunner = dom.runAtThisOrScheduleAtNextAnimationFrame(window, runner, 100); this._animationFrameRunners.set(window, dom.runAtThisOrScheduleAtNextAnimationFrame(window, runner, 100)); } }"}
{"_id":"doc-en-vscode-5d08c397a0efef3e2dba162480dd029d315f0af858b46c145bd87f4d6e1bb998","title":"","text":"const ignoreImportantExtensionRecommendationStorageKey = 'extensionsAssistant/importantRecommendationsIgnore'; const donotShowWorkspaceRecommendationsStorageKey = 'extensionsAssistant/workspaceRecommendationsIgnore'; const choiceNever = localize('neverShowAgain', \"Don't Show Again\"); type RecommendationsNotificationActions = { onDidInstallRecommendedExtensions(extensions: IExtension[]): void;"}
{"_id":"doc-en-vscode-7f219a446bd0697330742a2679eaef97d8f6cb6352315ddcb1f6ecd2c06a031d","title":"","text":"searchValue = source === RecommendationSource.WORKSPACE ? '@recommended' : extensions.map(extensionId => `@id:${extensionId.identifier.id}`).join(' '); } const donotShowAgainLabel = source === RecommendationSource.WORKSPACE ? localize('donotShowAgain', \"Don't Show Again for this Repository\") : extensions.length > 1 ? localize('donotShowAgainExtension', \"Don't Show Again for these Extensions\") : localize('donotShowAgainExtensionSingle', \"Don't Show Again for this Extension\"); return raceCancellablePromises([ this._registerP(this.showRecommendationsNotification(extensions, message, searchValue, source, recommendationsNotificationActions)), this._registerP(this.showRecommendationsNotification(extensions, message, searchValue, donotShowAgainLabel, source, recommendationsNotificationActions)), this._registerP(this.waitUntilRecommendationsAreInstalled(extensions)) ]); } private showRecommendationsNotification(extensions: IExtension[], message: string, searchValue: string, source: RecommendationSource, private showRecommendationsNotification(extensions: IExtension[], message: string, searchValue: string, donotShowAgainLabel: string, source: RecommendationSource, { onDidInstallRecommendedExtensions, onDidShowRecommendedExtensions, onDidCancelRecommendedExtensions, onDidNeverShowRecommendedExtensionsAgain }: RecommendationsNotificationActions): CancelablePromise { return createCancelablePromise(async token => { let accepted = false;"}
{"_id":"doc-en-vscode-3e8199fb6929836b54d75800bbf3f8f4dfaeac600e83e1f0cfe65be8c93dcb8b","title":"","text":"this.runAction(this.instantiationService.createInstance(SearchExtensionsAction, searchValue)); } }, { label: choiceNever, label: donotShowAgainLabel, isSecondary: true, run: () => { onDidNeverShowRecommendedExtensionsAgain(extensions);"}
{"_id":"doc-en-vscode-612df9a4ab3e9548fd25f39b263b2e75b32afe9b0adc745ae3c33bdcfd094403","title":"","text":"applyStatusBarStyle(); applyIconStyle(); } if (this._completionModel && (e.hasChanged(EditorOption.fontInfo) || e.hasChanged(EditorOption.suggestFontSize) || e.hasChanged(EditorOption.suggestLineHeight))) { this._list.splice(0, this._list.length, this._completionModel.items); } })); this._ctxSuggestWidgetVisible = SuggestContext.Visible.bindTo(_contextKeyService);"}
{"_id":"doc-en-vscode-af29876667373a81280f3ba263af05babeb1f9de6d48b91a86d7eeee8c268047","title":"","text":"readonly detailsLabel: HTMLElement; readonly readMore: HTMLElement; readonly disposables: DisposableStore; readonly configureFont: () => void; } export class ItemRenderer implements IListRenderer {"}
{"_id":"doc-en-vscode-e6058421ddd6a0ca3b79ce109db4916e4a965271cea1d769e91a40d0b04f3ee5","title":"","text":"readMore.style.width = lineHeightPx; }; configureFont(); disposables.add(this._editor.onDidChangeConfiguration(e => { if (e.hasChanged(EditorOption.fontInfo) || e.hasChanged(EditorOption.suggestFontSize) || e.hasChanged(EditorOption.suggestLineHeight)) { configureFont(); } })); return { root, left, right, icon, colorspan, iconLabel, iconContainer, parametersLabel, qualifierLabel, detailsLabel, readMore, disposables }; return { root, left, right, icon, colorspan, iconLabel, iconContainer, parametersLabel, qualifierLabel, detailsLabel, readMore, disposables, configureFont }; } renderElement(element: CompletionItem, index: number, data: ISuggestionTemplateData): void { data.configureFont(); const { completion } = element; data.root.id = getAriaId(index); data.colorspan.style.backgroundColor = '';"}
{"_id":"doc-en-vscode-073e8c7afdb57f1591c1a9a96daff19f2636c8d93cb5486e43483dec8a054cb1","title":"","text":"}; // Update group contexts based on group changes this._register(this.onDidModelChange(e => { const updateGroupContextKeys = (e: IGroupModelChangeEvent) => { switch (e.kind) { case GroupModelChangeKind.GROUP_LOCKED: groupLockedContext.set(this.isLocked);"}
{"_id":"doc-en-vscode-291e667dea4e7c881c2f55c75b301ada257a99ffb09b8bbc6d4024943c289d91","title":"","text":"// Group editors count context groupEditorsCountContext.set(this.count); })); }; this._register(this.onDidModelChange(e => updateGroupContextKeys(e))); // Track the active editor and update context key that reflects // the dirty state of this editor this._register(this.onDidActiveEditorChange(() => { observeActiveEditor(); })); this._register(this.onDidActiveEditorChange(() => observeActiveEditor())); // Update context keys on startup observeActiveEditor(); updateGroupContextKeys({ kind: GroupModelChangeKind.EDITOR_ACTIVE }); updateGroupContextKeys({ kind: GroupModelChangeKind.GROUP_LOCKED }); } private registerContainerListeners(): void {"}
{"_id":"doc-en-vscode-442c1369af3c824a52cd259ff783b2b8d466a6b67eac22d3ee47769ee079473a","title":"","text":"localize('voice.keywordActivation.inlineChat', \"Keyword activation is enabled and listening for 'Hey Code' to start a voice chat session in the active editor.\"), localize('voice.keywordActivation.chatInContext', \"Keyword activation is enabled and listening for 'Hey Code' to start a voice chat session in the active editor or view depending on keyboard focus.\") ], 'description': localize('voice.keywordActivation', \"Controls whether the phrase 'Hey Code' should be speech recognized to start a voice chat session.\"), 'description': localize('voice.keywordActivation', \"Controls whether the keyword phrase 'Hey Code' is recognized to start a voice chat session. Enabling this will start recording from the microphone but the audio is processed locally and never sent to a server.\"), 'default': 'off', 'tags': ['accessibility', 'FeatureInsight'] }"}
{"_id":"doc-en-vscode-7088851ee058556f88f463031b2ac532a391f591bbabe4572f2e6d478b31837c","title":"","text":"\"input.background\": \"#313131\", \"input.border\": \"#3C3C3C\", \"input.foreground\": \"#CCCCCC\", \"input.placeholderForeground\": \"#818181\", \"input.placeholderForeground\": \"#989898\", \"inputOption.activeBackground\": \"#2489DB82\", \"inputOption.activeBorder\": \"#2488DB\", \"keybindingLabel.foreground\": \"#CCCCCC\","}
{"_id":"doc-en-vscode-11e53b1a2005272e51bf5574aefba21101c4a682b3885257ec8bdabaa68e5a43","title":"","text":"\"input.background\": \"#FFFFFF\", \"input.border\": \"#CECECE\", \"input.foreground\": \"#3B3B3B\", \"input.placeholderForeground\": \"#868686\", \"input.placeholderForeground\": \"#767676\", \"inputOption.activeBackground\": \"#BED6ED\", \"inputOption.activeBorder\": \"#005FB8\", \"inputOption.activeForeground\": \"#000000\","}
{"_id":"doc-en-vscode-2e46aba0ff5233a919dec8f0c0e1d13b39297f8be81fe326c03a823cce1565f4","title":"","text":"return -1; } if (result !== 0) { return result; } if (a.multiFileDiffEditorModifiedUri && b.multiFileDiffEditorModifiedUri) { result = comparePaths(a.multiFileDiffEditorModifiedUri.fsPath, b.multiFileDiffEditorModifiedUri.fsPath, true); } else if (a.multiFileDiffEditorModifiedUri) {"}
{"_id":"doc-en-vscode-7d29362cd34d530bb6c9f3e07b7f62fb5c289f70bccd1d65a795178db7f1beeb","title":"","text":"} else if (b.multiFileDiffEditorModifiedUri) { return -1; } if (result !== 0) { return result; } if (a.multiDiffEditorOriginalUri && b.multiDiffEditorOriginalUri) { result = comparePaths(a.multiDiffEditorOriginalUri.fsPath, b.multiDiffEditorOriginalUri.fsPath, true); } else if (a.multiDiffEditorOriginalUri) {"}
{"_id":"doc-en-vscode-29aff51c8c32727b0ccb3bc73e923c27df1629b9d58a21df2e4bcfb92c501d7a","title":"","text":"protected override renderBody(container: HTMLElement): void { super.renderBody(container); this.element.classList.add('debug-pane'); this.tree = >this.instantiationService.createInstance( WorkbenchAsyncDataTree,"}
{"_id":"doc-en-vscode-db8c0215826c40b6db5c4bcf0bda843569fd34897afcfdb604083e4769c587ae","title":"","text":"private renderMarkerStatusbar(context: IEditorHoverRenderContext, markerHover: MarkerHover, disposables: DisposableStore): void { if (markerHover.marker.severity === MarkerSeverity.Error || markerHover.marker.severity === MarkerSeverity.Warning || markerHover.marker.severity === MarkerSeverity.Info) { context.statusBar.addAction({ label: nls.localize('view problem', \"View Problem\"), commandId: NextMarkerAction.ID, run: () => { context.hide(); MarkerController.get(this._editor)?.showAtMarker(markerHover.marker); this._editor.focus(); } }); const markerController = MarkerController.get(this._editor); if (markerController) { context.statusBar.addAction({ label: nls.localize('view problem', \"View Problem\"), commandId: NextMarkerAction.ID, run: () => { context.hide(); markerController.showAtMarker(markerHover.marker); this._editor.focus(); } }); } } if (!this._editor.getOption(EditorOption.readOnly)) {"}
{"_id":"doc-en-vscode-0c8944efc7c9bf8bfba90a866c12a6b9fcb226786952d0104e16ee7311c8af36","title":"","text":"import { getWindow, runWhenWindowIdle } from 'vs/base/browser/dom'; import { onUnexpectedError } from 'vs/base/common/errors'; import { Disposable, DisposableMap } from 'vs/base/common/lifecycle'; import { Disposable, DisposableMap, IDisposable } from 'vs/base/common/lifecycle'; import { ICodeEditor } from 'vs/editor/browser/editorBrowser'; import { EditorContributionInstantiation, IEditorContributionDescription } from 'vs/editor/browser/editorExtensions'; import { IEditorContribution } from 'vs/editor/common/editorCommon';"}
{"_id":"doc-en-vscode-e0fc57c95867bd8a03d77b4ed4f133cfab135b36f6d64347976c4e634ca323dd","title":"","text":"this._instantiateSome(EditorContributionInstantiation.BeforeFirstInteraction); } public onAfterModelAttached(): void { this._register(runWhenWindowIdle(getWindow(this._editor?.getDomNode()), () => { public onAfterModelAttached(): IDisposable { return runWhenWindowIdle(getWindow(this._editor?.getDomNode()), () => { this._instantiateSome(EditorContributionInstantiation.AfterFirstRender); }, 50)); }, 50); } private _instantiateSome(instantiation: EditorContributionInstantiation): void {"}
{"_id":"doc-en-vscode-06603e3a1e03e707befd8d5a5fa1f33352ea1260e2288f34a902f2e2bfe8c332","title":"","text":"private readonly _overflowWidgetsDomNode: HTMLElement | undefined; private readonly _id: number; private readonly _configuration: IEditorConfiguration; private _contributionsDisposable: IDisposable | undefined; protected readonly _actions = new Map();"}
{"_id":"doc-en-vscode-bee1383b9bcb670a9e1da340caacc5b49ba4dd1252bf938bf10504bc0fab6bab","title":"","text":"this._onDidChangeModel.fire(e); this._postDetachModelCleanup(detachedModel); this._contributions.onAfterModelAttached(); this._contributionsDisposable = this._contributions.onAfterModelAttached(); } private _removeDecorationTypes(): void {"}
{"_id":"doc-en-vscode-9b0a657bc5d3f06ead719e72cbdde49ccb6df746f08a0377f0e89ebef2b38393","title":"","text":"} private _detachModel(): ITextModel | null { this._contributionsDisposable?.dispose(); this._contributionsDisposable = undefined; if (!this._modelData) { return null; }"}
{"_id":"doc-en-vscode-77983ad180f0923ed7c2c94d8f28306f803cf184cdd27e5d967336eadaab1838","title":"","text":"if (this._bannerDomNode && this._domElement.contains(this._bannerDomNode)) { this._domElement.removeChild(this._bannerDomNode); } return model; }"}
{"_id":"doc-en-vscode-f94cc7287ef00a847743ccb7f1129853ab57365fe162864bf487ff297cf3e53e","title":"","text":"position: relative; padding: 0 6px; margin-bottom: 4px; align-items: center; align-items: flex-end; justify-content: space-between; }"}
{"_id":"doc-en-vscode-0005f7662b50a0376687cf82b2c38eef3d15c114c08d782dd04ae8edf5c16235","title":"","text":".interactive-session .interactive-input-part .interactive-execute-toolbar { height: 22px; /* It's bottom-aligned, make it appear centered within the container */ margin-bottom: 7px; } .interactive-session .interactive-input-part .interactive-execute-toolbar .codicon-debug-stop {"}
{"_id":"doc-en-vscode-f24d5fefd3aeae384eb037219faf2ec3cdce8c77e4d9ced5690767e8e67f3d48","title":"","text":"} .quick-input-widget .interactive-session .interactive-input-part .interactive-execute-toolbar { bottom: 1px; margin-bottom: 1px; } .quick-input-widget .interactive-session .interactive-input-and-execute-toolbar {"}
{"_id":"doc-en-vscode-80126c824c66a0123d0fd258e700645bee6744234032ceadc9bd0acc59b92128","title":"","text":"private _sessionCtor: CancelablePromise | undefined; private _activeSession?: Session; private _warmupRequestCts?: CancellationTokenSource; private _activeRequestCts?: CancellationTokenSource; private readonly _ctxHasActiveRequest: IContextKey; private readonly _ctxCellWidgetFocused: IContextKey; private readonly _ctxUserDidEdit: IContextKey;"}
{"_id":"doc-en-vscode-1bd1ffe0ef61396eff5dde6e87b95ae91bbd5ae1e9c36f88069bd47a521ddb58","title":"","text":"} async acceptInput() { assertType(this._activeSession); assertType(this._widget); await this._sessionCtor; assertType(this._activeSession); this._warmupRequestCts?.dispose(true); this._warmupRequestCts = undefined; this._activeSession.addInput(new SessionPrompt(this._widget.inlineChatWidget.value));"}
{"_id":"doc-en-vscode-2aaf5d0a2622034386021cbed918b886050efd435ba57be5660309db839479dd","title":"","text":"//TODO: update progress in a newly inserted cell below the widget instead of the fake editor const requestCts = new CancellationTokenSource(); this._activeRequestCts?.cancel(); this._activeRequestCts = new CancellationTokenSource(); const progressEdits: TextEdit[][] = []; const progressiveEditsQueue = new Queue(); const progressiveEditsClock = StopWatch.create(); const progressiveEditsAvgDuration = new MovingAverage(); const progressiveEditsCts = new CancellationTokenSource(requestCts.token); const progressiveEditsCts = new CancellationTokenSource(this._activeRequestCts.token); let progressiveChatResponse: IInlineChatMessageAppender | undefined; const progress = new AsyncProgress(async data => { // console.log('received chunk', data, request); if (requestCts.token.isCancellationRequested) { if (this._activeRequestCts?.token.isCancellationRequested) { return; }"}
{"_id":"doc-en-vscode-cd7750e4669d5454f1265f5acf86217b9238891afc24c2228e5c841fe2f3a34c","title":"","text":"} }); const task = this._activeSession.provider.provideResponse(this._activeSession.session, request, progress, requestCts.token); const task = this._activeSession.provider.provideResponse(this._activeSession.session, request, progress, this._activeRequestCts.token); let response: ReplyResponse | ErrorResponse | EmptyResponse; try {"}
{"_id":"doc-en-vscode-3a7a49b887b9364ccb952aed0571e524bae8edfb8d8a2f994ad9f8e41b3c81ef","title":"","text":"this._widget?.inlineChatWidget.updateInfo(!this._activeSession.lastExchange ? localize('thinking', \"Thinkingu2026\") : ''); this._ctxHasActiveRequest.set(true); const reply = await raceCancellationError(Promise.resolve(task), requestCts.token); const reply = await raceCancellationError(Promise.resolve(task), this._activeRequestCts.token); if (progressiveEditsQueue.size > 0) { // we must wait for all edits that came in via progress to complete await Event.toPromise(progressiveEditsQueue.onDrained);"}
{"_id":"doc-en-vscode-c17fb9372a4a731489485dc13288f8882bbf8b172d6580f2c5932458e48c00c5","title":"","text":"this._widget?.inlineChatWidget.updateInfo(''); this._widget?.inlineChatWidget.updateToolbar(true); this._activeSession.addExchange(new SessionExchange(this._activeSession.lastInput, response)); this._activeSession?.addExchange(new SessionExchange(this._activeSession.lastInput, response)); this._ctxLastResponseType.set(response instanceof ReplyResponse ? response.raw.type : undefined); }"}
{"_id":"doc-en-vscode-3cbf9721fbc2a6b43c480762b66b60d3ce544b119765d708361ed50fa8f7bb0b","title":"","text":"this._strategy?.cancel(); } if (this._activeSession) { this._inlineChatSessionService.releaseSession(this._activeSession); } this._activeSession = undefined; this._activeRequestCts?.cancel(); } discard() { this._strategy?.cancel(); this._activeRequestCts?.cancel(); this._widget?.discardChange(); this.dismiss(); }"}
{"_id":"doc-en-vscode-0639877be9be2ef51604d318569e773a1d80c2e474af0a4f69e949af684304d3","title":"","text":"const titleElement = container.querySelector('.title') as HTMLElement; const setHeader = () => { const workspace = this.contextService.getWorkspace(); const title = workspace.folders.map(folder => folder.name).join(); titleElement.textContent = this.name; this.updateTitle(title); this.updateTitle(this.name); this.ariaHeaderLabel = nls.localize('explorerSection', \"Explorer Section: {0}\", this.name); titleElement.setAttribute('aria-label', this.ariaHeaderLabel); };"}
{"_id":"doc-en-vscode-510df6601433346cfbfdfbd9891411e8ef86b0cecf3dd312e5a1ab92d341fa3b","title":"","text":".monaco-workbench .interactive-input-part .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::before, .monaco-workbench .inline-chat .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::before { content: \"ec1c\"; font-family: 'codicon'; } /*"}
{"_id":"doc-en-vscode-7cae5c309f6b5288aeb8985da440057c54e61fcb3fa38d8634f3db4075c92965","title":"","text":".monaco-workbench.reduce-motion .interactive-input-part .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::before, .monaco-workbench.reduce-motion .inline-chat .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::before { content: \"ead7\"; font-family: 'codicon'; }"}
{"_id":"doc-en-vscode-4ecdcc97cc04840d906c98049022c54669803aee31fbb3e822e5b6e78dfa1360","title":"","text":".quick-input-list .quick-input-list-entry.has-actions:hover .quick-input-list-entry-action-bar .action-label.dirty-anything::before { content: \"ea76\"; /* Close icon flips between black dot and \"X\" for dirty open editors */ font-family: 'codicon'; }"}
{"_id":"doc-en-vscode-4ba30a6d4209a4462fd74f57a3cbb2d0ae65c21f989e4acf335d29baa1601887","title":"","text":"}; private readonly closeDirtyWindowAction: IQuickInputButton = { iconClass: 'dirty-window ' + Codicon.closeDirty, iconClass: 'dirty-window ' + ThemeIcon.asClassName(Codicon.closeDirty), tooltip: localize('close', \"Close Window\"), alwaysVisible: true };"}
{"_id":"doc-en-vscode-d2389d42f6ebedd88c25f3c061ce29fa814e6388f14a3d0d1bf6c0185037ccb2","title":"","text":"* Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { DisposableStore } from 'vs/base/common/lifecycle'; import { ExtHostContext, IExtHostEditorTabsShape, MainContext, IEditorTabDto, IEditorTabGroupDto, MainThreadEditorTabsShape, AnyInputDto, TabInputKind, TabModelOperationKind, TextDiffInputDto } from 'vs/workbench/api/common/extHost.protocol'; import { extHostNamedCustomer, IExtHostContext } from 'vs/workbench/services/extensions/common/extHostCustomers'; import { Event } from 'vs/base/common/event'; import { DisposableMap, DisposableStore } from 'vs/base/common/lifecycle'; import { isEqual } from 'vs/base/common/resources'; import { URI } from 'vs/base/common/uri'; import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; import { ILogService } from 'vs/platform/log/common/log'; import { AnyInputDto, ExtHostContext, IEditorTabDto, IEditorTabGroupDto, IExtHostEditorTabsShape, MainContext, MainThreadEditorTabsShape, TabInputKind, TabModelOperationKind, TextDiffInputDto } from 'vs/workbench/api/common/extHost.protocol'; import { EditorResourceAccessor, GroupModelChangeKind, SideBySideEditor } from 'vs/workbench/common/editor'; import { DiffEditorInput } from 'vs/workbench/common/editor/diffEditorInput'; import { isGroupEditorMoveEvent } from 'vs/workbench/common/editor/editorGroupModel'; import { EditorInput } from 'vs/workbench/common/editor/editorInput'; import { columnToEditorGroup, EditorGroupColumn, editorGroupToColumn } from 'vs/workbench/services/editor/common/editorGroupColumn'; import { GroupDirection, IEditorGroup, IEditorGroupsService, preferredSideBySideGroupDirection } from 'vs/workbench/services/editor/common/editorGroupsService'; import { IEditorsChangeEvent, IEditorService, SIDE_GROUP } from 'vs/workbench/services/editor/common/editorService'; import { SideBySideEditorInput } from 'vs/workbench/common/editor/sideBySideEditorInput'; import { AbstractTextResourceEditorInput } from 'vs/workbench/common/editor/textResourceEditorInput'; import { NotebookEditorInput } from 'vs/workbench/contrib/notebook/common/notebookEditorInput'; import { ChatEditorInput } from 'vs/workbench/contrib/chat/browser/chatEditorInput'; import { CustomEditorInput } from 'vs/workbench/contrib/customEditor/browser/customEditorInput'; import { URI } from 'vs/base/common/uri'; import { WebviewInput } from 'vs/workbench/contrib/webviewPanel/browser/webviewEditorInput'; import { TerminalEditorInput } from 'vs/workbench/contrib/terminal/browser/terminalEditorInput'; import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; import { SideBySideEditorInput } from 'vs/workbench/common/editor/sideBySideEditorInput'; import { isEqual } from 'vs/base/common/resources'; import { isGroupEditorMoveEvent } from 'vs/workbench/common/editor/editorGroupModel'; import { InteractiveEditorInput } from 'vs/workbench/contrib/interactive/browser/interactiveEditorInput'; import { MergeEditorInput } from 'vs/workbench/contrib/mergeEditor/browser/mergeEditorInput'; import { ILogService } from 'vs/platform/log/common/log'; import { ChatEditorInput } from 'vs/workbench/contrib/chat/browser/chatEditorInput'; import { MultiDiffEditorInput } from 'vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput'; import { NotebookEditorInput } from 'vs/workbench/contrib/notebook/common/notebookEditorInput'; import { TerminalEditorInput } from 'vs/workbench/contrib/terminal/browser/terminalEditorInput'; import { WebviewInput } from 'vs/workbench/contrib/webviewPanel/browser/webviewEditorInput'; import { columnToEditorGroup, EditorGroupColumn, editorGroupToColumn } from 'vs/workbench/services/editor/common/editorGroupColumn'; import { GroupDirection, IEditorGroup, IEditorGroupsService, preferredSideBySideGroupDirection } from 'vs/workbench/services/editor/common/editorGroupsService'; import { IEditorsChangeEvent, IEditorService, SIDE_GROUP } from 'vs/workbench/services/editor/common/editorService'; import { extHostNamedCustomer, IExtHostContext } from 'vs/workbench/services/extensions/common/extHostCustomers'; interface TabInfo { tab: IEditorTabDto;"}
{"_id":"doc-en-vscode-2d1a67907e976bfa84cadb9ce5baaf25430ce7709364b03cdfe11780101e95f9","title":"","text":"private readonly _groupLookup: Map = new Map(); // Lookup table for finding tab by id private readonly _tabInfoLookup: Map = new Map(); // Tracks the currently open MultiDiffEditorInputs to listen to resource changes private readonly _multiDiffEditorInputListeners: DisposableMap = new DisposableMap(); constructor( extHostContext: IExtHostContext,"}
{"_id":"doc-en-vscode-af033cf2bfec9addc29296cecfdbb0ce53f2be258bfd927b42a64d8a8a24d925","title":"","text":"} })); this._dispoables.add(this._multiDiffEditorInputListeners); // Structural group changes (add, remove, move, etc) are difficult to patch. // Since they happen infrequently we just rebuild the entire model this._dispoables.add(this._editorGroupsService.onDidAddGroup(() => this._createTabsModel()));"}
{"_id":"doc-en-vscode-ceef130bbad110df0b98b06c4e3f90d152fb4eb66f5f9332f1652157ff339193","title":"","text":"if (editor instanceof MultiDiffEditorInput) { const diffEditors: TextDiffInputDto[] = []; for (const resource of (editor?.initialResources ?? [])) { for (const resource of (editor?.resources.get() ?? [])) { if (resource.original && resource.modified) { diffEditors.push({ kind: TabInputKind.TextDiffInput,"}
{"_id":"doc-en-vscode-814d984e5bbbb02d307042b830a4faf6830bc682eb8b9fd9ee17ff149fd51db1","title":"","text":"const tabObject = this._buildTabObject(group, editorInput, editorIndex); tabs.splice(editorIndex, 0, tabObject); // Update lookup this._tabInfoLookup.set(this._generateTabId(editorInput, groupId), { group, editorInput, tab: tabObject }); const tabId = this._generateTabId(editorInput, groupId); this._tabInfoLookup.set(tabId, { group, editorInput, tab: tabObject }); if (editorInput instanceof MultiDiffEditorInput) { this._multiDiffEditorInputListeners.set(editorInput, Event.fromObservableLight(editorInput.resources)(() => { const tabInfo = this._tabInfoLookup.get(tabId); if (!tabInfo) { return; } tabInfo.tab = this._buildTabObject(group, editorInput, editorIndex); this._proxy.$acceptTabOperation({ groupId, index: editorIndex, tabDto: tabInfo.tab, kind: TabModelOperationKind.TAB_UPDATE }); })); } this._proxy.$acceptTabOperation({ groupId,"}
{"_id":"doc-en-vscode-93fe33ef4f1fb457d5e8a882f075c0834215e8f828eb8b4d65658184118e9357","title":"","text":"// Update lookup this._tabInfoLookup.delete(removedTab[0]?.id ?? ''); if (removedTab[0]?.input instanceof MultiDiffEditorInput) { this._multiDiffEditorInputListeners.deleteAndDispose(removedTab[0]?.input); } this._proxy.$acceptTabOperation({ groupId, index: editorIndex,"}
{"_id":"doc-en-vscode-2c07a293d2da65ee202d3c7855ca53412caa20c5001b3d230072c16e0ecd43b7","title":"","text":"this._register(autorun((reader) => { /** @description Updates name */ const resources = this._resources.read(reader); const resources = this.resources.read(reader); const label = this.label ?? localize('name', \"Multi Diff Editor\"); if (resources) { this._name = label + localize({"}
{"_id":"doc-en-vscode-8c493a9394a27e84d1c3da01cd7cd15ec2da87ee6ae848b0419de233a98c129c","title":"","text":"return false; } private readonly _resources = derived(this, reader => this._resolvedSource.cachedPromiseResult.read(reader)?.data?.resources.read(reader)); private readonly _isDirtyObservables = mapObservableArrayCached(this, this._resources.map(r => r ?? []), res => { public readonly resources = derived(this, reader => this._resolvedSource.cachedPromiseResult.read(reader)?.data?.resources.read(reader)); private readonly _isDirtyObservables = mapObservableArrayCached(this, this.resources.map(r => r ?? []), res => { const isModifiedDirty = res.modified ? isUriDirty(this._textFileService, res.modified) : constObservable(false); const isOriginalDirty = res.original ? isUriDirty(this._textFileService, res.original) : constObservable(false); return derived(reader => /** @description modifiedDirty||originalDirty */ isModifiedDirty.read(reader) || isOriginalDirty.read(reader));"}
{"_id":"doc-en-vscode-d443a949ab8674c609fb128c3329f8fe72614b027147b98c8187cf4bdb33bde0","title":"","text":"}, 500, false, true)(async (markerEvent) => { markerChanged?.dispose(); markerChanged = undefined; if (!markerEvent.includes(modelEvent.uri) || (this.markerService.read({ resource: modelEvent.uri }).length !== 0)) { if (!markerEvent || !markerEvent.includes(modelEvent.uri) || (this.markerService.read({ resource: modelEvent.uri }).length !== 0)) { return; } const oldLines = Array.from(this.lines);"}
{"_id":"doc-en-vscode-eaae8340ee03ed3e6ba74bc509d6be376702b6d256e50fd5aea3c4329ba1ac2d","title":"","text":"if (this.extensionManagementServerService.localExtensionManagementServer === this.extension.server) { if (this.extensionManifestPropertiesService.prefersExecuteOnWorkspace(this.extension.local.manifest)) { if (this.extensionManagementServerService.remoteExtensionManagementServer) { message = new MarkdownString(`${localize('Install in remote server to enable', \"This extension is disabled in this workspace because it is defined to run in the Remote Extension Host. Please install the extension in '{0}' to enable.\", this.extensionManagementServerService.remoteExtensionManagementServer.label)} [${localize('learn more', \"Learn More\")}](https://aka.ms/vscode-remote/developing-extensions/architecture)`); message = new MarkdownString(`${localize('Install in remote server to enable', \"This extension is disabled in this workspace because it is defined to run in the Remote Extension Host. Please install the extension in '{0}' to enable.\", this.extensionManagementServerService.remoteExtensionManagementServer.label)} [${localize('learn more', \"Learn More\")}](https://code.visualstudio.com/api/advanced-topics/remote-extensions#architecture-and-extension-kinds)`); } } }"}
{"_id":"doc-en-vscode-dc8597f2c272d46b078e2a00f6a67ffb9af1ae65b2121ac73e259be368bbc7c6","title":"","text":"else if (this.extensionManagementServerService.remoteExtensionManagementServer === this.extension.server) { if (this.extensionManifestPropertiesService.prefersExecuteOnUI(this.extension.local.manifest)) { if (this.extensionManagementServerService.localExtensionManagementServer) { message = new MarkdownString(`${localize('Install in local server to enable', \"This extension is disabled in this workspace because it is defined to run in the Local Extension Host. Please install the extension locally to enable.\", this.extensionManagementServerService.remoteExtensionManagementServer.label)} [${localize('learn more', \"Learn More\")}](https://aka.ms/vscode-remote/developing-extensions/architecture)`); message = new MarkdownString(`${localize('Install in local server to enable', \"This extension is disabled in this workspace because it is defined to run in the Local Extension Host. Please install the extension locally to enable.\", this.extensionManagementServerService.remoteExtensionManagementServer.label)} [${localize('learn more', \"Learn More\")}](https://code.visualstudio.com/api/advanced-topics/remote-extensions#architecture-and-extension-kinds)`); } else if (isWeb) { message = new MarkdownString(`${localize('Defined to run in desktop', \"This extension is disabled because it is defined to run only in {0} for the Desktop.\", this.productService.nameLong)} [${localize('learn more', \"Learn More\")}](https://aka.ms/vscode-remote/developing-extensions/architecture)`); message = new MarkdownString(`${localize('Defined to run in desktop', \"This extension is disabled because it is defined to run only in {0} for the Desktop.\", this.productService.nameLong)} [${localize('learn more', \"Learn More\")}](https://code.visualstudio.com/api/advanced-topics/remote-extensions#architecture-and-extension-kinds)`); } } } // Extension on Web Server else if (this.extensionManagementServerService.webExtensionManagementServer === this.extension.server) { message = new MarkdownString(`${localize('Cannot be enabled', \"This extension is disabled because it is not supported in {0} for the Web.\", this.productService.nameLong)} [${localize('learn more', \"Learn More\")}](https://aka.ms/vscode-remote/developing-extensions/architecture)`); message = new MarkdownString(`${localize('Cannot be enabled', \"This extension is disabled because it is not supported in {0} for the Web.\", this.productService.nameLong)} [${localize('learn more', \"Learn More\")}](https://code.visualstudio.com/api/advanced-topics/remote-extensions#architecture-and-extension-kinds)`); } if (message) { this.updateStatus({ icon: warningIcon, message }, true);"}
{"_id":"doc-en-vscode-ec4ae4a0edf1445caa3698317b69bbc52ca4a092ea2dbaa1e47a00875c416a58","title":"","text":"const runningExtensionServer = runningExtension ? this.extensionManagementServerService.getExtensionManagementServer(toExtension(runningExtension)) : null; if (this.extension.server === this.extensionManagementServerService.localExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.remoteExtensionManagementServer) { if (this.extensionManifestPropertiesService.prefersExecuteOnWorkspace(this.extension.local.manifest)) { this.updateStatus({ icon: infoIcon, message: new MarkdownString(`${localize('enabled remotely', \"This extension is enabled in the Remote Extension Host because it prefers to run there.\")} [${localize('learn more', \"Learn More\")}](https://aka.ms/vscode-remote/developing-extensions/architecture)`) }, true); this.updateStatus({ icon: infoIcon, message: new MarkdownString(`${localize('enabled remotely', \"This extension is enabled in the Remote Extension Host because it prefers to run there.\")} [${localize('learn more', \"Learn More\")}](https://code.visualstudio.com/api/advanced-topics/remote-extensions#architecture-and-extension-kinds)`) }, true); } return; } if (this.extension.server === this.extensionManagementServerService.remoteExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.localExtensionManagementServer) { if (this.extensionManifestPropertiesService.prefersExecuteOnUI(this.extension.local.manifest)) { this.updateStatus({ icon: infoIcon, message: new MarkdownString(`${localize('enabled locally', \"This extension is enabled in the Local Extension Host because it prefers to run there.\")} [${localize('learn more', \"Learn More\")}](https://aka.ms/vscode-remote/developing-extensions/architecture)`) }, true); this.updateStatus({ icon: infoIcon, message: new MarkdownString(`${localize('enabled locally', \"This extension is enabled in the Local Extension Host because it prefers to run there.\")} [${localize('learn more', \"Learn More\")}](https://code.visualstudio.com/api/advanced-topics/remote-extensions#architecture-and-extension-kinds)`) }, true); } return; } if (this.extension.server === this.extensionManagementServerService.remoteExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.webExtensionManagementServer) { if (this.extensionManifestPropertiesService.canExecuteOnWeb(this.extension.local.manifest)) { this.updateStatus({ icon: infoIcon, message: new MarkdownString(`${localize('enabled in web worker', \"This extension is enabled in the Web Worker Extension Host because it prefers to run there.\")} [${localize('learn more', \"Learn More\")}](https://aka.ms/vscode-remote/developing-extensions/architecture)`) }, true); this.updateStatus({ icon: infoIcon, message: new MarkdownString(`${localize('enabled in web worker', \"This extension is enabled in the Web Worker Extension Host because it prefers to run there.\")} [${localize('learn more', \"Learn More\")}](https://code.visualstudio.com/api/advanced-topics/remote-extensions#architecture-and-extension-kinds)`) }, true); } return; }"}
{"_id":"doc-en-vscode-a0baef3ca65fb115124aad870e42d25ffbf437fda7e823ef3500132fca6509f7","title":"","text":"when: ContextKeyExpr.or(ContextKeyExpr.and(CONTEXT_IN_CHAT_SESSION, CONTEXT_IN_CHAT_INPUT.negate()), accessibleViewInCodeBlock), primary: KeyMod.CtrlCmd | KeyCode.Enter, mac: { primary: KeyMod.WinCtrl | KeyCode.Enter }, weight: KeybindingWeight.WorkbenchContrib weight: KeybindingWeight.ExternalExtension + 1 }, }); }"}
{"_id":"doc-en-vscode-a9d59131cf46400b80583e2986bde3d6e86dd5624b9cbaec6e5b264423c9ef86","title":"","text":"// Only allow history navigation when the input is empty. // (If this model change happened as a result of a history navigation, this is canceled out by a call in this.navigateHistory) const model = this._inputEditor.getModel(); const inputHasText = !!model && model.getValueLength() > 0; const inputHasText = !!model && model.getValue().trim().length > 0; this.inputEditorHasText.set(inputHasText); // If the user is typing on a history entry, then reset the onHistoryEntry flag so that history navigation can be disabled"}
{"_id":"doc-en-vscode-213edcbfd60e604800c5478c94b798f0566ca70d7bf6fd04e76f572836be4a13","title":"","text":"import { editorBackground, editorForeground, inputBackground } from 'vs/platform/theme/common/colorRegistry'; import { ChatModel } from 'vs/workbench/contrib/chat/common/chatModel'; import { Range } from 'vs/editor/common/core/range'; import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection'; import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey'; export class InlineChatContentWidget implements IContentWidget {"}
{"_id":"doc-en-vscode-6c9e2c448f21a061e3f65c4d8dcdeaeb418727ede9bbaa3f31fc6d01986b42b1","title":"","text":"constructor( private readonly _editor: ICodeEditor, @IInstantiationService instaService: IInstantiationService, @IContextKeyService contextKeyService: IContextKeyService, ) { this._defaultChatModel = this._store.add(instaService.createInstance(ChatModel, `inlineChatDefaultModel/editorContentWidgetPlaceholder`, undefined)); this._widget = instaService.createInstance( const scopedInstaService = instaService.createChild( new ServiceCollection([ IContextKeyService, this._store.add(contextKeyService.createScoped(this._domNode)) ]) ); this._widget = scopedInstaService.createInstance( ChatWidget, ChatAgentLocation.Editor, { resource: true },"}
{"_id":"doc-en-vscode-553cdb2693b3104f418e8a9dfe566da9be48025ec517c31f7996c782a5598558","title":"","text":"} return false; }); if (refer && slashCommandLike) { if (refer && slashCommandLike && !this._session.lastExchange) { this._log('[IE] seeing refer command, continuing outside editor', this._session.provider.extensionId); // cancel this request"}
{"_id":"doc-en-vscode-d219e66ad4415dfae6ef19bb42d5fcc3cdd16c00b7252535f1669b0aeb4ab1a7","title":"","text":"// if agent has a refer command, massage the input to include the agent name await this._instaService.invokeFunction(sendRequest, massagedInput); if (!this._session.lastExchange) { // DONE when there wasn't any exchange yet. We used the inline chat only as trampoline return State.ACCEPT; } return State.WAIT_FOR_INPUT; return State.ACCEPT; } this._session.addInput(new SessionPrompt(input, this._nextAttempt, this._nextWithIntentDetection));"}
{"_id":"doc-en-vscode-701f70f962a8d01810aea68ab3d841ed74973638abfe8269f43c2ccc67c9522a","title":"","text":"import { IChatService } from 'vs/workbench/contrib/chat/common/chatService'; import { setupCustomHover } from 'vs/base/browser/ui/hover/updatableHoverWidget'; import { getDefaultHoverDelegate } from 'vs/base/browser/ui/hover/hoverDelegateFactory'; import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection'; export interface InlineChatWidgetViewState {"}
{"_id":"doc-en-vscode-f9d0b3f95a946121eb7566d0df2fd4fa9c407367d3a8a9c42fed9b627a389c1c","title":"","text":"this._store.add(this._progressBar); let allowRequests = false; this._chatWidget = _instantiationService.createInstance( const scopedInstaService = _instantiationService.createChild( new ServiceCollection([ IContextKeyService, this._store.add(_contextKeyService.createScoped(this._elements.chatWidget)) ]) ); this._chatWidget = scopedInstaService.createInstance( ChatWidget, location, { resource: true },"}
{"_id":"doc-en-vscode-2a7d82f0398dcb7f813230cd40ea603af7c8931f18997537eec8310d3c9cd366","title":"","text":"get contentHeight(): number { const data = { followUpsHeight: getTotalHeight(this._elements.followUps), chatWidgetHeight: this._chatWidget.contentHeight, chatWidgetContentHeight: this._chatWidget.contentHeight, progressHeight: getTotalHeight(this._elements.progress), statusHeight: getTotalHeight(this._elements.status), extraHeight: this._getExtraHeight() }; const result = data.progressHeight + data.chatWidgetHeight + data.followUpsHeight + data.statusHeight + data.extraHeight; // console.log(`InlineChat#contentHeight ${result}`, data); const result = data.progressHeight + data.chatWidgetContentHeight + data.followUpsHeight + data.statusHeight + data.extraHeight; return result; } get minHeight(): number { // The chat widget is variable height and supports scrolling. It // should be at least 100px high and at most the content height. let value = this.contentHeight; value -= this._chatWidget.contentHeight; value += Math.min(100, this._chatWidget.contentHeight); return value; } protected _getExtraHeight(): number { return 12 /* padding */ + 2 /*border*/ + 12 /*shadow*/; }"}
{"_id":"doc-en-vscode-5ab02c50f216a1448bfc72642e331b5a7b7f3af8a352bb4534467ffe32d78354","title":"","text":"const chatContentHeight = this.widget.contentHeight; const editorHeight = this.editor.getLayoutInfo().height; const contentHeight = Math.min(chatContentHeight, editorHeight * 0.42); const contentHeight = Math.min(chatContentHeight, Math.max(this.widget.minHeight, editorHeight * 0.42)); const heightInLines = contentHeight / this.editor.getOption(EditorOption.lineHeight); // console.log('ZONE#_computeHeightInLines', { chatContentHeight, editorHeight, contentHeight, heightInLines }); return heightInLines; }"}
{"_id":"doc-en-vscode-e0d6ec75a27def70ffd77f4bee33576177b4f81b95dd55704d1c558936d157d1","title":"","text":"z-index: 3; } .monaco-workbench .zone-widget.inline-chat-widget .interactive-session { max-width: unset; } .monaco-workbench .zone-widget-container.inside-selection { background-color: var(--vscode-inlineChat-regionHighlight); }"}
{"_id":"doc-en-vscode-fc3ebe59b618fd0e6674a8b817b99b12ed16bf541983273a4b803645532b3c27","title":"","text":"background-color: var(--vscode-chat-list-background); } .interactive-item-container.interactive-request .header .monaco-toolbar { /* Take the partially-transparent background color override for request rows */ background-color: inherit; } .interactive-item-container .header .monaco-toolbar .checked.action-label, .interactive-item-container .header .monaco-toolbar .checked.action-label:hover { color: var(--vscode-inputOption-activeForeground) !important;"}
{"_id":"doc-en-vscode-8bde806856c2e8e14f905a5950b37218b3d623c4f5fc29eb91f5b5216807c4d4","title":"","text":"background-color: var(--vscode-inlineChat-regionHighlight); } .monaco-workbench .inline-chat-slash-command { .monaco-workbench .interactive-session .interactive-input-and-execute-toolbar .monaco-editor .inline-chat-slash-command { background-color: var(--vscode-chat-slashCommandBackground); color: var(--vscode-chat-slashCommandForeground); color: var(--vscode-chat-slashCommandForeground); /* Overrides the foreground color rule in chat.css */ border-radius: 4px; padding: 1px; }"}
{"_id":"doc-en-vscode-133e39753973de07a9696f5e4012a6ffc6488cb68bf454cd6d8967b54f7f647e","title":"","text":"private _getAccessibleViewHelpDialogContent(providerHasSymbols?: boolean): string { const navigationHint = this._getNavigationHint(); const goToSymbolHint = this._getGoToSymbolHint(providerHasSymbols); const toolbarHint = localize('toolbar', \"Navigate to the toolbar (Shift+Tab)).\"); const toolbarHint = localize('toolbar', \"Navigate to the toolbar (Shift+Tab).\"); const chatHints = this._getChatHints(); let hint = localize('intro', \"In the accessible view, you can:n\");"}
{"_id":"doc-en-vscode-4644216db7e285ef1b862ad2a7bb71cd8055aec0d4c0764530e3329c1aaa0a19","title":"","text":"if (insertIntoNewFileKb) { hint += localize('insertIntoNewFile', \" - Insert the code block into a new file ({0}).n\", insertIntoNewFileKb); } else { hint += localize('insertIntoNewFileNoKb', \" - Insert the code block into a new file by configuring a keybinding for the Chat: Insert at Cursor command.n\"); hint += localize('insertIntoNewFileNoKb', \" - Insert the code block into a new file by configuring a keybinding for the Chat: Insert into New File command.n\"); } if (runInTerminalKb) { hint += localize('runInTerminal', \" - Run the code block in the terminal ({0}).n\", runInTerminalKb);"}
{"_id":"doc-en-vscode-bde7c44d649f74df2ff08a02da0750a0cded7b55f0e472fe6028f8de02816951","title":"","text":"let goToSymbolHint = ''; if (providerHasSymbols) { if (goToSymbolKb) { goToSymbolHint = localize('goToSymbolHint', 'Go to a symbol ({0})', goToSymbolKb); goToSymbolHint = localize('goToSymbolHint', 'Go to a symbol ({0}).', goToSymbolKb); } else { goToSymbolHint = localize('goToSymbolHintNoKb', 'To go to a symbol, configure a keybinding for the command Go To Symbol in Accessible View'); }"}
{"_id":"doc-en-vscode-aa68ca59708b094c378528c0f2835438a9bea1d193bb034b024775962e6dc9ba","title":"","text":"// Add default items const productLabel = this.productService.nameLong; const marketPlaceLabel = localize(\"reportExtensionMarketplace\", \"Extension Marketplace\"); issuePicksConst.push( { label: productLabel, ariaLabel: productLabel, accept: () => this.commandService.executeCommand('workbench.action.openIssueReporter', { issueSource: IssueSource.VSCode }) }, { label: marketPlaceLabel, ariaLabel: marketPlaceLabel, accept: () => this.commandService.executeCommand('workbench.action.openIssueReporter', { issueSource: IssueSource.Marketplace }) }, { type: 'separator', label: localize('extensions', \"Extensions\") } ); const productFilter = matchesFuzzy(filter, productLabel, true); const marketPlaceFilter = matchesFuzzy(filter, marketPlaceLabel, true); // Add product pick if product filter matches if (productFilter) { issuePicksConst.push({ label: productLabel, ariaLabel: productLabel, highlights: { label: productFilter }, accept: () => this.commandService.executeCommand('workbench.action.openIssueReporter', { issueSource: IssueSource.VSCode }) }); } // Add marketplace pick if marketplace filter matches if (marketPlaceFilter) { issuePicksConst.push({ label: marketPlaceLabel, ariaLabel: marketPlaceLabel, highlights: { label: marketPlaceFilter }, accept: () => this.commandService.executeCommand('workbench.action.openIssueReporter', { issueSource: IssueSource.Marketplace }) }); } issuePicksConst.push({ type: 'separator', label: localize('extensions', \"Extensions\") }); // creates menu from contributed const menu = this.menuService.createMenu(MenuId.IssueReporter, this.contextKeyService);"}
{"_id":"doc-en-vscode-e0d52b4df496469cca120a633e7349a3ffb182754f973349d4a6361fe9ced381","title":"","text":"return; } const contr = TerminalChatController.activeChatWidget || TerminalChatController.get(activeInstance); contr?.chatWidget?.focusResponse(); contr?.chatWidget?.inlineChatWidget.chatWidget.focusLastMessage(); } });"}
{"_id":"doc-en-vscode-c5833c6d7d88b5cf3665a9f45e10da6d4027cc37a9f460bf392de197bf3c41d1","title":"","text":"focus(): void { this._inlineChatWidget.focus(); } focusResponse(): void { const responseElement = this._inlineChatWidget.domNode.querySelector(ChatElementSelectors.ResponseEditor) || this._inlineChatWidget.domNode.querySelector(ChatElementSelectors.ResponseMessage); if (responseElement instanceof HTMLElement) { responseElement.focus(); } } hasFocus(): boolean { return this._inlineChatWidget.hasFocus(); }"}
{"_id":"doc-en-vscode-cd5ef6f992eaa6f242a567d86b91b7aa7e1d07665ea4919211cb81f6ccd62e42","title":"","text":"} } const enum ChatElementSelectors { ResponseEditor = '.chatMessageContent textarea', ResponseMessage = '.chatMessageContent', } "}
{"_id":"doc-en-vscode-152dc9768ab59bc818d898d59aa8475657ab16943eacc30d2bccdd3b2e287a97","title":"","text":"// Import the effects we need import { Color } from 'vs/base/common/color'; import { registerColor, darken, lighten, ifDefinedThenElse, transparent } from 'vs/platform/theme/common/colorUtils'; import { registerColor, darken, lighten, transparent } from 'vs/platform/theme/common/colorUtils'; // Import the colors we need import { foreground, contrastBorder, activeContrastBorder, focusBorder, iconForeground } from 'vs/platform/theme/common/colors/baseColors';"}
{"_id":"doc-en-vscode-09c85d9a9413e438c936812e6195745fdae187982ad65a69b920df6fa4474c98","title":"","text":"nls.localize('highlight', 'List/Tree foreground color of the match highlights when searching inside the list/tree.')); export const listFocusHighlightForeground = registerColor('list.focusHighlightForeground', { dark: listHighlightForeground, light: ifDefinedThenElse(listActiveSelectionBackground, listHighlightForeground, '#BBE7FF'), hcDark: listHighlightForeground, hcLight: listHighlightForeground }, { dark: listHighlightForeground, light: listHighlightForeground, hcDark: listHighlightForeground, hcLight: listHighlightForeground }, nls.localize('listFocusHighlightForeground', 'List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.')); export const listInvalidItemForeground = registerColor('list.invalidItemForeground',"}
{"_id":"doc-en-vscode-9e8c122f65de67ae5af0850ca12b5b49e20b7b037ed7032d71097d505bcac0fb","title":"","text":"import { Emitter, Event } from 'vs/base/common/event'; import { DisposableStore } from 'vs/base/common/lifecycle'; import { IPosition, Position } from 'vs/editor/common/core/position'; import { clamp } from 'vs/base/common/numbers'; import { renderLabelWithIcons } from 'vs/base/browser/ui/iconLabel/iconLabels'; import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation'; import { inlineChatBackground } from 'vs/workbench/contrib/inlineChat/common/inlineChat';"}
{"_id":"doc-en-vscode-527495b3e599b83e172b863e4b1a676b25bfddf0fe4238020cc73a20cca985d2","title":"","text":"import { Range } from 'vs/editor/common/core/range'; import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection'; import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey'; import { EditorOption } from 'vs/editor/common/config/editorOptions'; export class InlineChatContentWidget implements IContentWidget {"}
{"_id":"doc-en-vscode-4d36a54833e8e305166bd8b583374f485b48773ad4b8a3e56201fc3e41bbdcdf","title":"","text":"beforeRender(): IDimension | null { const contentWidth = this._editor.getLayoutInfo().contentWidth; const minWidth = Math.round(contentWidth * 0.38); const maxWidth = Math.round(contentWidth * 0.82); const width = clamp(220, minWidth, maxWidth); const maxHeight = this._widget.input.inputEditor.getOption(EditorOption.lineHeight) * 5; const inputEditorHeight = this._widget.inputEditor.getContentHeight(); this._widget.inputEditor.layout(new dom.Dimension(width, inputEditorHeight)); this._widget.inputEditor.layout(new dom.Dimension(360, Math.min(maxHeight, inputEditorHeight))); // const actualHeight = this._widget.inputPartHeight; // return new dom.Dimension(width, actualHeight);"}
{"_id":"doc-en-vscode-cfe6fb0d125ff628441cc490e9ee8a64199d2ab1a9fe6ea662937ef9e6b7d23f","title":"","text":"display: none; } .monaco-workbench .inline-chat-content-widget.interactive-session .interactive-session { max-width: unset; } .monaco-workbench .inline-chat-content-widget.interactive-session .interactive-input-part .interactive-execute-toolbar { margin-bottom: 1px; }"}
{"_id":"doc-en-vscode-31c09db20231d7c77f81acb98437e1ac75aa3f7fa365fd15fbb241731b520cb3","title":"","text":"import { Codicon } from 'vs/base/common/codicons'; import { ThemeIcon } from 'vs/base/common/themables'; import { onUnexpectedExternalError } from 'vs/base/common/errors'; import { getDefaultHoverDelegate } from 'vs/base/browser/ui/hover/hoverDelegateFactory'; import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding'; import { ClickAction, KeyDownAction } from 'vs/base/browser/ui/hover/hoverWidget'; import { ClickAction, HoverPosition, KeyDownAction } from 'vs/base/browser/ui/hover/hoverWidget'; import { KeyCode } from 'vs/base/common/keyCodes'; import { IHoverService } from 'vs/platform/hover/browser/hover'; import { IHoverService, WorkbenchHoverDelegate } from 'vs/platform/hover/browser/hover'; import { AsyncIterableObject } from 'vs/base/common/async'; import { LanguageFeatureRegistry } from 'vs/editor/common/languageFeatureRegistry'; import { getHoverProviderResultsAsAsyncIterable } from 'vs/editor/contrib/hover/browser/getHover';"}
{"_id":"doc-en-vscode-202c05379be24bf77ad357f8c0581156bcd76644567a176ce717c08dfbf61d18","title":"","text":"this._openerService, this._keybindingService, this._hoverService, this._configurationService, context.onContentsChanged ); return this._renderedHoverParts;"}
{"_id":"doc-en-vscode-5d1625cd8c8ece55b692ec35f88f0ba7d064ae361dfd18f9b7068bcb5560d8ef","title":"","text":"private readonly _openerService: IOpenerService, private readonly _keybindingService: IKeybindingService, private readonly _hoverService: IHoverService, private readonly _configurationService: IConfigurationService, private readonly _onFinishedRendering: () => void, ) { super();"}
{"_id":"doc-en-vscode-b36959b3687b7c02b130976e8f75200c967c0ebab3c9ce0d63d89a39e3253cf5","title":"","text":"const isActionIncrease = action === HoverVerbosityAction.Increase; const actionElement = dom.append(container, $(ThemeIcon.asCSSSelector(isActionIncrease ? increaseHoverVerbosityIcon : decreaseHoverVerbosityIcon))); actionElement.tabIndex = 0; const hoverDelegate = new WorkbenchHoverDelegate('mouse', false, { target: container, position: { hoverPosition: HoverPosition.LEFT } }, this._configurationService, this._hoverService); if (isActionIncrease) { const kb = this._keybindingService.lookupKeybinding(INCREASE_HOVER_VERBOSITY_ACTION_ID); store.add(this._hoverService.setupUpdatableHover(getDefaultHoverDelegate('mouse'), actionElement, kb ? store.add(this._hoverService.setupUpdatableHover(hoverDelegate, actionElement, kb ? nls.localize('increaseVerbosityWithKb', \"Increase Verbosity ({0})\", kb.getLabel()) : nls.localize('increaseVerbosity', \"Increase Verbosity\"))); } else { const kb = this._keybindingService.lookupKeybinding(DECREASE_HOVER_VERBOSITY_ACTION_ID); store.add(this._hoverService.setupUpdatableHover(getDefaultHoverDelegate('mouse'), actionElement, kb ? store.add(this._hoverService.setupUpdatableHover(hoverDelegate, actionElement, kb ? nls.localize('decreaseVerbosityWithKb', \"Decrease Verbosity ({0})\", kb.getLabel()) : nls.localize('decreaseVerbosity', \"Decrease Verbosity\"))); }"}
{"_id":"doc-en-vscode-c11233c3b7dd8c4aab312314f9c3131cf1c9c5cafd70c40eca753d06034550c0","title":"","text":"comment: ['Label for action that will increase the hover verbosity level.'] }, \"Increase Hover Verbosity Level\"), alias: 'Increase Hover Verbosity Level', precondition: EditorContextKeys.hoverFocused, kbOpts: { kbExpr: EditorContextKeys.hoverFocused, primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyP), weight: KeybindingWeight.EditorContrib } precondition: EditorContextKeys.hoverFocused }); }"}
{"_id":"doc-en-vscode-745f6400915ef6633982c9d54ad1233e6991ec67bad23305cb0c86e59d71b5a4","title":"","text":"comment: ['Label for action that will decrease the hover verbosity level.'] }, \"Decrease Hover Verbosity Level\"), alias: 'Decrease Hover Verbosity Level', precondition: EditorContextKeys.hoverFocused, kbOpts: { kbExpr: EditorContextKeys.hoverFocused, primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyM), weight: KeybindingWeight.EditorContrib } precondition: EditorContextKeys.hoverFocused }); }"}
{"_id":"doc-en-vscode-cb56d0920fe5dfedb599bd5d513c36c38a8c274fdf41e24d0c7e526ceb147102","title":"","text":"const fullscreen = isFullscreen(this.window); return { ...state, bounds: this.maximized ? undefined : state.bounds, // ignore if maximized (fullscreen is not yet supported!) bounds: state.bounds, mode: this.maximized ? AuxiliaryWindowMode.Maximized : fullscreen ? AuxiliaryWindowMode.Fullscreen : AuxiliaryWindowMode.Normal }; }"}
{"_id":"doc-en-vscode-81eefda8aaace5df75035196d329701ec65d45a4cb3493a158e0841522f46b70","title":"","text":"$completionPrefix = $commandLine # Get completions $result = \"`e]633;Completions\" $result = \"$([char]0x1b)]633;Completions\" if ($completionPrefix.Length -gt 0) { # Get and send completions $completions = TabExpansion2 -inputScript $completionPrefix -cursorColumn $cursorIndex"}
{"_id":"doc-en-vscode-f1f8f74d0c634936cfebec2c944c5316f944d984e1096d60b92ec7554117bb8e","title":"","text":"import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; import { IMarkerService } from 'vs/platform/markers/common/markers'; import { IThemeService } from 'vs/platform/theme/common/themeService'; import { IActiveNotebookEditor, ICellViewModel, INotebookEditor, type INotebookViewCellsUpdateEvent } from 'vs/workbench/contrib/notebook/browser/notebookBrowser'; import { IActiveNotebookEditor, ICellViewModel, INotebookEditor } from 'vs/workbench/contrib/notebook/browser/notebookBrowser'; import { CellKind, NotebookCellsChangeType, NotebookSetting } from 'vs/workbench/contrib/notebook/common/notebookCommon'; import { INotebookExecutionStateService, NotebookExecutionType } from 'vs/workbench/contrib/notebook/common/notebookExecutionStateService'; import { OutlineChangeEvent, OutlineConfigKeys, OutlineTarget } from 'vs/workbench/services/outline/browser/outline';"}
{"_id":"doc-en-vscode-a93ed1c4087f85ef36b109245f6c3cd88536f7182fbdb6bb03bed5dd763c03b6","title":"","text":"private _uri: URI | undefined; private _entries: OutlineEntry[] = []; get entries(): OutlineEntry[] { if (this.delayedOutlineRecompute.isTriggered()) { this.delayedOutlineRecompute.cancel(); this._recomputeState(); } return this._entries; }"}
{"_id":"doc-en-vscode-94d5105b7e53d7146bbcfdcdf6ceac71f6e2be50143ded5cc29aa020ba7cec86","title":"","text":"readonly outlineKind = 'notebookCells'; get activeElement(): OutlineEntry | undefined { if (this.delayedOutlineRecompute.isTriggered()) { this.delayedOutlineRecompute.cancel(); this._recomputeState(); } return this._activeEntry; } private readonly _outlineEntryFactory: NotebookOutlineEntryFactory; private readonly delayRecomputeActive: () => void; private readonly delayedOutlineRecompute: Delayer;; constructor( private readonly _editor: INotebookEditor, private readonly _target: OutlineTarget,"}
{"_id":"doc-en-vscode-dcbad39a53f6a006c56f71c6f603aac7ba714d36b01a5cb0b018745368f634f1","title":"","text":"@IConfigurationService private readonly _configurationService: IConfigurationService, ) { this._outlineEntryFactory = new NotebookOutlineEntryFactory(notebookExecutionStateService); const delayerRecomputeActive = this._disposables.add(new Delayer(10)); this.delayRecomputeActive = () => delayerRecomputeActive.trigger(() => this._recomputeActive()); this._disposables.add(Event.debounce( _editor.onDidChangeSelection, (last, _current) => last, 200 )(() => { this.delayRecomputeActive(); const delayerRecomputeActive = this._disposables.add(new Delayer(200)); this._disposables.add(_editor.onDidChangeSelection(() => { delayerRecomputeActive.trigger(() => this._recomputeActive()); }, this)) this._disposables.add(Event.debounce( _editor.onDidChangeViewCells, (last, _current) => last ?? _current, 200 )(() => { this.delayRecomputeActive(); }, this) ); // .3s of a delay is sufficient, 100-200s is too quick and will unnecessarily block the ui thread. // Given we're only updating the outline when the user types, we can afford to wait a bit. const delayer = this._disposables.add(new Delayer(300)); const delayedRecompute = () => delayer.trigger(() => this._recomputeState()); this.delayedOutlineRecompute = this._disposables.add(new Delayer(300)); const delayedRecompute = () => { delayerRecomputeActive.cancel(); // Active is always recomputed after a recomputing the outline state. this.delayedOutlineRecompute.trigger(() => this._recomputeState()); }; this._disposables.add(_configurationService.onDidChangeConfiguration(e => { if (e.affectsConfiguration(NotebookSetting.outlineShowMarkdownHeadersOnly) ||"}
{"_id":"doc-en-vscode-c87b7f808ff00cb36b96a0770cfa86efa15fc7c094975d54dc0610e325ece8a4","title":"","text":"return; } disposable.add(this._editor.textModel.onDidChangeContent(contentChanges => { if (contentChanges.rawEvents.some(c => c.kind === NotebookCellsChangeType.ChangeCellContent)) { if (contentChanges.rawEvents.some(c => c.kind === NotebookCellsChangeType.ChangeCellContent || c.kind === NotebookCellsChangeType.ChangeCellInternalMetadata || c.kind === NotebookCellsChangeType.Move || c.kind === NotebookCellsChangeType.ModelChange)) { delayedRecompute(); } }));"}
{"_id":"doc-en-vscode-3b03d01e3ff874ed5608096a8ac25143dd0048cac302662eea4054794ba81c14","title":"","text":"} })); this.delayRecomputeActive(); this._recomputeActive(); } private _recomputeActive(): { changeEventTriggered: boolean } {"}
{"_id":"doc-en-vscode-8682e210d66303fee61ac713115c9ee26354564e2688635739f869de6cbcdcc5","title":"","text":"let customEditorLabelDescription = localize('workbench.editor.label.patterns', \"Controls the rendering of the editor label. Each __Item__ is a pattern that matches a file path. Both relative and absolute file paths are supported. In case multiple patterns match, the longest matching path will be picked. Each __Value__ is the template for the rendered editor when the __Item__ matches. Variables are substituted based on the context:\"); customEditorLabelDescription += 'n- ' + [ localize('workbench.editor.label.dirname', \"`${dirname}`: name of the folder in which the file is located (e.g. `root/folder/file.txt -> folder`).\"), localize('workbench.editor.label.nthdirname', \"`${dirname(N)}`: name of the nth parent folder in which the file is located (e.g. `N=1: root/folder/file.txt -> root`).\"), localize('workbench.editor.label.nthdirname', \"`${dirname(N)}`: name of the nth parent folder in which the file is located (e.g. `N=1: root/folder/file.txt -> root`). Folders can be picked from the start of the path by using negative numbers (e.g. `N=-1: root/folder/file.txt -> root`). If the __Item__ is an absolute pattern path, the first folder (`N=-1`) refers to the first folder in the absoulte path, otherwise it corresponds to the workspace folder.\"), localize('workbench.editor.label.filename', \"`${filename}`: name of the file without the file extension (e.g. `root/folder/file.txt -> file`).\"), localize('workbench.editor.label.extname', \"`${extname}`: the file extension (e.g. `root/folder/file.txt -> txt`).\"), ].join('n- '); // intentionally concatenated to not produce a string that is too long for translations"}
{"_id":"doc-en-vscode-0154b6ae531ca6fdcccd9949562c2cabb716c7363aa2225fa338be8dc6947877","title":"","text":"import { MainThreadTunnelServiceShape, MainContext, ExtHostContext, ExtHostTunnelServiceShape, CandidatePortSource, PortAttributesSelector, TunnelDto } from 'vs/workbench/api/common/extHost.protocol'; import { TunnelDtoConverter } from 'vs/workbench/api/common/extHostTunnelService'; import { extHostNamedCustomer, IExtHostContext } from 'vs/workbench/services/extensions/common/extHostCustomers'; import { IRemoteExplorerService, PORT_AUTO_FORWARD_SETTING, PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_OUTPUT } from 'vs/workbench/services/remote/common/remoteExplorerService'; import { IRemoteExplorerService, PORT_AUTO_FORWARD_SETTING, PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_HYBRID, PORT_AUTO_SOURCE_SETTING_OUTPUT } from 'vs/workbench/services/remote/common/remoteExplorerService'; import { ITunnelProvider, ITunnelService, TunnelCreationOptions, TunnelProviderFeatures, TunnelOptions, RemoteTunnel, ProvidedPortAttributes, PortAttributesProvider, TunnelProtocol } from 'vs/platform/tunnel/common/tunnel'; import { Disposable } from 'vs/base/common/lifecycle'; import type { TunnelDescription } from 'vs/platform/remote/common/remoteAuthorityResolver';"}
{"_id":"doc-en-vscode-d4940ff8a9f293e6d556c08e88c609ecdd0ad9304da5fe5e910cb5b5b4ca7123","title":"","text":".registerDefaultConfigurations([{ overrides: { 'remote.autoForwardPortsSource': PORT_AUTO_SOURCE_SETTING_OUTPUT } }]); break; } case CandidatePortSource.Hybrid: { Registry.as(ConfigurationExtensions.Configuration) .registerDefaultConfigurations([{ overrides: { 'remote.autoForwardPortsSource': PORT_AUTO_SOURCE_SETTING_HYBRID } }]); break; } default: // Do nothing, the defaults for these settings should be used. } }).catch(() => {"}
{"_id":"doc-en-vscode-6520aee1c642ba7860041e15fe507de0686024c94866b8d20903335d739dce3f","title":"","text":"export enum CandidatePortSource { None = 0, Process = 1, Output = 2 Output = 2, Hybrid = 3 } export interface PortAttributesSelector {"}
{"_id":"doc-en-vscode-528a21ad11cf2a937b2f27f46d150d87a760c79d64bc5b036854eb78429ed037","title":"","text":"export enum CandidatePortSource { None = 0, Process = 1, Output = 2 Output = 2, Hybrid = 3 } export type ResolverResult = (ResolvedAuthority | ManagedResolvedAuthority) & ResolvedOptions & TunnelInformation;"}
{"_id":"doc-en-vscode-66fb7e59b8e59c5407fc9f8867ca0808bbce385aaca277ea9240561a63fd1714","title":"","text":"} private toSymbolInformation(item: Proto.NavtoItem): vscode.SymbolInformation | undefined { if (!item.containerName || item.kind === 'alias') { if (item.kind === 'alias' && !item.containerName) { return; }"}
{"_id":"doc-en-vscode-8b4292944fab3b7d5666ed78c66b76ffd60321b405fe732ca207dccb334ba23d","title":"","text":"\"--vscode-editorStickyScroll-scrollableWidth\", \"--vscode-editorStickyScroll-foldingOpacityTransition\", \"--window-border-color\", \"--vscode-parameterHintsWidget-editorFontFamily\", \"--vscode-parameterHintsWidget-editorFontFamilyDefault\", \"--workspace-trust-check-color\", \"--workspace-trust-selected-color\", \"--workspace-trust-unselected-color\","}
{"_id":"doc-en-vscode-f7eef1aaa71038b26e6df21d4084a51f62571cb3940617d338b03e1438588a92","title":"","text":"border-bottom: 1px solid var(--vscode-editorHoverWidget-border); } .monaco-editor .parameter-hints-widget .code { font-family: var(--vscode-parameterHintsWidget-editorFontFamily), var(--vscode-parameterHintsWidget-editorFontFamilyDefault); } .monaco-editor .parameter-hints-widget .docs { padding: 0 10px 0 5px; white-space: pre-wrap;"}
{"_id":"doc-en-vscode-36274fdfa3a2c10ba7918a20c584c09c496607c7e8f66dbf9dba58a480057d81","title":"","text":"import { assertIsDefined } from 'vs/base/common/types'; import 'vs/css!./parameterHints'; import { ContentWidgetPositionPreference, ICodeEditor, IContentWidget, IContentWidgetPosition } from 'vs/editor/browser/editorBrowser'; import { EditorOption } from 'vs/editor/common/config/editorOptions'; import { EDITOR_FONT_DEFAULTS, EditorOption } from 'vs/editor/common/config/editorOptions'; import * as languages from 'vs/editor/common/languages'; import { ILanguageService } from 'vs/editor/common/languages/language'; import { IMarkdownRenderResult, MarkdownRenderer } from 'vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer';"}
{"_id":"doc-en-vscode-5e1e865d622bd3fd8019a1ea03b926e3e8bb40af66d69db70cc3716f490fcbcd","title":"","text":"if (!this.domNodes) { return; } const fontInfo = this.editor.getOption(EditorOption.fontInfo); this.domNodes.element.style.fontSize = `${fontInfo.fontSize}px`; this.domNodes.element.style.lineHeight = `${fontInfo.lineHeight / fontInfo.fontSize}`; const element = this.domNodes.element; element.style.fontSize = `${fontInfo.fontSize}px`; element.style.lineHeight = `${fontInfo.lineHeight / fontInfo.fontSize}`; element.style.setProperty('--vscode-parameterHintsWidget-editorFontFamily', fontInfo.fontFamily); element.style.setProperty('--vscode-parameterHintsWidget-editorFontFamilyDefault', EDITOR_FONT_DEFAULTS.fontFamily); }; updateFont();"}
{"_id":"doc-en-vscode-2237ed03c16995bd666d2f3670f112cea7ce58e59eec0d1a6dfd63b14ce8aed0","title":"","text":"} const code = dom.append(this.domNodes.signature, $('.code')); const fontInfo = this.editor.getOption(EditorOption.fontInfo); code.style.fontSize = `${fontInfo.fontSize}px`; code.style.fontFamily = fontInfo.fontFamily; const hasParameters = signature.parameters.length > 0; const activeParameterIndex = signature.activeParameter ?? hints.activeParameter;"}
{"_id":"doc-en-vscode-aa2ec2755c1ecbda6d06e0c528ba2575d3315ebdc5fe4edba302d85f2427ac2c","title":"","text":"function Global:__VSCode-Escape-Value([string]$value) { # NOTE: In PowerShell v6.1+, this can be written `$value -replace '…', { … }` instead of `[regex]::Replace`. # Replace any non-alphanumeric characters. [regex]::Replace($value, \"[$([char]0x1b)n;]\", { param($match) [regex]::Replace($value, \"[$([char]0x00)-$([char]0x1f)n;]\", { param($match) # Encode the (ascii) matches as `x` -Join ( [System.Text.Encoding]::UTF8.GetBytes($match.Value) | ForEach-Object { 'x{0:x2}' -f $_ }"}
{"_id":"doc-en-vscode-28feaa5f2856eb735efa88c094d8a6cc318fc72a1ff277d3e9dac637090f33b7","title":"","text":"this._scanDevelopedExtensions(language, extensionDevelopmentPath) ]); return dedupExtensions(builtinExtensions, [...installedExtensions, ...workspaceInstalledExtensions], developedExtensions, this._logService); return dedupExtensions(builtinExtensions, installedExtensions, workspaceInstalledExtensions, developedExtensions, this._logService); } private async _scanDevelopedExtensions(language: string, extensionDevelopmentPaths?: string[]): Promise {"}
{"_id":"doc-en-vscode-bdf662e9828d41f212b53d8f2d8466fe81749e21dda6fadbb2e6775565e7ee4e","title":"","text":"all.push(...await this.workbenchExtensionManagementService.getInstalledWorkspaceExtensions(true)); } // dedup user and system extensions by giving priority to user extensions. // dedup workspace, user and system extensions by giving priority to workspace first and then to user extension. const installed = groupByExtension(all, r => r.identifier).reduce((result, extensions) => { const extension = extensions.length === 1 ? extensions[0] : extensions.find(e => e.type === ExtensionType.User) || extensions.find(e => e.type === ExtensionType.System); result.push(extension!); if (extensions.length === 1) { result.push(extensions[0]); } else { let workspaceExtension: ILocalExtension | undefined, userExtension: ILocalExtension | undefined, systemExtension: ILocalExtension | undefined; for (const extension of extensions) { if (extension.isWorkspaceScoped) { workspaceExtension = extension; } else if (extension.type === ExtensionType.User) { userExtension = extension; } else { systemExtension = extension; } } const extension = workspaceExtension ?? userExtension ?? systemExtension; if (extension) { result.push(extension); } } return result; }, []);"}
{"_id":"doc-en-vscode-5f97b3168f93ddb309042b9e27e25b2d729193c445576b9f657c1e852ee5ec81","title":"","text":"if (isUninstalled) { const canRemoveRunningExtension = runningExtension && this.extensionService.canRemoveExtension(runningExtension); const isSameExtensionRunning = runningExtension && (!extension.server || extension.server === this.extensionManagementServerService.getExtensionManagementServer(toExtension(runningExtension))); const isSameExtensionRunning = runningExtension && (!extension.server || extension.server === this.extensionManagementServerService.getExtensionManagementServer(toExtension(runningExtension))) && (!extension.resourceExtension || this.uriIdentityService.extUri.isEqual(extension.resourceExtension.location, runningExtension.extensionLocation)); if (!canRemoveRunningExtension && isSameExtensionRunning && !runningExtension.isUnderDevelopment) { return { action: reloadAction, reason: nls.localize('postUninstallTooltip', \"Please {0} to complete the uninstallation of this extension.\", reloadActionLabel) }; }"}
{"_id":"doc-en-vscode-70e0baa0cc2b081e10c3d12dca206f57f8727df73c940ba7984bf74aecbf86d4","title":"","text":"} catch (error) { this._logService.error(error); } return dedupExtensions(system, user, development, this._logService); return dedupExtensions(system, user, [], development, this._logService); } protected async _resolveExtensionsDefault() {"}
{"_id":"doc-en-vscode-48161b0a87db917879e03853a23466f6f0b6fabca4c44d6cf76b4ecaa6fd7a1d","title":"","text":"import * as semver from 'vs/base/common/semver/semver'; // TODO: @sandy081 merge this with deduping in extensionsScannerService.ts export function dedupExtensions(system: IExtensionDescription[], user: IExtensionDescription[], development: IExtensionDescription[], logService: ILogService): IExtensionDescription[] { export function dedupExtensions(system: IExtensionDescription[], user: IExtensionDescription[], workspace: IExtensionDescription[], development: IExtensionDescription[], logService: ILogService): IExtensionDescription[] { const result = new ExtensionIdentifierMap(); system.forEach((systemExtension) => { const extension = result.get(systemExtension.identifier);"}
{"_id":"doc-en-vscode-a98268eddac17eaa891719ab04a17e23b89dd7fde69aa04218278f30213f06b0","title":"","text":"} result.set(userExtension.identifier, userExtension); }); workspace.forEach(workspaceExtension => { const extension = result.get(workspaceExtension.identifier); if (extension) { logService.warn(localize('overwritingWithWorkspaceExtension', \"Overwriting {0} with Workspace Extension {1}.\", extension.extensionLocation.fsPath, workspaceExtension.extensionLocation.fsPath)); } result.set(workspaceExtension.identifier, workspaceExtension); }); development.forEach(developedExtension => { logService.info(localize('extensionUnderDevelopment', \"Loading development extension at {0}\", developedExtension.extensionLocation.fsPath)); const extension = result.get(developedExtension.identifier);"}
{"_id":"doc-en-vscode-acf691024cf6f98c45d8bf765b19333389ce511cca6772b89425e1c683eba412","title":"","text":"} const system = scannedSystemExtensions.map(e => toExtensionDescriptionFromScannedExtension(e, false)); const userGlobal = scannedUserExtensions.map(e => toExtensionDescriptionFromScannedExtension(e, false)); const userWorkspace = workspaceExtensions.map(e => toExtensionDescription(e, false)); const user = scannedUserExtensions.map(e => toExtensionDescriptionFromScannedExtension(e, false)); const workspace = workspaceExtensions.map(e => toExtensionDescription(e, false)); const development = scannedDevelopedExtensions.map(e => toExtensionDescriptionFromScannedExtension(e, true)); const r = dedupExtensions(system, [...userGlobal, ...userWorkspace], development, this._logService); const r = dedupExtensions(system, user, workspace, development, this._logService); if (!hasErrors) { const disposable = this._extensionsScannerService.onDidChangeCache(() => {"}
{"_id":"doc-en-vscode-a31f2fa3cf2b3db7db98846e62bb2b5df16730c2d3e798d23e9634248f247a00","title":"","text":"class MenuInfoSnapshot { protected _menuGroups: MenuItemGroup[] = []; private _allMenuIds: Set = new Set(); private _structureContextKeys: Set = new Set(); private _preconditionContextKeys: Set = new Set(); private _toggledContextKeys: Set = new Set();"}
{"_id":"doc-en-vscode-67d295337ae555ba352881fcd00949dfd3ff3d7ddbca56a3f34c656f86db6af5","title":"","text":"protected readonly _collectContextKeysForSubmenus: boolean, ) { this.refresh(); this._allMenuIds.add(_id); } get allMenuIds(): ReadonlySet { return this._allMenuIds; } get structureContextKeys(): ReadonlySet {"}
{"_id":"doc-en-vscode-6e4d86950ba79cafd097e23284108cac1cb22869843ad3dfb5bab75d3e663aaa","title":"","text":"// reset this._menuGroups.length = 0; this._allMenuIds.clear(); this._structureContextKeys.clear(); this._preconditionContextKeys.clear(); this._toggledContextKeys.clear();"}
{"_id":"doc-en-vscode-f8010690adbc8b754ccf78afa75295f30e26757836d383ef57d1e36bd7a15f1e","title":"","text":"} group[1].push(item); // keep keys for eventing this._collectContextKeys(item); // keep keys and submenu ids for eventing this._collectContextKeysAndSubmenuIds(item); } }"}
{"_id":"doc-en-vscode-8b56a7c98a3fab0ed4750a1830ffd087957e2c4db6717965037ffdef6f03f0dc","title":"","text":"return menuItems; } private _collectContextKeys(item: IMenuItem | ISubmenuItem): void { private _collectContextKeysAndSubmenuIds(item: IMenuItem | ISubmenuItem): void { MenuInfoSnapshot._fillInKbExprKeys(item.when, this._structureContextKeys);"}
{"_id":"doc-en-vscode-e92b8b8fd92187d8f37a1a70681667523f6dfcb874f3de6f1791f489e699fbc3","title":"","text":"} else if (this._collectContextKeysForSubmenus) { // recursively collect context keys from submenus so that this // menu fires events when context key changes affect submenus MenuRegistry.getMenuItems(item.submenu).forEach(this._collectContextKeys, this); MenuRegistry.getMenuItems(item.submenu).forEach(this._collectContextKeysAndSubmenuIds, this); this._allMenuIds.add(item.submenu); } }"}
{"_id":"doc-en-vscode-474a87df4f57e30c6b0e0cc842e99ac6fa27da4e3a61922999d7e4a539e7a95d","title":"","text":"}, options.eventDebounceDelay); this._disposables.add(rebuildMenuSoon); this._disposables.add(MenuRegistry.onDidChangeMenu(e => { if (e.has(id)) { rebuildMenuSoon.schedule(); for (const id of this._menuInfo.allMenuIds) { if (e.has(id)) { rebuildMenuSoon.schedule(); break; } } }));"}
{"_id":"doc-en-vscode-0e1fbccbbed5c2bc8308c3401492e24a28962613128d16a61f360e90c88d6ca0","title":"","text":"\"sourceMap\": false, \"allowJs\": true, \"resolveJsonModule\": true, \"isolatedModules\": true, \"outDir\": \"../out/vs\", \"types\": [ \"mocha\","}
{"_id":"doc-en-vscode-1a1597c0e488bc64b22baec800e8820dc035819ec0b1f12619651dc1e5216708","title":"","text":"* Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ declare const enum LoaderEventType { declare enum LoaderEventType { LoaderAvailable = 1, BeginLoadingScript = 10,"}
{"_id":"doc-en-vscode-ea8462f4958143dcf5e0b29a435e32d0fb6b31d834337c0f7e9440e2d6d5f77f","title":"","text":"import { CommandOptions, ForkOptions, Source, SuccessData, TerminateResponse, TerminateResponseCode } from 'vs/base/common/processes'; import * as Types from 'vs/base/common/types'; import * as pfs from 'vs/base/node/pfs'; export { CommandOptions, ForkOptions, SuccessData, Source, TerminateResponse, TerminateResponseCode }; export { type CommandOptions, type ForkOptions, type SuccessData, Source, type TerminateResponse, TerminateResponseCode }; export type ValueCallback = (value: T | Promise) => void; export type ErrorCallback = (error?: any) => void;"}
{"_id":"doc-en-vscode-8b39f324b6bdada3b1d4e7b1e932f7b4bada18cb856215108786c718b0e6e89c","title":"","text":"import { RawContextKey } from 'vs/platform/contextkey/common/contextkey'; import { workbenchConfigurationNodeBase, Extensions as WorkbenchExtensions, IConfigurationMigrationRegistry, ConfigurationKeyValuePairs, ConfigurationMigration } from 'vs/workbench/common/configuration'; import { AccessibilitySignal } from 'vs/platform/accessibilitySignal/browser/accessibilitySignalService'; import { ISpeechService, SPEECH_LANGUAGES, SPEECH_LANGUAGE_CONFIG } from 'vs/workbench/contrib/speech/common/speechService'; import { AccessibilityVoiceSettingId, ISpeechService, SPEECH_LANGUAGES } from 'vs/workbench/contrib/speech/common/speechService'; import { Disposable } from 'vs/base/common/lifecycle'; import { IWorkbenchContribution } from 'vs/workbench/common/contributions'; import { Event } from 'vs/base/common/event';"}
{"_id":"doc-en-vscode-928ce03302356416ab96e43dc94a0103e228974de628bc45846a8b1c6d0b609e","title":"","text":"}); } export const enum AccessibilityVoiceSettingId { SpeechTimeout = 'accessibility.voice.speechTimeout', AutoSynthesize = 'accessibility.voice.autoSynthesize', SpeechLanguage = SPEECH_LANGUAGE_CONFIG } export { AccessibilityVoiceSettingId } export const SpeechTimeoutDefault = 1200; export class DynamicSpeechAccessibilityConfiguration extends Disposable implements IWorkbenchContribution {"}
{"_id":"doc-en-vscode-35f2e170c22fa40ffe1282f62e8b8746da2e74299e15b87b807ece674be840e3","title":"","text":"export const INLINE_CHAT_ID = 'interactiveEditor'; export const INTERACTIVE_EDITOR_ACCESSIBILITY_HELP_ID = 'interactiveEditorAccessiblityHelp'; export const enum EditMode { Live = 'live', Preview = 'preview' } export const CTX_INLINE_CHAT_HAS_PROVIDER = new RawContextKey('inlineChatHasProvider', false, localize('inlineChatHasProvider', \"Whether a provider for interactive editors exists\")); export const CTX_INLINE_CHAT_VISIBLE = new RawContextKey('inlineChatVisible', false, localize('inlineChatVisible', \"Whether the interactive editor input is visible\")); export const CTX_INLINE_CHAT_FOCUSED = new RawContextKey('inlineChatFocused', false, localize('inlineChatFocused', \"Whether the interactive editor input is focused\"));"}
{"_id":"doc-en-vscode-333a5b7c87789154a9e139312c6770ed03f5058b1cbb29708047127ceb123a48","title":"","text":"// settings export const enum EditMode { Live = 'live', Preview = 'preview' } Registry.as(ExtensionsMigration.ConfigurationMigration).registerConfigurationMigrations( [{"}
{"_id":"doc-en-vscode-76e34a586d1d061f3333629985570a5cb1d7393f96be88f12406c5c4e9c3fe81","title":"","text":"recognizeKeyword(token: CancellationToken): Promise; } export const SPEECH_LANGUAGE_CONFIG = 'accessibility.voice.speechLanguage'; export const enum AccessibilityVoiceSettingId { SpeechTimeout = 'accessibility.voice.speechTimeout', AutoSynthesize = 'accessibility.voice.autoSynthesize', SpeechLanguage = 'accessibility.voice.speechLanguage', } export const SPEECH_LANGUAGE_CONFIG = AccessibilityVoiceSettingId.SpeechLanguage; export const SPEECH_LANGUAGES = { ['da-DK']: {"}
{"_id":"doc-en-vscode-29afb8326ecf402e257d02a8263465be8d33b4a1e1372365af46521098dedd8f","title":"","text":"import { IStringDictionary } from 'vs/base/common/collections'; import { RawContextKey, ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey'; export { ITaskSummary, Task, ITaskTerminateResponse as TaskTerminateResponse }; export type { ITaskSummary, Task, ITaskTerminateResponse as TaskTerminateResponse }; export const CustomExecutionSupportedContext = new RawContextKey('customExecutionSupported', false, nls.localize('tasks.customExecutionSupported', \"Whether CustomExecution tasks are supported. Consider using in the when clause of a 'taskDefinition' contribution.\")); export const ShellExecutionSupportedContext = new RawContextKey('shellExecutionSupported', false, nls.localize('tasks.shellExecutionSupported', \"Whether ShellExecution tasks are supported. Consider using in the when clause of a 'taskDefinition' contribution.\"));"}
{"_id":"doc-en-vscode-66f749b1f88b34bed7415dc42f4d4301ed8882e528169ff6bc5e8e39d4bd0810","title":"","text":"} .interactive-session .chat-attached-context { padding: 8px 8px 13px; margin-right: -3px; margin-top: 4px; margin-bottom: -4px; border: 1px solid var(--vscode-input-border, var(--vscode-input-background, transparent)); border-radius: 6px 6px 0px 0px; padding: 8px 0; border-radius: 6px; display: flex; gap: 4px; flex-wrap: wrap; } .interactive-session .chat-attached-context .chat-attached-context-attachment { padding: 3px; border: 1px solid var(--vscode-input-border, var(--vscode-input-background, transparent)); padding: 2px; border: 1px solid var(--vscode-chat-requestBorder, var(--vscode-input-background, transparent)); border-radius: 5px; height: 20px; height: 18px; } .interactive-session-followups {"}
{"_id":"doc-en-vscode-b87fb3a86ffb2d3af3a94eb01aab0ec0d68cd7e59dedab9370f3018079879dd3","title":"","text":"switch (state) { case VoiceChatSessionState.GettingReady: contextVoiceChatGettingReady.set(true); contextVoiceChatInProgress.set(undefined); contextVoiceChatInProgress.reset(); break; case VoiceChatSessionState.Started: contextVoiceChatGettingReady.set(false); contextVoiceChatGettingReady.reset(); contextVoiceChatInProgress.set(context); break; case VoiceChatSessionState.Stopped: contextVoiceChatGettingReady.set(false); contextVoiceChatInProgress.set(undefined); contextVoiceChatGettingReady.reset(); contextVoiceChatInProgress.reset(); break; } };"}
{"_id":"doc-en-vscode-79a786d2d20c6785a96d6ae069f228a3da9687a2600187df6f4bb6a9aab60cbf","title":"","text":"f1: true, keybinding: { weight: KeybindingWeight.WorkbenchContrib + 100, primary: KeyCode.Escape primary: KeyCode.Escape, when: AnyScopedVoiceChatInProgress }, icon: spinningLoading, precondition: GlobalVoiceChatInProgress, // need global context here because of `f1: true`"}
{"_id":"doc-en-vscode-8f56d0edb476c91473cbe2c8a6e4785ece6a535f8bed70c4e9676a18d9b2a89c","title":"","text":"disposables.add(controller.onDidHideChat(() => this.stop())); const scopedChatToSpeechInProgress = ScopedChatSynthesisInProgress.bindTo(controller.contextKeyService); disposables.add(toDisposable(() => scopedChatToSpeechInProgress.set(false))); disposables.add(toDisposable(() => scopedChatToSpeechInProgress.reset())); disposables.add(session.onDidChange(e => { switch (e.status) {"}
{"_id":"doc-en-vscode-ff110e805419c2bac0d55375bb15969f55d7ec84892de12798be71bab8fa7622","title":"","text":"scopedChatToSpeechInProgress.set(true); break; case TextToSpeechStatus.Stopped: scopedChatToSpeechInProgress.set(false); scopedChatToSpeechInProgress.reset(); break; } }));"}
{"_id":"doc-en-vscode-e498145a17b09023bfd29450e5766175b5294d0f637504cac414e20555c277e3","title":"","text":"keybinding: { weight: KeybindingWeight.WorkbenchContrib + 100, primary: KeyCode.Escape, when: ScopedChatSynthesisInProgress }, menu: [ {"}
{"_id":"doc-en-vscode-ec9913e937cd11d1a6ffafc08f082208e80c286be798fa4b1b484a4dbf35d1af","title":"","text":"enable: true }, ProgressLocation.Notification); } finally { InstallingSpeechProvider.bindTo(contextKeyService).set(false); InstallingSpeechProvider.bindTo(contextKeyService).reset(); } }"}
{"_id":"doc-en-vscode-b809ac73a59be249a65afe19e6b08e1c0919f328b3a2f0e95e761954174a7ff2","title":"","text":"import { AccessibleViewType, AdvancedContentProvider, ExtensionContentProvider } from 'vs/platform/accessibility/browser/accessibleView'; import { ContextKeyExpression } from 'vs/platform/contextkey/common/contextkey'; import { ServicesAccessor } from 'vs/platform/instantiation/common/instantiation'; import { alert } from 'vs/base/browser/ui/aria/aria'; export interface IAccessibleViewImplentation { type: AccessibleViewType;"}
{"_id":"doc-en-vscode-157749104a20fcdfdd6d884c642c63b1fb0d932c08bf0576ecb6b12ebf3f9f20","title":"","text":"inBlock = true; startLine = i + 1; languageId = line.substring(3).trim(); } else if (inBlock && line.startsWith('```')) { } else if (inBlock && line.endsWith('```')) { inBlock = false; const endLine = i; const code = lines.slice(startLine, endLine).join('n');"}
{"_id":"doc-en-vscode-76a3f93864d264f62ba649e59518fa72087ca6ccab24561ff817c01cf4e29288","title":"","text":"menu: { ...accessibleViewMenu, when: ContextKeyExpr.and(accessibleViewIsShown, accessibleViewSupportsNavigation), when: ContextKeyExpr.and(accessibleViewIsShown, accessibleViewContainsCodeBlocks), }, title: localize('editor.action.accessibleViewNextCodeBlock', \"Accessible View: Next Code Block\") });"}
{"_id":"doc-en-vscode-009d58127a12e830fb1a7a1f7198c0c1a79807faebc6713e93265ea09f2c7763","title":"","text":"icon: Codicon.arrowLeft, menu: { ...accessibleViewMenu, when: ContextKeyExpr.and(accessibleViewIsShown, accessibleViewSupportsNavigation), when: ContextKeyExpr.and(accessibleViewIsShown, accessibleViewContainsCodeBlocks), }, title: localize('editor.action.accessibleViewPreviousCodeBlock', \"Accessible View: Previous Code Block\") });"}
{"_id":"doc-en-vscode-1d83358d0b080a38ba63ee9d84879c3e9b1a19888bb025a74e4feacfd215606c","title":"","text":"*--------------------------------------------------------------------------------------------*/ import * as DOM from '../../../../../../base/browser/dom.js'; import { ICellViewModel } from '../../notebookBrowser.js'; import { ICellViewModel, INotebookEditorDelegate } from '../../notebookBrowser.js'; import { CellContentPart } from '../cellPart.js'; export class CellDecorations extends CellContentPart { constructor( readonly notebookEditor: INotebookEditorDelegate, readonly rootContainer: HTMLElement, readonly decorationContainer: HTMLElement, ) {"}
{"_id":"doc-en-vscode-c86e577376cff81681a88835ab2a5813c0090604df83c6d3efa4a420c2c9ecf5","title":"","text":"})); generateCellTopDecorations(); this.registerDecorations(); } private registerDecorations() { if (!this.currentCell) { return; } this.cellDisposables.add(this.currentCell.onCellDecorationsChanged((e) => { e.added.forEach(options => { if (options.className && this.currentCell) { this.rootContainer.classList.add(options.className); this.notebookEditor.deltaCellContainerClassNames(this.currentCell.id, [options.className], []); } if (options.outputClassName && this.currentCell) { this.notebookEditor.deltaCellContainerClassNames(this.currentCell.id, [options.outputClassName], []); } }); e.removed.forEach(options => { if (options.className && this.currentCell) { this.rootContainer.classList.remove(options.className); this.notebookEditor.deltaCellContainerClassNames(this.currentCell.id, [], [options.className]); } if (options.outputClassName && this.currentCell) { this.notebookEditor.deltaCellContainerClassNames(this.currentCell.id, [], [options.outputClassName]); } }); })); this.currentCell.getCellDecorations().forEach(options => { if (options.className && this.currentCell) { this.rootContainer.classList.add(options.className); this.notebookEditor.deltaCellContainerClassNames(this.currentCell.id, [options.className], []); } if (options.outputClassName && this.currentCell) { this.notebookEditor.deltaCellContainerClassNames(this.currentCell.id, [options.outputClassName], []); } }); } }"}
{"_id":"doc-en-vscode-2b3a6412859ba0cab4a4c0f4d43c60d1591577d6e5166724755e1705d95396a6","title":"","text":"this.registerNotebookEditorListeners(); this.registerViewCellLayoutChange(); this.registerCellEditorEventListeners(); this.registerDecorations(); this.registerMouseListener(); this._register(Event.any(this.viewCell.onDidStartExecution, this.viewCell.onDidStopExecution)((e) => {"}
{"_id":"doc-en-vscode-c13498a07887955c6ab8f123d7f104a890f9e96924480240bf6f74df46760bc6","title":"","text":"})); } private registerDecorations() { // Apply decorations this._register(this.viewCell.onCellDecorationsChanged((e) => { e.added.forEach(options => { if (options.className) { this.templateData.rootContainer.classList.add(options.className); } if (options.outputClassName) { this.notebookEditor.deltaCellContainerClassNames(this.viewCell.id, [options.outputClassName], []); } }); e.removed.forEach(options => { if (options.className) { this.templateData.rootContainer.classList.remove(options.className); } if (options.outputClassName) { this.notebookEditor.deltaCellContainerClassNames(this.viewCell.id, [], [options.outputClassName]); } }); })); this.viewCell.getCellDecorations().forEach(options => { if (options.className) { this.templateData.rootContainer.classList.add(options.className); } if (options.outputClassName) { this.notebookEditor.deltaCellContainerClassNames(this.viewCell.id, [options.outputClassName], []); } }); } private registerMouseListener() { this._register(this.templateData.editor.onMouseDown(e => { // prevent default on right mouse click, otherwise it will trigger unexpected focus changes"}
{"_id":"doc-en-vscode-2563176b73a975a00629fa9e545b8c280480a1bb655d15412f4366110ba7ee21","title":"","text":"this.relayoutCell(); } this.applyDecorations(); this.viewUpdate(); this.layoutCellParts();"}
{"_id":"doc-en-vscode-72e9d26e6ea0a0567e728b8f5893f54025f2168320a0751065b08c66a44e07bc","title":"","text":"this.templateData.container.classList.toggle('cell-editor-focus', this.viewCell.focusMode === CellFocusMode.Editor); } private applyDecorations() { // apply decorations this._register(this.viewCell.onCellDecorationsChanged((e) => { e.added.forEach(options => { if (options.className) { this.notebookEditor.deltaCellContainerClassNames(this.viewCell.id, [options.className], []); this.templateData.rootContainer.classList.add(options.className); } }); e.removed.forEach(options => { if (options.className) { this.notebookEditor.deltaCellContainerClassNames(this.viewCell.id, [], [options.className]); this.templateData.rootContainer.classList.remove(options.className); } }); })); this.viewCell.getCellDecorations().forEach(options => { if (options.className) { this.notebookEditor.deltaCellContainerClassNames(this.viewCell.id, [options.className], []); this.templateData.rootContainer.classList.add(options.className); } }); } override dispose() { this._isDisposed = true;"}
{"_id":"doc-en-vscode-a1864a60b2b4fe7958fce7054d6b74ab393a14a30b5cc5e34f488d3c07870d78","title":"","text":"templateDisposables.add(scopedInstaService.createInstance(CellEditorStatusBar, this.notebookEditor, container, editorPart, undefined)), templateDisposables.add(new CellFocusIndicator(this.notebookEditor, titleToolbar, focusIndicatorTop, focusIndicatorLeft, focusIndicatorRight, focusIndicatorBottom)), templateDisposables.add(new FoldedCellHint(this.notebookEditor, DOM.append(container, $('.notebook-folded-hint')), this._notebookExecutionStateService)), templateDisposables.add(new CellDecorations(rootContainer, decorationContainer)), templateDisposables.add(new CellDecorations(this.notebookEditor, rootContainer, decorationContainer)), templateDisposables.add(scopedInstaService.createInstance(CellComments, this.notebookEditor, cellCommentPartContainer)), templateDisposables.add(new CollapsedCellInput(this.notebookEditor, cellInputCollapsedContainer)), templateDisposables.add(new CellFocusPart(container, undefined, this.notebookEditor)),"}
{"_id":"doc-en-vscode-578919f250d27bca6612c92d3ef004935f3097fb411c32f5f3e4074165d6bc91","title":"","text":"templateDisposables.add(scopedInstaService.createInstance(CellChatPart, this.notebookEditor, cellChatPart)), templateDisposables.add(scopedInstaService.createInstance(CellEditorStatusBar, this.notebookEditor, container, editorPart, editor)), templateDisposables.add(scopedInstaService.createInstance(CellProgressBar, editorPart, cellInputCollapsedContainer)), templateDisposables.add(new CellDecorations(rootContainer, decorationContainer)), templateDisposables.add(new CellDecorations(this.notebookEditor, rootContainer, decorationContainer)), templateDisposables.add(scopedInstaService.createInstance(CellComments, this.notebookEditor, cellCommentPartContainer)), templateDisposables.add(scopedInstaService.createInstance(CellExecutionPart, this.notebookEditor, executionOrderLabel)), templateDisposables.add(scopedInstaService.createInstance(CollapsedCellOutput, this.notebookEditor, cellOutputCollapsedContainer)),"}
{"_id":"doc-en-vscode-e0f740a8821da58a80fe6a38b334bb6d490f0f62e7f16b2c5a63271dfac3dfc0","title":"","text":"public visible: boolean = false; constructor( readonly id: string, readonly name: string, readonly id: string, readonly name: string, readonly resource: URI, protected readonly logger: ILogger, protected readonly proxy: MainThreadOutputServiceShape, readonly extension: IExtensionDescription,"}
{"_id":"doc-en-vscode-97357e6470df583fdf40c8b2d849cfdc87e3ee70847e6ae6890b8a128a4f5a1e","title":"","text":"const file = this.extHostFileSystemInfo.extUri.joinPath(outputDir, `${this.namePool++}-${name.replace(/[/:*?\"<>|]/g, '')}.log`); const logger = this.loggerService.createLogger(file, { logLevel: 'always', donotRotate: true, donotUseFormatters: true, hidden: true }); const id = await this.proxy.$register(name, file, languageId, extension.identifier.value); return new ExtHostOutputChannel(id, name, logger, this.proxy, extension); return new ExtHostOutputChannel(id, name, file, logger, this.proxy, extension); } private async doCreateLogOutputChannel(name: string, logLevel: LogLevel | undefined, extension: IExtensionDescription): Promise {"}
{"_id":"doc-en-vscode-a51e142b15659505bddfee89397d0d1abd0b1c57c597ddcb78e72e3f1a3b7bb6","title":"","text":"const file = this.extHostFileSystemInfo.extUri.joinPath(extensionLogDir, `${fileName}.log`); const id = `${extension.identifier.value}.${fileName}`; const logger = this.loggerService.createLogger(file, { id, name, logLevel, extensionId: extension.identifier.value }); return new ExtHostLogOutputChannel(id, name, logger, this.proxy, extension); return new ExtHostLogOutputChannel(id, name, file, logger, this.proxy, extension); } private createExtensionLogDirectory(extension: IExtensionDescription): Thenable {"}
{"_id":"doc-en-vscode-b550008d1ef75f694ad3e5f65175fa942233a7ed0de3af16b4ccfd98bd186314","title":"","text":"throw new Error('Channel has been closed'); } }; const that = this; return { get name(): string { return name; }, append(value: string): void {"}
{"_id":"doc-en-vscode-33938a84456817fe32ef4db47cff92c7b9d8f0961bc07898629a1e572af0075a","title":"","text":"}, dispose(): void { disposed = true; channelPromise.then(channel => channel.dispose()); channelPromise.then(channel => { that.channels.delete(channel.id); that.loggerService.deregisterLogger(channel.resource); channel.dispose(); }); } }; }"}
{"_id":"doc-en-vscode-3a93c58d878aa97c414ffc509cf77d0b7bea550a74655cebdcf0291c3db46504","title":"","text":"onDidChangeLogLevel.fire(newLogLevel); } channelPromise.then(channel => { disposables.add(channel); if (channel.logLevel !== logLevel) { setLogLevel(channel.logLevel); } disposables.add(channel.onDidChangeLogLevel(e => setLogLevel(e))); }); const outputChannel = this.createExtHostOutputChannel(name, channelPromise); return { ...this.createExtHostOutputChannel(name, channelPromise), ...outputChannel, get logLevel() { return logLevel; }, onDidChangeLogLevel: onDidChangeLogLevel.event, trace(value: string, ...args: any[]): void {"}
{"_id":"doc-en-vscode-870f284209f04d9f102d291df0b0dd2d00e25f32a3624a205ab16a7dd2d44c7c","title":"","text":"}, dispose(): void { disposables.dispose(); outputChannel.dispose(); } }; }"}
{"_id":"doc-en-vscode-bfc92911a5ff41051ee59a8d32703c6d229eb5b758fb0ffc52852b441c10f97e","title":"","text":"public getEditOperations(model: ITextModel, builder: IEditOperationBuilder): void { const getLanguageId = () => { return model.getLanguageId(); }; const getLanguageIdAtPosition = (lineNumber: number, column: number) => { return model.getLanguageIdAtPosition(lineNumber, column); }; const modelLineCount = model.getLineCount(); if (this._isMovingDown && this._selection.endLineNumber === modelLineCount) {"}
{"_id":"doc-en-vscode-9a74962cf0c0f876b5dca169787e7dab8bba8c5bc8649aada33159daa1bc13d0","title":"","text":"const { tabSize, indentSize, insertSpaces } = model.getOptions(); const indentConverter = this.buildIndentConverter(tabSize, indentSize, insertSpaces); const virtualModel: IVirtualModel = { tokenization: { getLineTokens: (lineNumber: number) => { return model.tokenization.getLineTokens(lineNumber); }, getLanguageId: () => { return model.getLanguageId(); }, getLanguageIdAtPosition: (lineNumber: number, column: number) => { return model.getLanguageIdAtPosition(lineNumber, column); }, }, getLineContent: null as unknown as (lineNumber: number) => string, }; if (s.startLineNumber === s.endLineNumber && model.getLineMaxColumn(s.startLineNumber) === 1) { // Current line is empty"}
{"_id":"doc-en-vscode-2fb39690cf65d2ecadc3966dc105f68f69090f1b854fa6dd39f62a4576a9e49a","title":"","text":"insertingText = newIndentation + this.trimStart(movingLineText); } else { // no enter rule matches, let's check indentatin rules then. virtualModel.getLineContent = (lineNumber: number) => { if (lineNumber === s.startLineNumber) { return model.getLineContent(movingLineNumber); } else { return model.getLineContent(lineNumber); } const virtualModel: IVirtualModel = { tokenization: { getLineTokens: (lineNumber: number) => { if (lineNumber === s.startLineNumber) { return model.tokenization.getLineTokens(movingLineNumber); } else { return model.tokenization.getLineTokens(lineNumber); } }, getLanguageId, getLanguageIdAtPosition, }, getLineContent: (lineNumber: number) => { if (lineNumber === s.startLineNumber) { return model.getLineContent(movingLineNumber); } else { return model.getLineContent(lineNumber); } }, }; const indentOfMovingLine = getGoodIndentForLine( this._autoIndent,"}
{"_id":"doc-en-vscode-5b6dba97109038589b558b1e29a15746ab1a15b1fac8968dcc55b0fb33e57b79","title":"","text":"} } else { // it doesn't match onEnter rules, let's check indentation rules then. virtualModel.getLineContent = (lineNumber: number) => { if (lineNumber === s.startLineNumber) { return insertingText; } else if (lineNumber >= s.startLineNumber + 1 && lineNumber <= s.endLineNumber + 1) { return model.getLineContent(lineNumber - 1); } else { return model.getLineContent(lineNumber); } const virtualModel: IVirtualModel = { tokenization: { getLineTokens: (lineNumber: number) => { if (lineNumber === s.startLineNumber) { return model.tokenization.getLineTokens(movingLineNumber); } else if (lineNumber >= s.startLineNumber + 1 && lineNumber <= s.endLineNumber + 1) { return model.tokenization.getLineTokens(lineNumber - 1); } else { return model.tokenization.getLineTokens(lineNumber); } }, getLanguageId, getLanguageIdAtPosition, }, getLineContent: (lineNumber: number) => { if (lineNumber === s.startLineNumber) { return insertingText; } else if (lineNumber >= s.startLineNumber + 1 && lineNumber <= s.endLineNumber + 1) { return model.getLineContent(lineNumber - 1); } else { return model.getLineContent(lineNumber); } }, }; const newIndentatOfMovingBlock = getGoodIndentForLine("}
{"_id":"doc-en-vscode-a97e0d866d0bc54564c864aa796bb67010451dddea5ae7ba4618b735097e5134","title":"","text":"builder.addEditOperation(new Range(s.endLineNumber, model.getLineMaxColumn(s.endLineNumber), s.endLineNumber, model.getLineMaxColumn(s.endLineNumber)), 'n' + movingLineText); if (this.shouldAutoIndent(model, s)) { virtualModel.getLineContent = (lineNumber: number) => { if (lineNumber === movingLineNumber) { return model.getLineContent(s.startLineNumber); } else { return model.getLineContent(lineNumber); } const virtualModel: IVirtualModel = { tokenization: { getLineTokens: (lineNumber: number) => { if (lineNumber === movingLineNumber) { return model.tokenization.getLineTokens(s.startLineNumber); } else { return model.tokenization.getLineTokens(lineNumber); } }, getLanguageId, getLanguageIdAtPosition, }, getLineContent: (lineNumber: number) => { if (lineNumber === movingLineNumber) { return model.getLineContent(s.startLineNumber); } else { return model.getLineContent(lineNumber); } }, }; const ret = this.matchEnterRule(model, indentConverter, tabSize, s.startLineNumber, s.startLineNumber - 2);"}
{"_id":"doc-en-vscode-81e6cd8a097f8e51d18aa98c2735b5a0942f2f2a35872dd9ce85c5f54a627bed","title":"","text":"'enumItemLabels': languagesSorted.map(key => languages[key].name) }, [AccessibilityVoiceSettingId.AutoSynthesize]: { 'type': 'boolean', 'type': 'string', 'enum': ['on', 'off', 'auto'], 'enumDescriptions': [ localize('accessibility.voice.autoSynthesize.on', \"Enable the feature. When a screen reader is enabled, note that this will disable aria updates.\"), localize('accessibility.voice.autoSynthesize.off', \"Disable the feature.\"), localize('accessibility.voice.autoSynthesize.auto', \"When a screen reader is detected, disable the feature. Otherwise, enable the feature.\") ], 'markdownDescription': localize('autoSynthesize', \"Whether a textual response should automatically be read out aloud when speech was used as input. For example in a chat session, a response is automatically synthesized when voice was used as chat request.\"), 'default': this.productService.quality !== 'stable', // TODO@bpasero decide on a default 'default': this.productService.quality !== 'stable' ? 'auto' : 'off', // TODO@bpasero decide on a default 'tags': ['accessibility'] } }"}
{"_id":"doc-en-vscode-2edf4b29ea81fc4a810c2341584a616e926d703e4b09134f8180cad02158c837","title":"","text":"Registry.as(WorkbenchExtensions.ConfigurationMigration) .registerConfigurationMigrations([{ key: AccessibilityVoiceSettingId.AutoSynthesize, migrateFn: (value: boolean) => { let newValue: string | undefined; if (value === true) { newValue = 'on'; } else if (value === false) { newValue = 'off'; } return [ [AccessibilityVoiceSettingId.AutoSynthesize, { value: newValue }], ]; } }]); Registry.as(WorkbenchExtensions.ConfigurationMigration) .registerConfigurationMigrations([{ key: 'accessibility.signals.chatResponsePending', migrateFn: (value, accessor) => { return ["}
{"_id":"doc-en-vscode-5b9f88bd22879d96de3dea71d56ad6439169314015d6dafbcf99b1e0e7c2b191","title":"","text":"import { IChatResponseViewModel } from 'vs/workbench/contrib/chat/common/chatViewModel'; import { renderStringAsPlaintext } from 'vs/base/browser/markdownRenderer'; import { MarkdownString } from 'vs/base/common/htmlContent'; import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; import { AccessibilityVoiceSettingId } from 'vs/workbench/contrib/accessibility/browser/accessibilityConfiguration'; const CHAT_RESPONSE_PENDING_ALLOWANCE_MS = 4000; export class ChatAccessibilityService extends Disposable implements IChatAccessibilityService {"}
{"_id":"doc-en-vscode-88e5885f7a2b6511022c6fed66e58b581028a39dc97b10c22726847153c0f368","title":"","text":"private _requestId: number = 0; constructor(@IAccessibilitySignalService private readonly _accessibilitySignalService: IAccessibilitySignalService, @IInstantiationService private readonly _instantiationService: IInstantiationService) { constructor( @IAccessibilitySignalService private readonly _accessibilitySignalService: IAccessibilitySignalService, @IInstantiationService private readonly _instantiationService: IInstantiationService, @IConfigurationService private readonly _configurationService: IConfigurationService ) { super(); } acceptRequest(): number {"}
{"_id":"doc-en-vscode-bde1951d6d35d65e575e2004a89fc814892b05161c85b07580a21c6ea435cf55","title":"","text":"} const errorDetails = isPanelChat && response.errorDetails ? ` ${response.errorDetails.message}` : ''; const plainTextResponse = renderStringAsPlaintext(new MarkdownString(responseContent)); status(plainTextResponse + errorDetails); if (this._configurationService.getValue(AccessibilityVoiceSettingId.AutoSynthesize) !== 'on') { status(plainTextResponse + errorDetails); } } }"}
{"_id":"doc-en-vscode-bc429f7faf4dbc58adac8feb3d2d54925f825cc52417c687cccf846bff881a4e","title":"","text":"if (!response) { return; } if ( !this.accessibilityService.isScreenReaderOptimized() && // do not auto synthesize when screen reader is active this.configurationService.getValue(AccessibilityVoiceSettingId.AutoSynthesize) === true ) { const autoSynthesize = this.configurationService.getValue<'on' | 'off' | 'auto'>(AccessibilityVoiceSettingId.AutoSynthesize); if (autoSynthesize === 'on' || autoSynthesize === 'auto' && !this.accessibilityService.isScreenReaderOptimized()) { let context: IVoiceChatSessionController | 'focused'; if (controller.context === 'inline') { // TODO@bpasero this is ugly, but the lightweight inline chat turns into"}
{"_id":"doc-en-vscode-1a17b20d1893f83e03c8bd39c43f8483beeef13404fb5b535672b63df9c69394","title":"","text":"throw new Error(nls.localize('restartCode', \"Please restart VS Code before reinstalling {0}.\", this.manifest.displayName || this.manifest.name)); } } } else { // Remove the extension with same version if it is already uninstalled. // Installing a VSIX extension shall replace the existing extension always. const existingWithSameVersion = await this.unsetIfUninstalled(this.extensionKey); if (existingWithSameVersion) { try { await this.extensionsScanner.removeExtension(existingWithSameVersion, 'existing'); } catch (e) { throw new Error(nls.localize('restartCode', \"Please restart VS Code before reinstalling {0}.\", this.manifest.displayName || this.manifest.name)); } } // Remove the extension with same version if it is already uninstalled. // Installing a VSIX extension shall replace the existing extension always. const existingWithSameVersion = await this.unsetIfUninstalled(this.extensionKey); if (existingWithSameVersion) { try { await this.extensionsScanner.removeExtension(existingWithSameVersion, 'existing'); } catch (e) { throw new Error(nls.localize('restartCode', \"Please restart VS Code before reinstalling {0}.\", this.manifest.displayName || this.manifest.name)); } }"}
{"_id":"doc-en-vscode-e2d9e432d2ab4340239637b83f2b9e3341929cbf0aa5b5bc046ff5531f602be4","title":"","text":" FROM mcr.microsoft.com/devcontainers/typescript-node:18-bookworm FROM mcr.microsoft.com/devcontainers/typescript-node:20-bookworm ADD install-vscode.sh /root/ RUN /root/install-vscode.sh"}
{"_id":"doc-en-vscode-8308148dd8425b64ba1d1bb130a3704426a7cf6a5733ef622433e5a5c5a8bd80","title":"","text":"if (items && items.length > 0) { this.followupsDisposables.add(this.instantiationService.createInstance, ChatFollowups>(ChatFollowups, this.followupsContainer, items, this.location, undefined, followup => this._onDidAcceptFollowup.fire({ followup, response }))); } this._onDidChangeHeight.fire(); } get contentHeight(): number {"}
{"_id":"doc-en-vscode-4649301b97e22cb04dab12bff36d55f765e25ab9a4a045cc165e92507a802c9e","title":"","text":"this._store.add(this._widget); this._widget.render(this._inputContainer); this._widget.setModel(this._defaultChatModel, {}); this._store.add(this._widget.inputEditor.onDidContentSizeChange(() => _editor.layoutContentWidget(this))); this._store.add(this._widget.onDidChangeContentHeight(() => _editor.layoutContentWidget(this))); this._domNode.tabIndex = -1; this._domNode.className = 'inline-chat-content-widget interactive-session';"}
{"_id":"doc-en-vscode-1386dca9c6f63db62a17f17617fc52ae3dcb2786110813c4f51abbb183001e5f","title":"","text":"disturl \"https://electronjs.org/headers\" target \"29.4.0\" ms_build_id \"9593362\" ms_build_id \"9728852\" runtime \"electron\" build_from_source \"true\""}
{"_id":"doc-en-vscode-6c08daa9d042539e50840af151cdd8846ce9369a2a3cbbe925a9684887bb3cd7","title":"","text":"{ \"name\": \"code-oss-dev\", \"version\": \"1.91.0\", \"distro\": \"170beceb9849568b8f7159757bc3fc3964af1986\", \"distro\": \"361fc45f5932b161db29080d5b19bc5afb9baae6\", \"author\": { \"name\": \"Microsoft Corporation\" },"}
{"_id":"doc-en-vscode-5305d7a1167035fba4c05f3910bd8e6a9c79e7670ac1c9d97906747b2a420093","title":"","text":"wait_for_async_execs exec \"$@\" \"--no-sandbox\" exec \"$@\" "}
{"_id":"doc-en-vscode-c0b9951132699e3aa0094718474436ea7b4ad5560f67e0ee66cad43b3528acf0","title":"","text":"apps: @@NAME@@: command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --no-sandbox common-id: @@NAME@@.desktop url-handler: command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --open-url command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --open-url --no-sandbox "}
{"_id":"doc-en-vscode-77e13d2e4fa5fade2d733ca9ddb002da6f4b8a4e8713114526b4687515174fa5","title":"","text":"} set statusBarCommands(statusBarCommands: vscode.Command[] | undefined) { this.logService.info('ExtHostSourceControl#statusBarCommands', (statusBarCommands ?? []).map(c => c.command).join(', ')); this.logService.trace('ExtHostSourceControl#statusBarCommands', (statusBarCommands ?? []).map(c => c.command).join(', ')); if (this._statusBarCommands && statusBarCommands && commandListEquals(this._statusBarCommands, statusBarCommands)) { this.logService.info('ExtHostSourceControl#statusBarCommands are equal'); this.logService.trace('ExtHostSourceControl#statusBarCommands are equal'); return; }"}
{"_id":"doc-en-vscode-96df99395cf2ee639ce243862ad62c6369731bf6f182be79d6bc2d6ef5b5bbe7","title":"","text":"const visibleRanges = editor.getVisibleRanges(); if (visibleRanges.length > 0) { visiblePosition = visibleRanges[0].getStartPosition(); const cursorPos = editor.getPosition(); if (cursorPos) { const isVisible = visibleRanges.some(range => range.containsPosition(cursorPos)); if (isVisible) { // Keep cursor pos fixed if it is visible visiblePosition = cursorPos; } } const visiblePositionScrollTop = editor.getTopForPosition(visiblePosition.lineNumber, visiblePosition.column); visiblePositionScrollDelta = editor.getScrollTop() - visiblePositionScrollTop; }"}
{"_id":"doc-en-vscode-5e4dd4e6f1b02b37bac327ca8603792f8ce9892a85ca8fa04541c6279359912d","title":"","text":"keybinding: { weight: KeybindingWeight.WorkbenchContrib, primary: KeyMod.CtrlCmd | KeyCode.Escape, win: { primary: KeyMod.Alt | KeyCode.Backspace }, } }); }"}
{"_id":"doc-en-vscode-bbffda69a2b1c62421df43fd7237f8d3f0374d386e1482d417476287a2cf5dda","title":"","text":"padding-right: 4px; } .monaco-hover .hover-row.status-bar .actions .action-container a { color: var(--vscode-textLink-foreground); text-decoration: var(--text-link-decoration); } .monaco-hover .markdown-hover .hover-contents .codicon { color: inherit; font-size: inherit;"}
{"_id":"doc-en-vscode-c492f00e5ad1985c0decc12e97ac5d9cd61444b55382411808b9cec0c6b08cb6","title":"","text":".monaco-workbench .hover-language-status > .element .right .monaco-link { margin: auto 0; white-space: nowrap; text-decoration: var(--text-link-decoration); } .monaco-workbench .hover-language-status > .element .right .monaco-action-bar:not(:first-child) {"}
{"_id":"doc-en-vscode-57ce381c1b4f1db515c0ac564b67079894ac728bb3ceff328474b37ad90a14c5","title":"","text":"this._viewsService.openView(Markers.MARKERS_VIEW_ID); } else if (task.command.presentation && (task.command.presentation.focus || task.command.presentation.reveal === RevealKind.Always)) { this._terminalService.setActiveInstance(terminal); await this._terminalService.revealActiveTerminal(); await this._terminalService.revealTerminal(terminal); if (task.command.presentation.focus) { this._terminalService.focusActiveInstance(); this._terminalService.focusInstance(terminal); } } this._activeTasks[task.getMapKey()].terminal = terminal;"}
{"_id":"doc-en-vscode-7ee19c42f0dbb9269f1198d9db02bdf9be7d7e9aead1091b7b2c22ef11a1caaa","title":"","text":"getReconnectedTerminals(reconnectionOwner: string): ITerminalInstance[] | undefined; getActiveOrCreateInstance(options?: { acceptsInput?: boolean }): Promise; revealTerminal(source: ITerminalInstance, preserveFocus?: boolean): Promise; revealActiveTerminal(preserveFocus?: boolean): Promise; moveToEditor(source: ITerminalInstance, group?: GroupIdentifier | SIDE_GROUP_TYPE | ACTIVE_GROUP_TYPE | AUX_WINDOW_GROUP_TYPE): void; moveIntoNewEditor(source: ITerminalInstance): void;"}
{"_id":"doc-en-vscode-c521da915954447a84ad1dbbbb8767d52f86c5a29061a06fe1e7c578be1d1a43","title":"","text":"setActiveInstance(instance: ITerminalInstance): void; /** * Reveal and focus the instance, regardless of its location. */ focusInstance(instance: ITerminalInstance): void; /** * Reveal and focus the active instance, regardless of its location. */ focusActiveInstance(): Promise;"}
{"_id":"doc-en-vscode-2a1b1822168796cce9747140084f8b5445be16f26fd966b385a8dce38b90bd24","title":"","text":"this._onDidChangeActiveInstance.fire(this.activeInstance); } async focusInstance(instance: ITerminalInstance): Promise { return instance.focusWhenReady(true); } async focusActiveInstance(): Promise { return this.activeInstance?.focusWhenReady(true); }"}
{"_id":"doc-en-vscode-9da05d7ad88187ac74609dde96cbfe61f21210458f4364ec3ec4001a948008b0","title":"","text":"pane?.terminalTabbedView?.focusHover(); } async focusInstance(_: ITerminalInstance): Promise { return this.showPanel(true); } async focusActiveInstance(): Promise { return this.showPanel(true); }"}
{"_id":"doc-en-vscode-5625206abb319ba7f4769a7324b5a6ef5dabc85011db6d4b74e60246c0eae61c","title":"","text":"} } async focusInstance(instance: ITerminalInstance): Promise { if (instance.target === TerminalLocation.Editor) { return this._terminalEditorService.focusInstance(instance); } return this._terminalGroupService.focusInstance(instance); } async focusActiveInstance(): Promise { if (!this._activeInstance) { return; } if (this._activeInstance.target === TerminalLocation.Editor) { return this._terminalEditorService.focusActiveInstance(); } return this._terminalGroupService.focusActiveInstance(); return this.focusInstance(this._activeInstance); } async createContributedTerminalProfile(extensionIdentifier: string, id: string, options: ICreateContributedTerminalProfileOptions): Promise {"}
{"_id":"doc-en-vscode-953443979ad98703d1f6043b5f3cae25e0c7c4cb784add5a2d2a7a38052934a0","title":"","text":"return instance; } async revealTerminal(source: ITerminalInstance, preserveFocus?: boolean): Promise { if (source.target === TerminalLocation.Editor) { await this._terminalEditorService.revealActiveEditor(preserveFocus); } else { await this._terminalGroupService.showPanel(); } } async revealActiveTerminal(preserveFocus?: boolean): Promise { const instance = this.activeInstance; if (!instance) { return; } if (instance.target === TerminalLocation.Editor) { await this._terminalEditorService.revealActiveEditor(preserveFocus); } else { await this._terminalGroupService.showPanel(); } await this.revealTerminal(instance, preserveFocus); } setEditable(instance: ITerminalInstance, data?: IEditableData | null): void {"}
{"_id":"doc-en-vscode-1c6ea06faab134380cdf48949fbe97fed03bcde22a60d15a8122b669f2ff239e","title":"","text":"getInputFromResource(resource: URI): TerminalEditorInput { throw new Error('Method not implemented.'); } setActiveInstance(instance: ITerminalInstance): void { throw new Error('Method not implemented.'); } focusActiveInstance(): Promise { throw new Error('Method not implemented.'); } focusInstance(instance: ITerminalInstance): void { throw new Error('Method not implemented.'); } getInstanceFromResource(resource: URI | undefined): ITerminalInstance | undefined { throw new Error('Method not implemented.'); } focusFindWidget(): void { throw new Error('Method not implemented.'); } hideFindWidget(): void { throw new Error('Method not implemented.'); }"}
{"_id":"doc-en-vscode-c6f3b623eb9ef8891fcb1905f169b538501dd289979a4969957a28d95b8d29bf","title":"","text":"focusHover(): void { throw new Error('Method not implemented.'); } setActiveInstance(instance: ITerminalInstance): void { throw new Error('Method not implemented.'); } focusActiveInstance(): Promise { throw new Error('Method not implemented.'); } focusInstance(instance: ITerminalInstance): void { throw new Error('Method not implemented.'); } getInstanceFromResource(resource: URI | undefined): ITerminalInstance | undefined { throw new Error('Method not implemented.'); } focusFindWidget(): void { throw new Error('Method not implemented.'); } hideFindWidget(): void { throw new Error('Method not implemented.'); }"}
{"_id":"doc-en-vscode-6281fdea632a51d8166ea2ab047afe38e4859c173ec52445c4d90fc83bc458a1","title":"","text":"// no parsed args, try handle active editor const editor = getEditorFromArgsOrActivePane(accessor); if (editor) { const selectedCellRange: ICellRange[] = editor.getSelections().length === 0 ? [editor.getFocus()] : editor.getSelections(); telemetryService.publicLog2('workbenchActionExecuted', { id: this.desc.id, from: from }); return this.runWithContext(accessor, { ui: false, notebookEditor: editor, selectedCells: cellRangeToViewCells(editor, editor.getSelections()) selectedCells: cellRangeToViewCells(editor, selectedCellRange) }); } }"}
{"_id":"doc-en-vscode-52e8355c5e208c20009eee8ba2fe08c1f6f223b9ad814e95e87b5f22b3fd2db1","title":"","text":"keybinding: { when: ContextKeyExpr.and( NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_CELL_LIST_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey), NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE ContextKeyExpr.not(InputFocusedContextKey), ), primary: KeyMod.CtrlCmd | KeyCode.Slash, weight: KeybindingWeight.WorkbenchContrib"}
{"_id":"doc-en-vscode-91e4bc860b02df3b2c693a0742723a2150a9a4531ceeb14ef3d998d1fd7c78e2","title":"","text":"} }); selectedCellEditors.forEach(editor => { if (!editor.hasModel()) { return;"}
{"_id":"doc-en-vscode-c1d681417a6b7d18f90dcdb343a18e9c95f21c1a6d556c70d66e7e5fd7e1a402","title":"","text":"const modelOptions = model.getOptions(); const commentsOptions = editor.getOption(EditorOption.comments); const selection = editor.getSelection(); commands.push(new LineCommentCommand( languageConfigurationService, new Selection(1, 1, model.getLineCount(), model.getLineMaxColumn(model.getLineCount())),"}
{"_id":"doc-en-vscode-ed281793472dca3e5061bae884b87dc1edb6ebf5f95e5dea317eb02de779d4be","title":"","text":"editor.pushUndoStop(); editor.executeCommands(COMMENT_SELECTED_CELLS_ID, commands); editor.pushUndoStop(); editor.setSelection(selection); }); }"}
{"_id":"doc-en-vscode-eb4b4cd3981d441848bcb6b48bcd555cf81a858b221c5170ad7116e03a82ff35","title":"","text":"} registerThemingParticipant((theme, collector) => { const scope = '.monaco-editor .glyph-margin-widgets, .monaco-workbench .debug-breakpoints, .monaco-workbench .disassembly-view'; const debugIconBreakpointColor = theme.getColor(debugIconBreakpointForeground); if (debugIconBreakpointColor) { collector.addRule(` ${icons.allBreakpoints.map(b => `.monaco-workbench ${ThemeIcon.asCSSSelector(b.regular)}`).join(',n\t\t')}, .monaco-workbench ${ThemeIcon.asCSSSelector(icons.debugBreakpointUnsupported)}, .monaco-workbench ${ThemeIcon.asCSSSelector(icons.debugBreakpointHint)}:not([class*='codicon-debug-breakpoint']):not([class*='codicon-debug-stackframe']), .monaco-workbench ${ThemeIcon.asCSSSelector(icons.breakpoint.regular)}${ThemeIcon.asCSSSelector(icons.debugStackframeFocused)}::after, .monaco-workbench ${ThemeIcon.asCSSSelector(icons.breakpoint.regular)}${ThemeIcon.asCSSSelector(icons.debugStackframe)}::after { color: ${debugIconBreakpointColor} !important; } `); collector.addRule(`${scope} { ${icons.allBreakpoints.map(b => `${ThemeIcon.asCSSSelector(b.regular)}`).join(',n\t\t')}, ${ThemeIcon.asCSSSelector(icons.debugBreakpointUnsupported)}, ${ThemeIcon.asCSSSelector(icons.debugBreakpointHint)}:not([class*='codicon-debug-breakpoint']):not([class*='codicon-debug-stackframe']), ${ThemeIcon.asCSSSelector(icons.breakpoint.regular)}${ThemeIcon.asCSSSelector(icons.debugStackframeFocused)}::after, ${ThemeIcon.asCSSSelector(icons.breakpoint.regular)}${ThemeIcon.asCSSSelector(icons.debugStackframe)}::after { color: ${debugIconBreakpointColor} !important; } }`); collector.addRule(` .monaco-workbench ${ThemeIcon.asCSSSelector(icons.breakpoint.pending)} { color: ${debugIconBreakpointColor} !important; font-size: 12px !important; } `); collector.addRule(`${scope} { ${ThemeIcon.asCSSSelector(icons.breakpoint.pending)} { color: ${debugIconBreakpointColor} !important; font-size: 12px !important; } }`); } const debugIconBreakpointDisabledColor = theme.getColor(debugIconBreakpointDisabledForeground); if (debugIconBreakpointDisabledColor) { collector.addRule(` ${icons.allBreakpoints.map(b => `.monaco-workbench ${ThemeIcon.asCSSSelector(b.disabled)}`).join(',n\t\t')} { color: ${debugIconBreakpointDisabledColor}; } `); collector.addRule(`${scope} { ${icons.allBreakpoints.map(b => ThemeIcon.asCSSSelector(b.disabled)).join(',n\t\t')} { color: ${debugIconBreakpointDisabledColor}; } }`); } const debugIconBreakpointUnverifiedColor = theme.getColor(debugIconBreakpointUnverifiedForeground); if (debugIconBreakpointUnverifiedColor) { collector.addRule(` ${icons.allBreakpoints.map(b => `.monaco-workbench ${ThemeIcon.asCSSSelector(b.unverified)}`).join(',n\t\t')} { color: ${debugIconBreakpointUnverifiedColor}; } `); collector.addRule(`${scope} { ${icons.allBreakpoints.map(b => ThemeIcon.asCSSSelector(b.unverified)).join(',n\t\t')} { color: ${debugIconBreakpointUnverifiedColor}; } }`); } const debugIconBreakpointCurrentStackframeForegroundColor = theme.getColor(debugIconBreakpointCurrentStackframeForeground); if (debugIconBreakpointCurrentStackframeForegroundColor) { collector.addRule(` .monaco-workbench ${ThemeIcon.asCSSSelector(icons.debugStackframe)}, .monaco-editor .debug-top-stack-frame-column { color: ${debugIconBreakpointCurrentStackframeForegroundColor} !important; } ${scope} { ${ThemeIcon.asCSSSelector(icons.debugStackframe)} { color: ${debugIconBreakpointCurrentStackframeForegroundColor} !important; } } `); } const debugIconBreakpointStackframeFocusedColor = theme.getColor(debugIconBreakpointStackframeForeground); if (debugIconBreakpointStackframeFocusedColor) { collector.addRule(` .monaco-workbench ${ThemeIcon.asCSSSelector(icons.debugStackframeFocused)} { color: ${debugIconBreakpointStackframeFocusedColor} !important; } `); collector.addRule(`${scope} { ${ThemeIcon.asCSSSelector(icons.debugStackframeFocused)} { color: ${debugIconBreakpointStackframeFocusedColor} !important; } }`); } });"}
{"_id":"doc-en-vscode-85675d72db396c770295750e02e8492987166a61a19820a9224c6705fbd4690f","title":"","text":"} )) as WorkbenchTable; this._disassembledInstructions.domNode.classList.add('disassembly-view'); if (this.focusedInstructionReference) { this.reloadDisassembly(this.focusedInstructionReference, 0); }"}
{"_id":"doc-en-vscode-d2c403efb2c41c3888f53e8d779cd46bb2bfe6a8ef20f0a41744cebabc80544b","title":"","text":"// align from the bottom so that it lines up with instruction when source code is present. container.style.alignSelf = 'flex-end'; const icon = append(container, $('.disassembly-view')); icon.classList.add('codicon'); const icon = append(container, $('.codicon')); icon.style.display = 'flex'; icon.style.alignItems = 'center'; icon.style.justifyContent = 'center';"}
{"_id":"doc-en-vscode-96f3162e73e36169b992f7d56955a4b4e367cbf297456b31386056a334948c7b","title":"","text":"export const editorBracketHighlightingForeground5 = registerColor('editorBracketHighlight.foreground5', '#00000000', nls.localize('editorBracketHighlightForeground5', 'Foreground color of brackets (5). Requires enabling bracket pair colorization.')); export const editorBracketHighlightingForeground6 = registerColor('editorBracketHighlight.foreground6', '#00000000', nls.localize('editorBracketHighlightForeground6', 'Foreground color of brackets (6). Requires enabling bracket pair colorization.')); export const editorBracketHighlightingUnexpectedBracketForeground = registerColor('editorBracketHighlight.unexpectedBracket.foreground', { dark: new Color(new RGBA(255, 18, 18, 0.8)), light: new Color(new RGBA(255, 18, 18, 0.8)), hcDark: new Color(new RGBA(255, 50, 50, 1)), hcLight: '' }, nls.localize('editorBracketHighlightUnexpectedBracketForeground', 'Foreground color of unexpected brackets.')); export const editorBracketHighlightingUnexpectedBracketForeground = registerColor('editorBracketHighlight.unexpectedBracket.foreground', { dark: new Color(new RGBA(255, 18, 18, 0.8)), light: new Color(new RGBA(255, 18, 18, 0.8)), hcDark: 'new Color(new RGBA(255, 50, 50, 1))', hcLight: '#B5200D' }, nls.localize('editorBracketHighlightUnexpectedBracketForeground', 'Foreground color of unexpected brackets.')); export const editorBracketPairGuideBackground1 = registerColor('editorBracketPairGuide.background1', '#00000000', nls.localize('editorBracketPairGuide.background1', 'Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.')); export const editorBracketPairGuideBackground2 = registerColor('editorBracketPairGuide.background2', '#00000000', nls.localize('editorBracketPairGuide.background2', 'Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.'));"}
{"_id":"doc-en-vscode-4d6a41b1e0902c0b99d9f047e8f9273d146af938e9742191bf9964516e97f96e","title":"","text":"} override dispose() { // The editor isn't disposed yet, it can be re-used. // However the model can be disposed before the editor & that causes issues. if (this._editor) { this._editor.setModel(null); } if (this._editor && this._editorViewStateChanged) { this.cell.saveSpirceEditorViewState(this._editor.saveViewState()); }"}
{"_id":"doc-en-vscode-71a544e78afb24fa9333a608414a6c6e9cc5ed8fca255db7fb3df39a2d0906b5","title":"","text":"return $('tr', undefined, ...row.map(rowData => { if (typeof rowData === 'string') { return $('td', undefined, rowData); return $('td', undefined, $('p', undefined, rowData)); } const data = Array.isArray(rowData) ? rowData : [rowData]; return $('td', undefined, ...data.map(item => {"}
{"_id":"doc-en-vscode-edb5fd81a86935ef95c49caaafa27a524280a996a57b16a6f7ff3880d759de77","title":"","text":"alias: { './node/authServer': path.resolve(__dirname, 'src/browser/authServer'), './node/buffer': path.resolve(__dirname, 'src/browser/buffer'), './node/fetch': path.resolve(__dirname, 'src/browser/fetch'), './node/authProvider': path.resolve(__dirname, 'src/browser/authProvider'), } }"}
{"_id":"doc-en-vscode-27c68f0c37d512c3c753902f1ba8515d410ab71fff849b6b56a4e32ecfc9f9e0","title":"","text":"import { BetterTokenStorage, IDidChangeInOtherWindowEvent } from './betterSecretStorage'; import { LoopbackAuthServer } from './node/authServer'; import { base64Decode } from './node/buffer'; import fetch from './node/fetch'; import { UriEventHandler } from './UriEventHandler'; import TelemetryReporter from '@vscode/extension-telemetry'; import { Environment } from '@azure/ms-rest-azure-env';"}
{"_id":"doc-en-vscode-cc2d5b53b7f698b1f57dd54116d44a60e7c4cc451141c5f3663205021fd9c6dd","title":"","text":"let result; let errorMessage: string | undefined; try { result = await fetch(endpoint, { result = await fetch(endpoint.toString(), { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': postData.length.toString() 'Content-Type': 'application/x-www-form-urlencoded' }, body: postData });"}
{"_id":"doc-en-vscode-aaefce4154fdd266ebb08cd95fe25bbe9ae0b47a1bd7790e953f8a0d9531a4f2","title":"","text":" /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ export default fetch; "}
{"_id":"doc-en-vscode-b2e8ae59e547ade7048dcd7efa993d34b734a3f50f5c7a6191bf27094680c5d0","title":"","text":" /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ let _fetch: typeof fetch; try { _fetch = require('electron').net.fetch; } catch { _fetch = fetch; } export default _fetch; "}
{"_id":"doc-en-vscode-68035118474e6ce46b24cf3606012e6df004d0d99a2cb8428ae27247bc623393","title":"","text":"this._versionId = this._textModel.getVersionId(); this._alternativeId = this._textModel.getAlternativeVersionId(); } this._textBufferHash = null; this._onDidChangeContent.fire('content'); }));"}
{"_id":"doc-en-vscode-83a3b7bc081b209c38b1c2aabae9f11079787fa9a7b0bd24330e75f3b9e25992","title":"","text":"import { $, append } from 'vs/base/browser/dom'; import { IHoverOptions, IManagedHover, IManagedHoverTooltipMarkdownString } from 'vs/base/browser/ui/hover/hover'; import { IHoverDelegate } from 'vs/base/browser/ui/hover/hoverDelegate'; import { createInstantHoverDelegate, getDefaultHoverDelegate } from 'vs/base/browser/ui/hover/hoverDelegateFactory'; import { getDefaultHoverDelegate } from 'vs/base/browser/ui/hover/hoverDelegateFactory'; import { IconLabel } from 'vs/base/browser/ui/iconLabel/iconLabel'; import { IIdentityProvider, IKeyboardNavigationLabelProvider, IListVirtualDelegate } from 'vs/base/browser/ui/list/list'; import { LabelFuzzyScore } from 'vs/base/browser/ui/tree/abstractTree';"}
{"_id":"doc-en-vscode-989d2aee038e313a32aa4b398e81a4fbf2d874549afbc7eb8d98562e99774f98","title":"","text":"templateData.labelContainer.textContent = ''; if (historyItem.labels) { const instantHoverDelegate = createInstantHoverDelegate(); templateData.elementDisposables.add(instantHoverDelegate); // Get lits of labels to render (current, remote, base) const labels = this.getLabels(node.element.repository);"}
{"_id":"doc-en-vscode-a8f0ccd73f291c8fadc0f7bb45ec01e50d515801848c09b1e1377ccb10c60f24","title":"","text":"if (label.icon && ThemeIcon.isThemeIcon(label.icon) && labels.includes(label.title)) { const icon = append(templateData.labelContainer, $('div.label')); icon.classList.add(...ThemeIcon.asClassNameArray(label.icon)); const hover = this.hoverService.setupManagedHover(instantHoverDelegate, icon, label.title); templateData.elementDisposables.add(hover); } } }"}
{"_id":"doc-en-vscode-84a4369d519f3ce987f5d1ea2181946d96ad3cbf1ee88d99134962a0de4e888a","title":"","text":"const editorGroupService = accessor.get(IEditorGroupsService); const newOrientation = (editorGroupService.orientation === GroupOrientation.VERTICAL) ? GroupOrientation.HORIZONTAL : GroupOrientation.VERTICAL; editorGroupService.setGroupOrientation(newOrientation); editorGroupService.activeGroup.focus(); } });"}
{"_id":"doc-en-vscode-4bc187cfdac26f453ab02295be392d1bfa4adc40afe1ae2b6bfc622ec76b1aee","title":"","text":"this._compositionRangeWithinEditor = newCompositionRangeWithinEditor; } this._emitTypeEvent(viewController, e); // TODO @aiday-mar calling write screen reader content so that the document selection is immediately set // remove the following when electron will be upgraded this._screenReaderSupport.writeScreenReaderContent(); })); this._register(editContextAddDisposableListener(this._editContext, 'compositionstart', (e) => { const position = this._context.viewModel.getPrimaryCursorState().modelState.position;"}
{"_id":"doc-en-vscode-7ddd1ae3b709b7d958f4c6304e1cba4eb8d3db7c65656a5715074f060fdd5c73","title":"","text":"} private _getScreenReaderContentState(): ScreenReaderContentState | undefined { // Make the screen reader content always be visible because of the bug and also set the selection // TODO @aiday-mar Ultimately uncomment this code when Electron will be upgraded // if (this._accessibilitySupport === AccessibilitySupport.Disabled) { // \treturn; // } const accessibilityPageSize = this._accessibilitySupport === AccessibilitySupport.Disabled ? 1 : this._accessibilityPageSize; if (this._accessibilitySupport === AccessibilitySupport.Disabled) { return; } const simpleModel: ISimpleModel = { getLineCount: (): number => { return this._context.viewModel.getLineCount();"}
{"_id":"doc-en-vscode-733db3a76381fabf1a0df7c698d7ac494b72916d4db79afc9b07960b68645efb","title":"","text":"return this._context.viewModel.modifyPosition(position, offset); } }; return PagedScreenReaderStrategy.fromEditorSelection(simpleModel, this._primarySelection, accessibilityPageSize, this._accessibilitySupport === AccessibilitySupport.Unknown); return PagedScreenReaderStrategy.fromEditorSelection(simpleModel, this._primarySelection, this._accessibilityPageSize, this._accessibilitySupport === AccessibilitySupport.Unknown); } private _setSelectionOfScreenReaderContent(selectionOffsetStart: number, selectionOffsetEnd: number): void {"}
{"_id":"doc-en-vscode-54907b24397244ce093d2621e0fd084f9dbe02a2e7aabbe1e7189edd96b4a8a6","title":"","text":"* Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { getActiveWindow } from '../../../../../base/browser/dom.js'; import { getActiveWindow, isHTMLElement } from '../../../../../base/browser/dom.js'; import { FastDomNode } from '../../../../../base/browser/fastDomNode.js'; import { AccessibilitySupport } from '../../../../../platform/accessibility/common/accessibility.js'; import { IKeybindingService } from '../../../../../platform/keybinding/common/keybinding.js';"}
{"_id":"doc-en-vscode-729f39c99f778dfe5fb0ac69f8ce79fd6133bbdc01e73f8c1c928295175e9e28","title":"","text":"if (!textContent) { return; } const focusedElement = getActiveWindow().document.activeElement; const range = new globalThis.Range(); range.setStart(textContent, selectionOffsetStart); range.setEnd(textContent, selectionOffsetEnd); activeDocumentSelection.removeAllRanges(); activeDocumentSelection.addRange(range); if (isHTMLElement(focusedElement)) { focusedElement.focus(); } } }"}
{"_id":"doc-en-vscode-6498a3a760d7d7cb4edeb46d4ff0ce70c0039f2116b193d4460b894be062a172","title":"","text":"} }; for (const breakpoint of this.model.getBreakpoints({ triggeredOnly: true })) { breakpoint.setSessionDidTrigger(session.getId(), false); } // For debug sessions spawned by test runs, cancel the test run and stop // the session, then start the test run again; tests have no notion of restarts. if (session.correlatedTestRun) {"}
{"_id":"doc-en-vscode-cd6b6f05fb68eb165df01506af13d96e8547c29f0a3e3e853634be4b8432ab81","title":"","text":"readonly pending: boolean; /** Marks that a session did trigger the breakpoint. */ setSessionDidTrigger(sessionId: string): void; setSessionDidTrigger(sessionId: string, didTrigger?: boolean): void; /** Gets whether the `triggeredBy` condition has been met in the given sesison ID. */ getSessionDidTrigger(sessionId: string): boolean;"}
{"_id":"doc-en-vscode-4cac9ad05bd4ace573f4cd18dd8c3d101f6e72df1a411aa1d52daa501986da30","title":"","text":"return `${resources.basenameOrAuthority(this.uri)} ${this.lineNumber}`; } public setSessionDidTrigger(sessionId: string): void { this.sessionsDidTrigger ??= new Set(); this.sessionsDidTrigger.add(sessionId); public setSessionDidTrigger(sessionId: string, didTrigger = true): void { if (didTrigger) { this.sessionsDidTrigger ??= new Set(); this.sessionsDidTrigger.add(sessionId); } else { this.sessionsDidTrigger?.delete(sessionId); } } public getSessionDidTrigger(sessionId: string): boolean {"}
{"_id":"doc-en-vscode-70778f4ebb42d109e69080436647867a5152fc66fc0867e57dd3924b13050cb0","title":"","text":"}, 0); }; const isEditableElement = (element: Element) => { return element.tagName.toLowerCase() === 'input' || element.tagName.toLowerCase() === 'textarea' || 'editContext' in element; }; // check if an input element is focused within the output element const checkOutputInputFocus = (e: FocusEvent) => { lastFocusedOutput = getOutputContainer(e);"}
{"_id":"doc-en-vscode-287b00d686e1213a25d614138be9c02e5c551aa3f12f45a8040c02799a292853","title":"","text":"JSON.parse(decodeURIComponent(\"${encodeURIComponent(JSON.stringify(ctx))}\")) )n//# sourceURL=notebookWebviewPreloads.jsn`; } export function isEditableElement(element: Element): boolean { return element.tagName.toLowerCase() === 'input' || element.tagName.toLowerCase() === 'textarea' || 'editContext' in element; } "}
{"_id":"doc-en-vscode-e4c7ca08586b35f56af7d1d78dd383354617d4c803589dcb9638e5ab56c50fd9","title":"","text":"viewController.emitKeyDown(standardKeyboardEvent); })); this._register(addDisposableListener(this.domNode.domNode, 'beforeinput', async (e) => { if (e.inputType === 'insertParagraph') { if (e.inputType === 'insertParagraph' || e.inputType === 'insertLineBreak') { this._onType(viewController, { text: 'n', replacePrevCharCnt: 0, replaceNextCharCnt: 0, positionDelta: 0 }); } }));"}