Skip to content

Commit

Permalink
Update IDE for vsce publishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinleroy committed Feb 23, 2024
1 parent b93815d commit bb1eec1
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 33 deletions.
2 changes: 1 addition & 1 deletion ide/packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"devDependencies": {
"jsdom": "^22.1.0"
}
}
}
1 change: 1 addition & 0 deletions ide/packages/extension/LICENSE
1 change: 1 addition & 0 deletions ide/packages/extension/README.md
1 change: 1 addition & 0 deletions ide/packages/extension/extension
41 changes: 22 additions & 19 deletions ide/packages/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
{
"name": "@argus/extension",
"displayName": "Argus Extension",
"name": "argus",
"publisher": "gavinleroy",
"displayName": "Argus",
"description": "A trait debugger for Rust",
"version": "0.0.1",
"version": "0.1.0",
"engines": {
"vscode": "^1.22.0"
"vscode": "^1.79.0"
},
"bugs": {
"url": "https://github.com/gavinleroy/argus/issues",
"url": "https://github.com/cognitive-engineering-lab/argus/issues",
"email": "[email protected]"
},
"categories": [
"Programming Languages"
],
"activationEvents": [
"onLanguage:rust"
],
"repository": {
"url": "https://github.com/cognitive-engineering-lab/argus",
"type": "git"
},
"categories": ["Programming Languages"],
"activationEvents": ["onLanguage:rust"],
"contributes": {
"commands": [
{
Expand All @@ -24,13 +25,11 @@
}
]
},
"files": [
"dist"
],
"main": "./dist/extension.js",
"files": ["dist"],
"main": "./dist/argus.js",
"exports": {
".": {
"default": "./dist/extension.js"
"default": "./dist/argus.js"
},
"./*": {
"default": "./dist/*.js"
Expand All @@ -43,9 +42,13 @@
"typedoc": {
"entryPoint": "./src/main.ts"
},
"dependencies": {
"vscode": "*"
"vsce": {
"dependencies": false
},
"scripts": {
"build": "depot build"
},
"dependencies": {},
"devDependencies": {
"@argus/common": "workspace:*",
"@argus/panoptes": "workspace:*",
Expand All @@ -67,4 +70,4 @@
"typescript": "^5.1.3",
"vite": "^4.4.9"
}
}
}
2 changes: 1 addition & 1 deletion ide/packages/extension/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ const checkVersionAndInstall = async (

await execNotify(
cargo,
[...cargoArgs, "install", "argus_cli", "--version", VERSION, "--force"],
[...cargoArgs, "install", "argus-cli", "--version", VERSION, "--force"],
"Installing Argus from source... (this may take a minute)"
);

Expand Down
4 changes: 3 additions & 1 deletion ide/packages/extension/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export default defineConfig(({ mode }) => ({
formats: ["cjs"],
},
rollupOptions: {
external: Object.keys(manifest.dependencies || {}).concat(builtinModules),
external: Object.keys(manifest.dependencies || {})
.concat(builtinModules)
.concat(["vscode"]),
},
},
define: {
Expand Down
4 changes: 2 additions & 2 deletions ide/packages/panoptes/src/Workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const Workspace = ({
const [showHidden, setShowHidden] = useState(false);
const toggleHidden = () => setShowHidden(!showHidden);

const checkbox = (
const _checkbox = (
<div style={{ position: "fixed", top: "0", right: "0" }}>
<VSCodeCheckbox onChange={toggleHidden} checked={showHidden}>
Show hidden information
Expand Down Expand Up @@ -79,7 +79,7 @@ const Workspace = ({

return (
<>
{checkbox}
{/*checkbox*/}
<VSCodePanels>
{tabs}
{fileComponents}
Expand Down
9 changes: 0 additions & 9 deletions ide/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bb1eec1

Please sign in to comment.