Skip to content

Commit

Permalink
revert: integrate console in vscode (#3702)
Browse files Browse the repository at this point in the history
Reverts #3584. This change appears to break the LSP features (like autocomplete, docs, and error underlines) in VS Code.
  • Loading branch information
Chriscbr authored Aug 3, 2023
1 parent fdff5d0 commit 953c2f7
Show file tree
Hide file tree
Showing 67 changed files with 1,014 additions and 1,986 deletions.
37 changes: 1 addition & 36 deletions apps/vscode-wing/.projen/deps.json

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

14 changes: 7 additions & 7 deletions apps/vscode-wing/.projen/tasks.json

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

71 changes: 6 additions & 65 deletions apps/vscode-wing/.projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const project = new TypeScriptAppProject({
jest: false,
github: false,
npmignoreEnabled: false,
entrypoint: "lib/extension.js",
entrypoint: "lib/index.js",
eslintOptions: {
dirs: ["src"],
prettier: true,
Expand All @@ -48,28 +48,15 @@ const project = new TypeScriptAppProject({
tsconfig: {
compilerOptions: {
noUncheckedIndexedAccess: true,
lib: ["es2021"],
},
},

deps: [
`@types/vscode@^${VSCODE_BASE_VERSION}`,
"vscode-languageclient",
"which",
"@trpc/client",
"node-fetch@2",
"ws",
"open",
],
devDeps: [
"@types/node",
"@types/which",
"@vscode/vsce",
"@types/node-fetch",
"@types/ws",
"@wingconsole/app@workspace:^",
"@wingconsole/server@workspace:^",
],
devDeps: ["@types/node", "@types/which", "esbuild", "@vscode/vsce"],
});

project.addGitIgnore("*.vsix");
Expand Down Expand Up @@ -135,26 +122,6 @@ const contributes: VSCodeExtensionContributions = {
dark: "resources/icon-dark.png",
},
},
{
command: "wingConsole.openResource",
title: "Open resource",
},
{
command: "wingConsole.runTest",
title: "Run test",
icon: {
light: "resources/play-light.svg",
dark: "resources/play-dark.svg",
},
},
{
command: "wingConsole.runAllTests",
title: "Run all tests",
icon: {
light: "resources/play-all-light.svg",
dark: "resources/play-all-dark.svg",
},
},
],
menus: {
"editor/title": [
Expand All @@ -169,20 +136,6 @@ const contributes: VSCodeExtensionContributions = {
group: "navigation",
},
],
"view/item/context": [
{
command: "wingConsole.runTest",
when: "view == consoleTestsExplorer",
group: "inline",
},
],
"explorer/context": [
{
command: "wingConsole.runAllTests",
when: "view == consoleTestsExplorer",
group: "inline",
},
],
},
configuration: [
{
Expand All @@ -197,18 +150,6 @@ const contributes: VSCodeExtensionContributions = {
},
},
],
views: {
explorer: [
{
id: "consoleExplorer",
name: "Wing Resources",
},
{
id: "consoleTestsExplorer",
name: "Wing Tests",
},
],
},
};

project.addFields({
Expand All @@ -225,11 +166,11 @@ project.addFields({
contributes,
});

project.addDevDeps("tsup");

const esbuildComment =
"esbuild src/extension.ts --outfile=lib/index.js --external:node-gyp --external:vscode --format=cjs --platform=node --bundle";
project.compileTask.reset();
project.compileTask.exec("tsup");
project.watchTask.reset("tsup --watch");
project.compileTask.exec(esbuildComment);
project.watchTask.reset(`${esbuildComment} --watch`);

project.packageTask.reset(
"pnpm version ${PROJEN_BUMP_VERSION:-0.0.0} --allow-same-version"
Expand Down
64 changes: 5 additions & 59 deletions apps/vscode-wing/package.json

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

10 changes: 0 additions & 10 deletions apps/vscode-wing/resources/play-all-dark.svg

This file was deleted.

10 changes: 0 additions & 10 deletions apps/vscode-wing/resources/play-all-light.svg

This file was deleted.

3 changes: 0 additions & 3 deletions apps/vscode-wing/resources/play-dark.svg

This file was deleted.

3 changes: 0 additions & 3 deletions apps/vscode-wing/resources/play-light.svg

This file was deleted.

This file was deleted.

Loading

0 comments on commit 953c2f7

Please sign in to comment.