Skip to content

Code server 1.57.1 cleanup #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 54 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
31a11d3
Disable consolidated run button by default. Fix #125544
roblourens Jun 4, 2021
de98ebb
only show notification once per window reload (#125548)
meganrogge Jun 4, 2021
ce8505d
Add "hostRequirements" to schema (microsoft/vscode-remote-release#5144)
chrmarti Jun 4, 2021
bdafbc3
Merge pull request #125552 from microsoft/roblou/disableRunToolbar
roblourens Jun 4, 2021
dcc182f
Revert ESBuild updates and fix #125518 (#125574)
bpasero Jun 7, 2021
b3d2cd9
re-throw and dispose reference when resolving failed
jrieken Jun 7, 2021
6cdc616
Merge pull request #125649 from microsoft/joh/fix/125550
jrieken Jun 7, 2021
5ba2e42
Fixes #125524 by focusing editor after commit.
hediet Jun 7, 2021
7b72494
Reduces flickering of inline completions & fixes context key.
hediet Jun 7, 2021
9bde552
Adjusts inline completions color. Fixes #125646.
hediet Jun 7, 2021
1c5f331
Merge pull request #125653 from microsoft/hediet/fix-no-focus-after-a…
hediet Jun 7, 2021
b915673
Fix #125569 (#125650)
lszomoru Jun 7, 2021
2e9321d
Merge pull request #125657 from microsoft/hediet/adjust-inline-comple…
alexdima Jun 7, 2021
2c4bd4f
Merge pull request #125654 from microsoft/hediet/reduce-flickering-of…
alexdima Jun 7, 2021
bf84ee6
#125527 (#125651)
lszomoru Jun 7, 2021
2c9833b
better context key for run menu
isidorn Jun 7, 2021
6d4a8af
Hide terminal menu if no process support is registered
Tyriar Jun 4, 2021
c926ecf
Clone object before applying migrated setting (#125696)
Tyriar Jun 7, 2021
008c3ec
Port fix for git diff paths in webviews to 1.57 (#125704)
mjbvz Jun 7, 2021
e27b85b
fix #125702 (#125703)
rebornix Jun 7, 2021
c188ea9
make sure to transform notebook data metadata
jrieken Jun 8, 2021
0ef242c
Merge pull request #125728 from microsoft/joh/fix/125716
jrieken Jun 8, 2021
c7119ae
Merge pull request #125679 from microsoft/isidorn/fixRunMenu
isidorn Jun 8, 2021
098c99e
Set terminal title in ctor for custom pty terminals
Tyriar Jun 8, 2021
5e6379f
Merge pull request #125741 from microsoft/tyriar/r157_125729
Tyriar Jun 8, 2021
6290910
allow a 3rd character for first part of language id (#125761)
TylerLeonhardt Jun 8, 2021
26317e8
fixes #125722 (#125768)
sbatten Jun 8, 2021
134cc8b
Update values for keybinding query context to match real keybindings.…
roblourens Jun 8, 2021
1e7b924
Merge pull request #125773 from microsoft/roblou/fix122768
roblourens Jun 8, 2021
47c2272
candy/125576 (#125787)
sbatten Jun 8, 2021
78429fb
Use interpolation to keep special syntax out of strings to be transla…
Jun 8, 2021
c5e8451
Dont use exp service for choosing first content behaviour (#125780)
Jun 8, 2021
f8b576c
trust the empty window by default (#125788)
sbatten Jun 9, 2021
d5fbc9f
fix localization strings with `command:`. For #125786
aeschli Jun 9, 2021
33d504f
clarify nls comment
aeschli Jun 9, 2021
b4c1bd0
Merge pull request #125817 from microsoft/aeschli/125786
aeschli Jun 9, 2021
6370d95
Set visibility of markdown cells before rendering it (#126099)
mjbvz Jun 11, 2021
ca66517
Revert back to Electron `12.0.7` (#126026)
bpasero Jun 14, 2021
b9f4ab0
linux - restore `--no-sandbox` for startup scripts (#126028)
bpasero Jun 14, 2021
6bca69f
macos - restore Cmd+W to close window when no editors opened (#126045)
bpasero Jun 14, 2021
a16b918
Pass config to external terminal service
Tyriar Jun 11, 2021
d9b1d6b
Merge pull request #126234 from microsoft/tyriar/157_125985
Tyriar Jun 14, 2021
d21d7d9
Port fix #126057 (#126215)
lszomoru Jun 14, 2021
92c259a
Update package.json (#126283)
meganrogge Jun 14, 2021
3300069
separated editor scroll info by type and consume entry on access
andreamah Jun 14, 2021
20a512d
Fix #126178; fixes markdown scrolling bug
andreamah Jun 14, 2021
45c13db
Do not auto-trigger suggest when typing exactly the inline suggestion
alexdima Jun 15, 2021
2650c2e
Merge pull request #126413 from microsoft/inline-suggest-prevent-auto…
hediet Jun 16, 2021
08bca48
Fix race that causes auto port forwarding setting to be ignored (#126…
alexr00 Jun 16, 2021
d95f6de
- migrate only from active window
sandy081 Jun 17, 2021
3f4baf4
move focus check while converting
sandy081 Jun 17, 2021
507ce72
Merge pull request #126577 from microsoft/sandy081/recovery/fix125970
sandy081 Jun 17, 2021
f0607e9
Flesh out lib/vscode migration. WIP
GirlBossRush Jul 26, 2021
d78f2ce
Fix issues surrounding IPC interfaces. Update names.
GirlBossRush Jul 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@
**/extensions/markdown-language-features/notebook-out/**
**/extensions/typescript-basics/test/colorize-fixtures/**
**/extensions/**/dist/**
# These are code-server code symlinks.
src/vs/base/common/util.ts
src/vs/base/common/ipc.d.ts
src/vs/base/node/proxy_agent.ts
src/vs/server/uriTransformer.ts
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -802,10 +802,12 @@
"target": "**/vs/server/**",
"restrictions": [
"vs/nls",
"**/vs/code/**/{common,server,browser,node,electron-sandbox,electron-browser}/**",
"**/vs/base/**/{common,node}/**",
"**/vs/base/parts/**/{common,node}/**",
"**/vs/platform/**/{common,node}/**",
"**/vs/workbench/**/{common,node}/**",
"**/vs/workbench/workbench.web.api",
"**/vs/server/**",
"*" // node modules
]
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ node_modules/
extensions/**/dist/
/out*/
/extensions/**/out/
src/vs/server
# NOTE@coder: remove to provide our own server
# src/vs/server
resources/server
build/node_modules
coverage/
Expand Down
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
"editor.defaultFormatter": "vscode.typescript-language-features",
"editor.formatOnSave": true,
},
"typescript.format.insertSpaceAfterConstructor": false,
"javascript.format.insertSpaceAfterConstructor": false,
"javascript.format.insertSpaceBeforeFunctionParenthesis": false,
"typescript.format.insertSpaceBeforeFunctionParenthesis": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
"typescript.tsc.autoDetect": "off",
"notebook.experimental.useMarkdownRenderer": true,
"testing.autoRun.mode": "rerun",
Expand Down
2 changes: 1 addition & 1 deletion .yarnrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
disturl "https://electronjs.org/headers"
target "12.0.9"
target "12.0.7"
runtime "electron"
2 changes: 2 additions & 0 deletions build/gulpfile.reh.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ BUILD_TARGETS.forEach(({ platform, arch }) => {
});

function getNodeVersion() {
// NOTE@coder: Fix version due to .yarnrc removal.
return process.versions.node;
const yarnrc = fs.readFileSync(path.join(REPO_ROOT, 'remote', '.yarnrc'), 'utf8');
const target = /^target "(.*)"$/m.exec(yarnrc)[1];
return target;
Expand Down
14 changes: 13 additions & 1 deletion build/hygiene.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ const copyrightHeaderLines = [
' *--------------------------------------------------------------------------------------------*/',
];

/**
* @remark While this helps delineate Coder's additions to the upstream project,
* this notice should be examined within the context of the application.
* Code from both maintainers often overlaps.
*/
const coderCopyrightHeaderLines = [
'/*---------------------------------------------------------------------------------------------',
' * Copyright (c) Coder Technologies. All rights reserved.',
' * Licensed under the MIT License. See License.txt in the project root for license information.',
' *--------------------------------------------------------------------------------------------*/',
];

function hygiene(some, linting = true) {
const gulpeslint = require('gulp-eslint');
const tsfmt = require('typescript-formatter');
Expand Down Expand Up @@ -62,7 +74,7 @@ function hygiene(some, linting = true) {
const lines = file.__lines;

for (let i = 0; i < copyrightHeaderLines.length; i++) {
if (lines[i] !== copyrightHeaderLines[i]) {
if (lines[i] !== copyrightHeaderLines[i] && lines[i] !== coderCopyrightHeaderLines[i]) {
console.error(file.relative + ': Missing or bad copyright statement');
errorCount++;
break;
Expand Down
2 changes: 1 addition & 1 deletion build/lib/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function fromLocal(extensionPath: string, forWeb: boolean): Stream {
if (isWebPacked) {
input = updateExtensionPackageJSON(input, (data: any) => {
delete data.scripts;
delete data.dependencies;
// https://github.com/cdr/code-server/pull/2041#issuecomment-685910322
delete data.devDependencies;
if (data.main) {
data.main = data.main.replace('/out/', /dist/);
Expand Down
4 changes: 2 additions & 2 deletions build/lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const path = require("path");
const fs = require("fs");
const root = path.dirname(path.dirname(__dirname));
const yarnrcPath = path.join(root, 'remote', '.yarnrc');
const yarnrc = fs.readFileSync(yarnrcPath, 'utf8');
const version = /^target\s+"([^"]+)"$/m.exec(yarnrc)[1];
// NOTE@coder: Fix version due to .yarnrc removal.
const version = process.versions.node;
const platform = process.platform;
const arch = platform === 'darwin' ? 'x64' : process.arch;
const node = platform === 'win32' ? 'node.exe' : 'node';
Expand Down
6 changes: 2 additions & 4 deletions build/lib/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
*--------------------------------------------------------------------------------------------*/

import * as path from 'path';
import * as fs from 'fs';

const root = path.dirname(path.dirname(__dirname));
const yarnrcPath = path.join(root, 'remote', '.yarnrc');
const yarnrc = fs.readFileSync(yarnrcPath, 'utf8');
const version = /^target\s+"([^"]+)"$/m.exec(yarnrc)![1];

// NOTE@coder: Fix version due to .yarnrc removal.
const version = process.versions.node;
const platform = process.platform;
const arch = platform === 'darwin' ? 'x64' : process.arch;

Expand Down
2 changes: 2 additions & 0 deletions build/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ function streamToPromise(stream) {
}
exports.streamToPromise = streamToPromise;
function getElectronVersion() {
// NOTE@coder: Fix version due to .yarnrc removal.
return process.versions.node;
const yarnrc = fs.readFileSync(path.join(root, '.yarnrc'), 'utf8');
const target = /^target "(.*)"$/m.exec(yarnrc)[1];
return target;
Expand Down
5 changes: 2 additions & 3 deletions build/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ export function streamToPromise(stream: NodeJS.ReadWriteStream): Promise<void> {
}

export function getElectronVersion(): string {
const yarnrc = fs.readFileSync(path.join(root, '.yarnrc'), 'utf8');
const target = /^target "(.*)"$/m.exec(yarnrc)![1];
return target;
// NOTE@coder: Fix version due to .yarnrc removal.
return process.versions.node;
}
2 changes: 1 addition & 1 deletion build/npm/update-localization-extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function update(options) {
throw new Error(`${location} doesn't exist.`);
}
let locExtFolder = idOrPath;
if (/^\w{2}(-\w+)?$/.test(idOrPath)) {
if (/^\w{2,3}(-\w+)?$/.test(idOrPath)) {
locExtFolder = path.join('..', 'vscode-loc', 'i18n', `vscode-language-pack-${idOrPath}`);
}
let locExtStat = fs.statSync(locExtFolder);
Expand Down
7 changes: 1 addition & 6 deletions build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"version": "1.0.0",
"license": "MIT",
"devDependencies": {
"@azure/cosmos": "^3.9.3",
"@azure/storage-blob": "^12.4.0",
"@types/ansi-colors": "^3.2.0",
"@types/azure": "0.9.19",
"@types/byline": "^4.2.32",
Expand Down Expand Up @@ -37,11 +35,9 @@
"@typescript-eslint/experimental-utils": "~2.13.0",
"@typescript-eslint/parser": "^3.3.0",
"applicationinsights": "1.0.8",
"azure-storage": "^2.1.0",
"byline": "^5.0.0",
"colors": "^1.4.0",
"commander": "^7.0.0",
"electron-osx-sign": "^0.4.16",
"esbuild": "^0.12.6",
"fs-extra": "^9.1.0",
"got": "11.8.1",
Expand All @@ -50,10 +46,9 @@
"mime": "^1.4.1",
"mkdirp": "^1.0.4",
"p-limit": "^3.1.0",
"plist": "^3.0.1",
"source-map": "0.6.1",
"typescript": "^4.4.0-dev.20210528",
"vsce": "1.48.0",
"vsce": "1.88.0",
"vscode-universal": "deepak1556/universal#61454d96223b774c53cda10f72c2098c0ce02d58"
},
"scripts": {
Expand Down
Loading