diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 75076a0f..57e89ef1 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,5 @@ { - "name": "Code - OSS", + "name": "LineMage", "build": { "dockerfile": "Dockerfile" }, diff --git a/.eslintrc.json b/.eslintrc.json index 65ee76d1..75c5c94b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -13,7 +13,7 @@ ], "rules": { "constructor-super": "warn", - "curly": "off", // <-- glass + "curly": "off", // <-- LineMage "eqeqeq": "warn", "prefer-const": [ "warn", @@ -51,7 +51,7 @@ "no-var": "warn", "jsdoc/no-types": "warn", "semi": "off", - "@typescript-eslint/semi": "off", // <-- glass + "@typescript-eslint/semi": "off", // <-- LineMage "@typescript-eslint/member-delimiter-style": "warn", "@typescript-eslint/naming-convention": [ "warn", diff --git a/.vscode/settings.json b/.vscode/settings.json index 797a2bb6..f389f02c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -93,7 +93,7 @@ } ], "git.ignoreLimitWarning": true, - // we removed this for glass: + // we removed this for LineMage: // "git.branchProtection": [ // "main", // "distro", diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 90f5cd3a..a78942e7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -23,7 +23,7 @@ Here's how you can start contributing to the extension: `npm run install` -4. Build the project. +4. Build the project. `npm run build` @@ -54,9 +54,9 @@ When you've made changes and want to submit them, please submit a pull request. ## What to work on -Here are the most important topics we think you can contribute. +Here are the most important topics we think you can contribute. -Feel free to contribute anything you like. +Feel free to contribute anything you like. Full list [here]([[TODO!!!]]) @@ -121,7 +121,7 @@ More ⭐'s = more important. ### Core -- Migrate the LineMage extension to live natively in VS Code. There's initial work here at `glass.contribution.ts`. +- Migrate the LineMage extension to live natively in VS Code. There's initial work here at `linemage.contribution.ts`. - Allow access to the VS Code extension marketplace. diff --git a/build/hygiene.js b/build/hygiene.js index a25247d4..f220bfb1 100644 --- a/build/hygiene.js +++ b/build/hygiene.js @@ -264,7 +264,7 @@ function createGitIndexVinyls(paths) { return pall(fns, { concurrency: 4 }).then((r) => r.filter((p) => !!p)); } -// NO PRE COMMIT HOOKS!!!! for now... - glass team +// NO PRE COMMIT HOOKS!!!! for now... - LineMage team // // this allows us to run hygiene as a git pre-commit hook // if (require.main === module) { diff --git a/build/lib/i18n.resources.json b/build/lib/i18n.resources.json index 3fef80c1..2bb94cce 100644 --- a/build/lib/i18n.resources.json +++ b/build/lib/i18n.resources.json @@ -19,7 +19,7 @@ ], "workbench": [ { - "name": "vs/workbench/contrib/glass", + "name": "vs/workbench/contrib/linemage", "project": "vscode-workbench" }, { diff --git a/build/npm/dirs.js b/build/npm/dirs.js index 49726125..9e7f65cd 100644 --- a/build/npm/dirs.js +++ b/build/npm/dirs.js @@ -7,7 +7,7 @@ const fs = require('fs'); // Complete list of directories where yarn should be executed to install node modules const dirs = [ - 'extensions/helloworld', // <-- glass + 'extensions/linemage', // <-- linemage '', 'build', diff --git a/extensions/linemage/src/ApprovalCodeLensProvider.ts b/extensions/linemage/src/ApprovalCodeLensProvider.ts index 65c87304..322b4e34 100644 --- a/extensions/linemage/src/ApprovalCodeLensProvider.ts +++ b/extensions/linemage/src/ApprovalCodeLensProvider.ts @@ -138,7 +138,7 @@ export class ApprovalCodeLensProvider implements vscode.CodeLensProvider { console.log('diffs after added:', this._diffsOfDocument[docUriStr]) } - // called on glass.approveApproval + // called on myExtension.approveDiff public async approveDiff({ diffid }: { diffid: number }) { const editor = vscode.window.activeTextEditor if (!editor) @@ -168,7 +168,7 @@ export class ApprovalCodeLensProvider implements vscode.CodeLensProvider { } - // called on glass.discardApproval + // called on myExtension.discardDiff public async discardDiff({ diffid }: { diffid: number }) { const editor = vscode.window.activeTextEditor if (!editor) @@ -180,7 +180,7 @@ export class ApprovalCodeLensProvider implements vscode.CodeLensProvider { // get index of this diff in diffsOfDocument const index = this._diffsOfDocument[docUriStr].findIndex(diff => diff.diffid === diffid); if (index === -1) { - console.error('Glass error: DiffID could not be found: ', diffid, this._diffsOfDocument[docUriStr]) + console.error('LineMage error: DiffID could not be found: ', diffid, this._diffsOfDocument[docUriStr]) return } diff --git a/extensions/linemage/src/common/sendLLMMessage.ts b/extensions/linemage/src/common/sendLLMMessage.ts index 7026ee6f..a26b80c5 100644 --- a/extensions/linemage/src/common/sendLLMMessage.ts +++ b/extensions/linemage/src/common/sendLLMMessage.ts @@ -15,7 +15,7 @@ export type ApiConfig = { githubPAT: string, repoinfo: { remote: string, // e.g. 'github' - repository: string, // e.g. 'andrewpareles/glass_vscode' + repository: string, // e.g. 'linemagedev/linemage' branch: string // e.g. 'main' } }, diff --git a/product.json b/product.json index 5c93c597..e9a0fefa 100644 --- a/product.json +++ b/product.json @@ -1,6 +1,6 @@ { - "nameShort": "Glass", - "nameLong": "Glass", + "nameShort": "LineMage", + "nameLong": "LineMage", "applicationName": "code-oss", "dataFolderName": ".vscode-oss", "win32MutexName": "vscodeoss", diff --git a/src/vs/workbench/api/common/extHost.api.impl.ts b/src/vs/workbench/api/common/extHost.api.impl.ts index f7ed6243..26f175de 100644 --- a/src/vs/workbench/api/common/extHost.api.impl.ts +++ b/src/vs/workbench/api/common/extHost.api.impl.ts @@ -552,10 +552,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I }, - // GLASS added this - registerGlassCtrlKProvider(selector: vscode.DocumentSelector, provider: vscode.CodeLensProvider): vscode.Disposable { - return extHostLanguageFeatures.registerCodeLensProvider(extension, checkSelector(selector), provider); - }, + // LINEMAGE added this (I think will need to add this back when add ctrl+K) + // registerLineMageCtrlKProvider(selector: vscode.DocumentSelector, provider: vscode.CodeLensProvider): vscode.Disposable { + // return extHostLanguageFeatures.registerCodeLensProvider(extension, checkSelector(selector), provider); + // }, registerDefinitionProvider(selector: vscode.DocumentSelector, provider: vscode.DefinitionProvider): vscode.Disposable { diff --git a/src/vs/workbench/api/common/extHostApiCommands.ts b/src/vs/workbench/api/common/extHostApiCommands.ts index 4e5e2a79..327c91f4 100644 --- a/src/vs/workbench/api/common/extHostApiCommands.ts +++ b/src/vs/workbench/api/common/extHostApiCommands.ts @@ -304,11 +304,11 @@ const newCommands: ApiCommand[] = [ })(value); }) ), - // // --- glass code lens + // // --- LineMage code lens // new ApiCommand( - // 'vscode.executeGlassCodeLensProvider', '_executeGlassCodeLensProvider', 'Execute glass code lens provider.', + // 'vscode.executeLineMageCodeLensProvider', '_executeLineMageCodeLensProvider', 'Execute LineMage code lens provider.', // [ApiCommandArgument.Uri, ApiCommandArgument.Number.with('itemResolveCount', 'Number of lenses that should be resolved and returned. Will only return resolved lenses, will impact performance)').optional()], - // new ApiCommandResult('A promise that resolves to an array of GlassCodeLens-instances.', (value, _args, converter) => { + // new ApiCommandResult('A promise that resolves to an array of LineMageCodeLens-instances.', (value, _args, converter) => { // return tryMapWith(item => { // return new types.CodeLens(typeConverters.Range.to(item.range), item.command && converter.fromInternal(item.command)); // })(value); diff --git a/src/vs/workbench/contrib/glass/browser/glass.contribution.ts b/src/vs/workbench/contrib/linemage/browser/linemage.contribution.ts similarity index 78% rename from src/vs/workbench/contrib/glass/browser/glass.contribution.ts rename to src/vs/workbench/contrib/linemage/browser/linemage.contribution.ts index 6018f49d..12ee3424 100644 --- a/src/vs/workbench/contrib/glass/browser/glass.contribution.ts +++ b/src/vs/workbench/contrib/linemage/browser/linemage.contribution.ts @@ -7,7 +7,7 @@ import { import * as nls from 'vs/nls'; -import { GlassViewPane } from 'vs/workbench/contrib/glass/browser/glassViewPane' +import { LineMageViewPane } from 'vs/workbench/contrib/linemage/browser/linemageViewPane' import { Codicon } from 'vs/base/common/codicons'; import { localize } from 'vs/nls'; @@ -18,22 +18,22 @@ import { SyncDescriptor } from 'vs/platform/instantiation/common/descriptors'; import { KeyCode, KeyMod } from 'vs/base/common/keyCodes'; -const glassViewIcon = registerIcon('glass-view-icon', Codicon.search, localize('glassViewIcon', 'View icon of the glass chat view.')); +const linemageViewIcon = registerIcon('linemage-view-icon', Codicon.search, localize('linemageViewIcon', 'View icon of the linemage chat view.')); // compare against search.contribution.ts and https://app.greptile.com/chat/w1nsmt3lauwzculipycpn?repo=github%3Amain%3Amicrosoft%2Fvscode // and debug.contribution.ts, scm.contribution.ts (source control) -const VIEW_CONTAINER_ID = 'workbench.view.glass' // called VIEWLET_ID in other places for some reason +const VIEW_CONTAINER_ID = 'workbench.view.linemage' // called VIEWLET_ID in other places for some reason // Register view container const viewContainerRegistry = Registry.as(ViewContainerExtensions.ViewContainersRegistry); const viewContainer = viewContainerRegistry.registerViewContainer({ id: VIEW_CONTAINER_ID, - title: nls.localize2('glass', 'Glass'), // this is used to say GLASS (Ctrl + L) + title: nls.localize2('linemage', 'LineMage'), // this is used to say LineMage (Ctrl + L) ctorDescriptor: new SyncDescriptor(ViewPaneContainer, [VIEW_CONTAINER_ID, { mergeViewWithContainerWhenSingleView: true }]), hideIfEmpty: false, - icon: glassViewIcon, + icon: linemageViewIcon, order: 1, }, ViewContainerLocation.AuxiliaryBar, { doNotRegisterOpenCommand: true }); @@ -45,10 +45,9 @@ const viewContainer = viewContainerRegistry.registerViewContainer({ const VIEW_ID = VIEW_CONTAINER_ID // not sure if we can change this const viewDescriptor: IViewDescriptor = { id: VIEW_ID, - containerIcon: glassViewIcon, - name: nls.localize2('glass chat', "Chat"), // this says : CHAT - // ctorDescriptor: new SyncDescriptor(GlassViewPane), - ctorDescriptor: new SyncDescriptor(GlassViewPane), + containerIcon: linemageViewIcon, + name: nls.localize2('linemage chat', "Chat"), // this says ... : CHAT + ctorDescriptor: new SyncDescriptor(LineMageViewPane), canToggleVisibility: false, canMoveView: true, openCommandActionDescriptor: { diff --git a/src/vs/workbench/contrib/glass/browser/glassViewPane.ts b/src/vs/workbench/contrib/linemage/browser/linemageViewPane.ts similarity index 94% rename from src/vs/workbench/contrib/glass/browser/glassViewPane.ts rename to src/vs/workbench/contrib/linemage/browser/linemageViewPane.ts index 6faacc2a..afc4ce24 100644 --- a/src/vs/workbench/contrib/glass/browser/glassViewPane.ts +++ b/src/vs/workbench/contrib/linemage/browser/linemageViewPane.ts @@ -16,7 +16,7 @@ import { ViewPane } from 'vs/workbench/browser/parts/views/viewPane'; // import { IHoverService } from 'vs/platform/hover/browser/hover'; -export class GlassViewPane extends ViewPane { +export class LineMageViewPane extends ViewPane { // constructor( // options: IViewPaneOptions, @@ -36,4 +36,4 @@ export class GlassViewPane extends ViewPane { } -// register a singleton service that +// register a singleton service that mounts the ViewPane here diff --git a/src/vs/workbench/workbench.common.main.ts b/src/vs/workbench/workbench.common.main.ts index aa45f43c..04e60d63 100644 --- a/src/vs/workbench/workbench.common.main.ts +++ b/src/vs/workbench/workbench.common.main.ts @@ -3,8 +3,8 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -//#region --- glass -import 'vs/workbench/contrib/glass/browser/glass.contribution' +//#region --- linemage +import 'vs/workbench/contrib/linemage/browser/linemage.contribution' //#endregion