Skip to content

Commit 1dc01fb

Browse files
authoredFeb 27, 2025
Copilot chat panel for VS Code (microsoft#2151)
This adds a panel to VS Code that provides Copilot chat functionality. We define a set of client-side tools to be invoked by the model. These tools interface with the user's Azure Quantum workspace, providing a way to submit jobs, get information about the user's jobs and available targets etc. The panel isn't yet enabled by default. It requires a special configuration to be defined in VS Code settings.
1 parent 015fb3f commit 1dc01fb

34 files changed

+3422
-60
lines changed
 

‎npm/qsharp/ux/qsharp-ux.css

-16
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,6 @@ modern-normalize (see https://mattbrictson.com/blog/css-normalize-and-reset for
5050
--bar-selected-outline: #587ddd;
5151
}
5252

53-
/* Generic element resets */
54-
55-
/* TODO: Don't apply to entire page */
56-
*,
57-
*::before,
58-
*::after {
59-
box-sizing: inherit;
60-
margin: 0;
61-
padding: 0;
62-
}
63-
64-
html {
65-
box-sizing: border-box;
66-
font-size: 16px;
67-
}
68-
6953
/* TODO: Make the below playground specific classes */
7054

7155
/* Playground body */

‎package-lock.json

+224-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@types/node": "^20.17",
2727
"@types/vscode": "^1.83.0",
2828
"@types/vscode-webview": "^1.57.3",
29+
"@vscode/codicons": "^0.0.36",
2930
"@vscode/debugadapter": "^1.63.0",
3031
"@vscode/debugprotocol": "^1.63.0",
3132
"@vscode/extension-telemetry": "^0.8.5",
@@ -37,10 +38,12 @@
3738
"events": "^3.3.0",
3839
"github-markdown-css": "^5.3.0",
3940
"globals": "^15.9.0",
41+
"highlight.js": "^11.10.0",
4042
"markdown-it": "^14.1.0",
4143
"mocha": "^10.8.2",
4244
"modern-normalize": "^2.0.0",
4345
"monaco-editor": "^0.44.0",
46+
"openai": "^4.83.0",
4447
"preact": "^10.20.0",
4548
"prettier": "^3.3.3",
4649
"punycode": "^2.3.1",

‎playground/src/main.css

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/* Generic element resets */
2+
3+
*,
4+
*::before,
5+
*::after {
6+
box-sizing: inherit;
7+
margin: 0;
8+
padding: 0;
9+
}
10+
11+
html {
12+
box-sizing: border-box;
13+
font-size: 16px;
14+
}
15+
116
.language-qsharp {
217
line-height: 125%;
318
}

0 commit comments

Comments
 (0)
Please sign in to comment.