4e8ae2b28cb5cc932b86e1070569c4463565c37/server/out/vs/workbench/api/node/extensionHostProcess.js:116:13361)
at async aA.l (file:///home/ubuntu/.vscode-server/cli/servers/Stable-94e8ae2b28cb5cc932b86e1070569c4463565c37/server/out/vs/workbench/api/node/extensionHostProcess.js:116:12817)
2026-01-23 11:46:44.046 [error] [CopilotCLISession] Failed to fetch models: Error: Failed to get token for auth info
2026-01-23 11:46:44.047 [info] activationBlocker from 'languageModelAccess' took for 1639ms
2026-01-23 11:46:46.375 [warning] GitHub login failed
2026-01-23 11:46:46.376 [error] PermissiveAuthRequiredError: Permissive authentication is required
at CP.getAllSessions (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1219:27375)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async /home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:2359:6527
at async G4.$provideChatSessionItems (file:///home/ubuntu/.vscode-server/cli/servers/Stable-94e8ae2b28cb5cc932b86e1070569c4463565c37/server/out/vs/workbench/api/node/extensionHostProcess.js:144:61140)
2026-01-23 11:46:46.376 [error] PermissiveAuthRequiredError: Permissive authentication is required
at CP.getAllSessions (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1219:27375)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async /home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:2359:2095
2026-01-23 11:46:46.377 [info] copilot token chat_enabled: undefined, sku:
2026-01-23 11:46:46.377 [info] activationBlocker from 'conversationFeature' took for 3978ms
2026-01-23 11:46:47.486 [warning] GitHub login failed
2026-01-23 11:46:47.487 [error] PermissiveAuthRequiredError: Permissive authentication is required
at CP.getAllSessions (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1219:27375)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async /home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:2359:6527
at async G4.$provideChatSessionItems (file:///home/ubuntu/.vscode-server/cli/servers/Stable-94e8ae2b28cb5cc932b86e1070569c4463565c37/server/out/vs/workbench/api/node/extensionHostProcess.js:144:61140)
2026-01-23 11:46:47.489 [error] You are not signed in to GitHub. Please sign in to use Copilot.
2026-01-23 11:46:47.489 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token
2026-01-23 11:46:47.489 [error] Error: GitHubLoginFailed
at Zj._authShowWarnings (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1340:14359)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Zj.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1340:12194)
at async _ee.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1055:2402)
at async k$._getToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1218:5614)
at async r (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1218:5078)
2026-01-23 11:46:47.489 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token
2026-01-23 11:46:47.489 [error] Error: GitHubLoginFailed
at Zj._authShowWarnings (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1340:14359)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Zj.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1340:12194)
at async _ee.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1055:2402)
at async k$._getToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1218:5614)
at async k$._provideLanguageModelChatInfo (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1218:1423)
at async MA.$provideLanguageModelChatInfo (file:///home/ubuntu/.vscode-server/cli/servers/Stable-94e8ae2b28cb5cc932b86e1070569c4463565c37/server/out/vs/workbench/api/node/extensionHostProcess.js:118:31209)
2026-01-23 11:51:15.712 [error] PermissiveAuthRequiredError: Permissive authentication is required
at CP.getAllSessions (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1219:27375)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async v (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:2359:2495)
2026-01-23 11:51:43.312 [warning] GitHub login failed
2026-01-23 11:51:43.323 [error] [inlineCompletionItemProvider] provideInlineCompletionItems: [Error: GitHubLoginFailed
at Zj._authShowWarnings (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1340:14359)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Zj.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1340:12194)
at async _ee.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1055:2402)
at async X8.updateCachedToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1897:22483)
at async mO.updateExPValuesAndAssignments (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1903:3591)
at async uoi (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:2140:9954)
at async Pdt (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:2140:6870)
at async uL.getInlineCompletionsResult (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:2147:1580)
at async uL.getInlineCompletions (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:2147:1213)
at async MK.provideInlineCompletionItems (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:4417:4035)
at async qK._provideInlineCompletionItems (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:4433:1510)
at async qK.provideInlineCompletionItems (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:4433:947)
at async Co.provideInlineCompletions (file:///home/ubuntu/.vscode-server/cli/servers/Stable-94e8ae2b28cb5cc932b86e1070569c4463565c37/server/out/vs/workbench/api/node/extensionHostProcess.js:144:157911)]
2026-01-23 11:51:43.324 [error] [inlineCompletionItemProvider] provideInlineCompletionItems: [Error: GitHubLoginFailed
at Zj._authShowWarnings (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1340:14359)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Zj.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1340:12194)
at async _ee.getCopilotToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1055:2402)
at async X8.updateCachedToken (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1897:22483)
at async mO.updateExPValuesAndAssignments (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:1903:3591)
at async uoi (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:2140:9954)
at async Pdt (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:2140:6870)
at async uL.getInlineCompletionsResult (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:2147:1580)
at async uL.getInlineCompletions (/home/ubuntu/.vscode-server/extensions/github.copilot-chat-0.36.0/dist/extension.js:2147:1213)
at async MK.provideInlineCompleti/* jshint browser: true */
(function () {
// We'll copy the properties below into the mirror div.
// Note that some browsers, such as Firefox, do not concatenate properties
// into their shorthand (e.g. padding-top, padding-bottom etc. -> padding),
// so we have to list every single property explicitly.
var properties = [
'direction', // RTL support
'boxSizing',
'width', // on Chrome and IE, exclude the scrollbar, so the mirror div wraps exactly as the textarea does
'height',
'overflowX',
'overflowY', // copy the scrollbar for IE
'borderTopWidth',
'borderRightWidth',
'borderBottomWidth',
'borderLeftWidth',
'borderStyle',
'paddingTop',
'paddingRight',
'paddingBottom',
'paddingLeft',
// https://developer.mozilla.org/en-US/docs/Web/CSS/font
'fontStyle',
'fontVariant',
'fontWeight',
'fontStretch',
'fontSize',
'fontSizeAdjust',
'lineHeight',
'fontFamily',
'textAlign',
'textTransform',
'textIndent',
'textDecoration', // might not make a difference, but better be safe
'letterSpacing',
'wordSpacing',
'tabSize',
'MozTabSize'
];
var isBrowser = (typeof window !== 'undefined');
var isFirefox = (isBrowser && window.mozInnerScreenX != null);
function getCaretCoordinates(element, position, options) {
if (!isBrowser) {
throw new Error('textarea-caret-position#getCaretCoordinates should only be called in a browser');
}
var debug = options && options.debug || false;
if (debug) {
var el = document.querySelector('#input-textarea-caret-position-mirror-div');
if (el) el.parentNode.removeChild(el);
}
// The mirror div will replicate the textarea's style
var div = document.createElement('div');
div.id = 'input-textarea-caret-position-mirror-div';
document.body.appendChild(div);
var style = div.style;
var computed = window.getComputedStyle ? window.getComputedStyle(element) : element.currentStyle; // currentStyle for IE < 9
var isInput = element.nodeName === 'INPUT';
// Default textarea styles
style.whiteSpace = 'pre-wrap';
if (!isInput)
style.wordWrap = 'break-word'; // only for textarea-s
// Position off-screen
style.position = 'absolute'; // required to return coordinates properly
if (!debug)
style.visibility = 'hidden'; // not 'display: none' because we want rendering
// Transfer the element's properties to the div
properties.forEach(function (prop) {
if (isInput && prop === 'lineHeight') {
// Special case for s because text is rendered centered and line height may be != height
if (computed.boxSizing === "border-box") {
var height = parseInt(computed.height);
var outerHeight =
parseInt(computed.paddingTop) +
parseInt(computed.paddingBottom) +
parseInt(computed.borderTopWidth) +
parseInt(computed.borderBottomWidth);
var targetHeight = outerHeight + parseInt(computed.lineHeight);
if (height > targetHeight) {
style.lineHeight = height - outerHeight + "px";
} else if (height === targetHeight) {
style.lineHeight = computed.lineHeight;
} else {
style.lineHeight = 0;
}
} else {
style.lineHeight = computed.height;
}
} else {
style[prop] = computed[prop];
}
});
if (isFirefox) {
// Firefox lies about the overflow property for textareas: https://bugzilla.mozilla.org/show_bug.cgi?id=984275
if (element.scrollHeight > parseInt(computed.height))
style.overflowY = 'scroll';
} else {
style.overflow = 'hidden'; // for Chrome to not render a scrollbar; IE keeps overflowY = 'scroll'
}
div.textContent = element.value.substring(0, position);
// The second special handling for input type="text" vs textarea:
// spaces need to be replaced with non-breaking spaces - http://stackoverflow.com/a/13402035/1269037
if (isInput)
div.textContent = div.textContent.replace(/\s/g, '\u00a0');
var span = document.createElement('span');
// Wrapping must be replicated *exactly*, including when a long word gets
// onto the next line, with whitespace at the end of the line before (#7).
// The *only* reliable way to do that is to copy the *entire* rest of the
// textarea's content into the created at the caret position.
// For inputs, just '.' would be enough, but no need to bother.
span.textContent = element.value.substring(position) || '.'; // || because a completely empty faux span doesn't render at all
div.appendChild(span);
var coordinates = {
top: span.offsetTop + parseInt(computed['borderTopWidth']),
left: span.offsetLeft + parseInt(computed['borderLeftWidth']),
height: parseInt(computed['lineHeight'])
};
if (debug) {
span.style.backgroundColor = '#aaa';
} else {
document.body.removeChild(div);
}
return coordinates;
}
if (typeof module != 'undefined' && typeof module.exports != 'undefined') {
module.exports = getCaretCoordinates;
} else if(isBrowser) {
window.getCaretCoordinates = getCaretCoordinates;
}
}());