Skip to content

Commit

Permalink
Merge pull request #2074 from finos/default-vscode
Browse files Browse the repository at this point in the history
Add default .vscode project
  • Loading branch information
texodus authored Jan 1, 2023
2 parents f7e9338 + 14cbfe2 commit 33bedd1
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package-lock.json
*.code-workspace
.history
/jsconfig.json
.vscode

# Org-mode
.org-id-locations
Expand Down Expand Up @@ -116,7 +115,6 @@ website/yarn.lock
website/node_modules
website/i18n/*
!website/i18n/en.json
.vscode

.idea
cmake-build-debug
Expand Down Expand Up @@ -195,3 +193,4 @@ tools/perspective-build/lib
docs/.docusaurus
packages/perspective-esbuild-plugin/lib
docs/static/blocks
.vscode/c_cpp_properties.json
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["rust-lang.rust", "ms-vscode.cpptools-extension-pack"]
}
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"cmake.configureOnOpen": true,
"cmake.sourceDirectory": "${workspaceFolder}/cpp/perspective/",
"cmake.buildEnvironment": {
"PSP_ENABLE_WASM": "1"
},
"python.formatting.provider": "black",
"rust-analyzer.linkedProjects": [
"${workspaceFolder}/rust/perspective-viewer/Cargo.toml"
],
"rust-analyzer.checkOnSave.command": "clippy"
}
16 changes: 14 additions & 2 deletions examples/blocks/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,23 @@ const dev_template = (name) => `
</li>
`;

const gists = JSON.parse(fs.readFileSync("gists.json"));
const gists = [
"fractal",
"raycasting",
"evictions",
"streaming",
"covid",
"movies",
"superstore",
"citibike",
"olympics",
"editable",
"csv",
];

const lis = [];
for (const key of fs.readdirSync("src")) {
if (!!gists[key]) {
if (gists.indexOf(key) >= 0) {
lis.push(prod_template(key));
} else {
lis.push(dev_template(key));
Expand Down

0 comments on commit 33bedd1

Please sign in to comment.