separate licenses + header

This commit is contained in:
Andrew Pareles 2025-01-02 23:00:59 -08:00
parent 825c40bfff
commit eeacb2d3c9
60 changed files with 234 additions and 269 deletions

View file

@ -8,7 +8,7 @@ There are a few ways to contribute:
- 💡 Make suggestions in our [Discord](https://discord.gg/RSNjgaugJs).
- ⭐️ If you want to build your AI tool into Void, feel free to get in touch! It's very easy to extend Void, and the UX you create will be much more natural than a VSCode Extension.
Most of Void's code lives in `src/vs/workbench/contrib/void/browser/` and `src/vs/platform/void/`.
Void's code lives in `src/vs/workbench/contrib/void/browser/` and `src/vs/platform/void/`.
@ -55,7 +55,7 @@ To build Void, open `void/` inside VSCode. Then open your terminal and run:
- Run `./scripts/code.sh` (Mac/Linux).
- Run `./scripts/code.bat` (Windows).
- This command should open up the built IDE. You can always press <kbd>Ctrl+R</kbd> (<kbd>Cmd+R</kbd>) inside the new window to see changes without re-building, or press or <kbd>Ctrl+Shift+P</kbd> in the new window and run "Reload Window".
- If you would like to reset Void back to its default settings, you can run `./scripts/code.sh --user-data-dir ./.tmp/user-data --extensions-dir ./.tmp/extensions` (mac). This will save all data and extensions to the `.tmp` folder. You can delete this folder to reset your settings.
- If you are actively developing Void, we strongly recommend adding the flags `--user-data-dir ./.tmp/user-data --extensions-dir ./.tmp/extensions` to the above run command (just append them at the end of the string). This will save all data and extensions to the `.tmp` folder. You can delete this folder to reset any IDE changes you made when testing.
#### Building Void from Terminal

View file

@ -1,6 +1,11 @@
Void is a fork of VS Code, which is licensed under the MIT License (below).
Void's additions and modifications are also licensed under the MIT License (see LICENSE.txt).
--------------------
MIT License
Copyright (c) 2025 Glass Devtools, Inc.
Copyright (c) 2015 - present Microsoft Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View file

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2015 - present Microsoft Corporation
Copyright (c) 2025 Glass Devtools, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View file

@ -10,7 +10,9 @@ To build and run Void, follow the steps in [`CONTRIBUTING.md`](https://github.co
## Reference
Void is a fork of the of [vscode](https://github.com/microsoft/vscode) repository. For some useful links on VSCode, see [`VOID_USEFUL_LINKS.md`](https://github.com/voideditor/void/blob/main/VOID_USEFUL_LINKS.md).
Void is a fork of the of [vscode](https://github.com/microsoft/vscode) repository.
For some useful links on VSCode, see [`VOID_USEFUL_LINKS.md`](https://github.com/voideditor/void/blob/main/VOID_USEFUL_LINKS.md).
## Support
Feel free to reach out in our [Discord](https://discord.gg/RSNjgaugJs) or contact us via email.
Feel free to reach out in our [Discord](https://discord.gg/RSNjgaugJs) server or contact us via email.

View file

@ -1,41 +0,0 @@
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.9 BLOCK -->
## Security
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet) and [Xamarin](https://github.com/xamarin).
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/security.md/definition), please report it to us as described below.
## Reporting Security Issues
**Please do not report security vulnerabilities through public GitHub issues.**
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report).
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/security.md/msrc/pgp).
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue
This information will help us triage your report more quickly.
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/security.md/msrc/bounty) page for more details about our active programs.
## Preferred Languages
We prefer all communications to be in English.
## Policy
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/security.md/cvd).
<!-- END MICROSOFT SECURITY.MD BLOCK -->

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
// ---------- common ----------

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { EventLLMMessageOnTextParams, EventLLMMessageOnErrorParams, EventLLMMessageOnFinalMessageParams, ServiceSendLLMMessageParams, MainLLMMessageParams, MainLLMMessageAbortParams, ServiceModelListParams, EventModelListOnSuccessParams, EventModelListOnErrorParams, MainModelListParams, OllamaModelResponse, OpenaiCompatibleModelResponse, } from './llmMessageTypes.js';
import { IChannel } from '../../../base/parts/ipc/common/ipc.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { IRange } from '../../../editor/common/core/range'
import { ProviderName, SettingsOfProvider } from './voidSettingsTypes.js'

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { createDecorator } from '../../instantiation/common/instantiation.js';
import { ProxyChannel } from '../../../base/parts/ipc/common/ipc.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { createDecorator } from '../../instantiation/common/instantiation.js';
import { InstantiationType, registerSingleton } from '../../instantiation/common/extensions.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { Emitter, Event } from '../../../base/common/event.js';
import { Disposable } from '../../../base/common/lifecycle.js';

View file

@ -1,8 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import Anthropic from '@anthropic-ai/sdk';
import { _InternalSendLLMMessageFnType } from '../../common/llmMessageTypes.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { Content, GoogleGenerativeAI, GoogleGenerativeAIFetchError } from '@google/generative-ai';
import { _InternalSendLLMMessageFnType } from '../../common/llmMessageTypes.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
// // Greptile
// // https://docs.greptile.com/api-reference/query

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import Groq from 'groq-sdk';
import { _InternalSendLLMMessageFnType } from '../../common/llmMessageTypes.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { Ollama } from 'ollama';
import { _InternalModelListFnType, _InternalSendLLMMessageFnType, OllamaModelResponse } from '../../common/llmMessageTypes.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import OpenAI from 'openai';
import { _InternalModelListFnType, _InternalSendLLMMessageFnType } from '../../common/llmMessageTypes.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { LLMMMessageParams, OnText, OnFinalMessage, OnError } from '../../common/llmMessageTypes.js';
import { IMetricsService } from '../../common/metricsService.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
// registered in app.ts
// code convention is to make a service responsible for this stuff, and not a channel, but having fewer files is simpler...

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { Disposable } from '../../../base/common/lifecycle.js';
import { ITelemetryService } from '../../telemetry/common/telemetry.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { Disposable } from '../../../../base/common/lifecycle.js';
import { ILanguageFeaturesService } from '../../../../editor/common/services/languageFeatures.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { Disposable } from '../../../../../base/common/lifecycle.js';
import { URI } from '../../../../../base/common/uri.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
export const extractCodeFromResult = (result: string) => {
// Match either:

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { diffLines } from '../react/out/diff/index.js'

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { isMacintosh } from '../../../../../base/common/platform.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { Disposable } from '../../../../base/common/lifecycle.js';
import { registerSingleton, InstantiationType } from '../../../../platform/instantiation/common/extensions.js';
@ -822,7 +822,6 @@ class InlineDiffsService extends Disposable implements IInlineDiffsService {
const lastDiff = computedDiffs.pop()
if (!lastDiff) {
console.log('!lastDiff')
// if the writing is identical so far, display no changes
originalCodeStartLine = 1
newCodeEndLine = 1

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
.monaco-editor .void-sweepIdxBG {
background-color: var(--vscode-void-sweepIdxBG);

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { CodeSelection } from '../threadHistoryService.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { KeyCode, KeyMod } from '../../../../base/common/keyCodes.js';
import { Action2, registerAction2 } from '../../../../platform/actions/common/actions.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { Emitter, Event } from '../../../../base/common/event.js';
import { Disposable } from '../../../../base/common/lifecycle.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { spawn, execSync } from 'child_process';
// Added lines below

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { useEffect, useState } from 'react'
import { useIsDark, useSidebarState } from '../util/services.js'

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import React, { FormEvent, useCallback, useEffect, useRef, useState } from 'react';
import { useSettingsState, useSidebarState, useThreadsState, useQuickEditState, useAccessor } from '../util/services.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { mountFnGenerator } from '../util/mountFnGenerator.js'
import { CtrlK } from './CtrlK.js'

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { diffLines, Change } from 'diff';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { ReactNode } from "react"
import { VoidCodeEditor } from '../util/inputs.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import React, { JSX, useCallback, useEffect, useState } from 'react'
import { marked, MarkedToken, Token } from 'marked'

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import React, { Component, ErrorInfo, ReactNode } from 'react';
import { ErrorDisplay } from './ErrorDisplay.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import React, { useState } from 'react';
import { AlertCircle, ChevronDown, ChevronUp, X } from 'lucide-react';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import React, { useEffect, useState } from 'react'
import { mountFnGenerator } from '../util/mountFnGenerator.js'

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import React, { ButtonHTMLAttributes, FormEvent, FormHTMLAttributes, Fragment, useCallback, useEffect, useRef, useState } from 'react';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import React from "react";
import { useAccessor, useThreadsState } from '../util/services.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { mountFnGenerator } from '../util/mountFnGenerator.js'
import { Sidebar } from './Sidebar.js'

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
@tailwind base;
@tailwind components;

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import React, { useCallback, useEffect, useRef } from 'react';
import { IInputBoxStyles, InputBox } from '../../../../../../../base/browser/ui/inputbox/inputBox.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import React, { useEffect, useState } from 'react';
import * as ReactDOM from 'react-dom/client'

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import React, { useState, useEffect } from 'react'
import { ThreadsState } from '../../../threadHistoryService.js'

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { FeatureName, featureNames, ModelSelection, modelSelectionsEqual, ProviderName, providerNames } from '../../../../../../../platform/void/common/voidSettingsTypes.js'

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { InputBox } from '../../../../../../../base/browser/ui/inputbox/inputBox.js'
@ -420,7 +420,7 @@ export const Settings = () => {
<h2 className={`text-3xl mb-2`}>Local Providers</h2>
{/* <h3 className={`text-md opacity-50 mb-2`}>{`Keep your data private by hosting AI locally on your computer.`}</h3> */}
{/* <h3 className={`text-md opacity-50 mb-2`}>{`Instructions:`}</h3> */}
<h3 className={`text-md mb-2`}>{`Void can access any model that you host locally. By default, we automatically detect your local models.`}</h3>
<h3 className={`text-md mb-2`}>{`Void can access any model that you host locally. We automatically detect your local models by default.`}</h3>
<div className='pl-4 select-text opacity-50'>
<h4 className={`text-xs mb-2`}><ChatMarkdownRender string={`1. Download [Ollama](https://ollama.com/download).`} /></h4>
<h4 className={`text-xs mb-2`}><ChatMarkdownRender string={`2. Open your terminal.`} /></h4>

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { mountFnGenerator } from '../util/mountFnGenerator.js'
import { Settings } from './Settings.js'

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
/** @type {import('tailwindcss').Config} */
module.exports = {

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
{
"compilerOptions": {

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { defineConfig } from 'tsup'

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { KeyCode, KeyMod } from '../../../../base/common/keyCodes.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { Registry } from '../../../../platform/registry/common/platform.js';
import {

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { Emitter, Event } from '../../../../base/common/event.js';
import { Disposable } from '../../../../base/common/lifecycle.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { Disposable } from '../../../../base/common/lifecycle.js';
import { registerSingleton, InstantiationType } from '../../../../platform/instantiation/common/extensions.js';

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
// register inline diffs

View file

@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Glass Devtools, Inc. All rights reserved.
* Void Editor additions licensed under the AGPL 3.0 License.
*--------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------
* Copyright (c) 2025 Glass Devtools, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for more information.
*-----------------------------------------------------------------------------------------*/
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
import { EditorInput } from '../../../common/editor/editorInput.js';