Skip to content

Commit

Permalink
Merge branch 'main' into copilot-chat-simplified
Browse files Browse the repository at this point in the history
Signed-off-by: vitaliy-guliy <vgulyy@redhat.com>
  • Loading branch information
vitaliy-guliy committed Apr 2, 2024
2 parents a924544 + c5bae35 commit 7b1ad9f
Show file tree
Hide file tree
Showing 208 changed files with 5,147 additions and 1,576 deletions.
3 changes: 0 additions & 3 deletions code/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,11 @@
"src/vs/editor/contrib/codeAction/test/browser/codeActionModel.test.ts",
"src/vs/editor/test/common/services/languageService.test.ts",
"src/vs/editor/test/node/classification/typescript.test.ts",
"src/vs/editor/test/node/diffing/defaultLinesDiffComputer.test.ts",
"src/vs/editor/test/node/diffing/fixtures.test.ts",
"src/vs/platform/configuration/test/common/configuration.test.ts",
"src/vs/platform/extensions/test/common/extensionValidator.test.ts",
"src/vs/platform/opener/test/common/opener.test.ts",
"src/vs/platform/registry/test/common/platform.test.ts",
"src/vs/platform/remote/test/common/remoteHosts.test.ts",
"src/vs/platform/telemetry/test/browser/1dsAppender.test.ts",
"src/vs/platform/workspace/test/common/workspace.test.ts",
"src/vs/platform/workspaces/test/electron-main/workspaces.test.ts",
"src/vs/workbench/api/test/browser/mainThreadConfiguration.test.ts",
Expand Down
2 changes: 1 addition & 1 deletion code/.github/workflows/deep-classifier-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
environment: main
steps:
- uses: azure/login@v1
- uses: azure/login@v2
with:
client-id: ${{ vars.AZURE_CLIENT_ID }}
tenant-id: ${{ vars.AZURE_TENANT_ID }}
Expand Down
1 change: 0 additions & 1 deletion code/.vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"editorconfig.editorconfig",
"github.vscode-pull-request-github",
"ms-vscode.vscode-github-issue-notebooks",
"ms-vscode.vscode-selfhost-test-provider",
"ms-vscode.extension-test-runner",
"jrieken.vscode-pr-pinger"
]
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 78 additions & 0 deletions code/.vscode/extensions/vscode-selfhost-test-provider/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"name": "vscode-selfhost-test-provider",
"displayName": "VS Code Selfhost Test Provider",
"description": "Test provider for the VS Code project",
"enabledApiProposals": [
"testObserver"
],
"engines": {
"vscode": "^1.88.0"
},
"contributes": {
"commands": [
{
"command": "selfhost-test-provider.updateSnapshot",
"title": "Update Snapshot",
"icon": "$(merge)"
}
],
"menus": {
"commandPalette": [
{
"command": "selfhost-test-provider.updateSnapshot",
"when": "false"
}
],
"testing/message/context": [
{
"command": "selfhost-test-provider.updateSnapshot",
"group": "inline@1",
"when": "testMessage == isSelfhostSnapshotMessage && !testResultOutdated"
}
],
"testing/message/content": [
{
"command": "selfhost-test-provider.updateSnapshot",
"when": "testMessage == isSelfhostSnapshotMessage && !testResultOutdated"
}
]
}
},
"icon": "icon.png",
"version": "0.4.0",
"publisher": "ms-vscode",
"categories": [
"Other"
],
"activationEvents": [
"workspaceContains:src/vs/loader.js"
],
"workspaceTrust": {
"request": "onDemand",
"description": "Trust is required to execute tests in the workspace."
},
"main": "./out/extension.js",
"prettier": {
"printWidth": 100,
"singleQuote": true,
"tabWidth": 2,
"arrowParens": "avoid"
},
"repository": {
"type": "git",
"url": "https://github.com/microsoft/vscode.git"
},
"license": "MIT",
"scripts": {
"compile": "gulp compile-extension:vscode-selfhost-test-provider",
"watch": "gulp watch-extension:vscode-selfhost-test-provider"
},
"devDependencies": {
"@types/node": "18.x"
},
"dependencies": {
"@jridgewell/trace-mapping": "^0.3.25",
"ansi-styles": "^5.2.0",
"istanbul-to-vscode": "^2.0.1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/

import { IstanbulCoverageContext } from 'istanbul-to-vscode';

export const coverageContext = new IstanbulCoverageContext();
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/

/**
* Debounces the function call for an interval.
*/
export function debounce(duration: number, fn: () => void): (() => void) & { clear: () => void } {
let timeout: NodeJS.Timeout | void;
const debounced = () => {
if (timeout !== undefined) {
clearTimeout(timeout);
}

timeout = setTimeout(() => {
timeout = undefined;
fn();
}, duration);
};

debounced.clear = () => {
if (timeout) {
clearTimeout(timeout);
timeout = undefined;
}
};

return debounced;
}
Loading

0 comments on commit 7b1ad9f

Please sign in to comment.