Skip to content
This repository was archived by the owner on May 10, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 23 additions & 22 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts"
]
"env": {
"browser": false,
"commonjs": true,
"es6": true,
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 2022,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"rules": {
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn"
}
}
10 changes: 6 additions & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": ["dbaeumer.vscode-eslint", "amodio.tsl-problem-matcher"]
}
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint"
]
}
18 changes: 5 additions & 13 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,27 @@
// A launch configuration that compiles the extension and then opens it inside a new window
// A launch configuration that launches the extension inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [

{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
]
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js",
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "tasks: watch-tests"
"--extensionTestsPath=${workspaceFolder}/test/suite/index"
]
}
]
}
13 changes: 0 additions & 13 deletions .vscode/settings.json

This file was deleted.

40 changes: 0 additions & 40 deletions .vscode/tasks.json

This file was deleted.

10 changes: 3 additions & 7 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
.vscode/**
.vscode-test/**
out/**
node_modules/**
src/**
test/**
.gitignore
.yarnrc
webpack.config.js
vsc-extension-quickstart.md
**/tsconfig.json
**/.eslintrc.json
**/jsconfig.json
**/*.map
**/*.ts
**/.eslintrc.json
1 change: 0 additions & 1 deletion .yarnrc

This file was deleted.

33 changes: 33 additions & 0 deletions extension.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below

const { runWordPressServer } = require('./server');
const vscode = require('vscode');

function activate(context) {
let siteUrl;

let disposable = vscode.commands.registerCommand('wordpress-playground.serve', async () => {
if (!siteUrl) {
try {
siteUrl = await runWordPressServer(
vscode.workspace.workspaceFolders[0].uri.fsPath
);
} catch(e) {
console.trace(e);
}
}
// Open siteUrl in the browser
vscode.env.openExternal(vscode.Uri.parse(siteUrl));
} );

context.subscriptions.push( disposable );
}

// This method is called when your extension is deactivated
function deactivate() {}

module.exports = {
activate,
deactivate
}
4 changes: 0 additions & 4 deletions global.d.ts

This file was deleted.

10 changes: 0 additions & 10 deletions ideas.txt

This file was deleted.

1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
heloo hello
12 changes: 12 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "ES2020",
"checkJs": false, /* Typecheck .js files. */
"lib": [
"ES2020"
]
},
"exclude": [
"node_modules"
]
}
Loading