Code Monkey home page Code Monkey logo

drash-markup-language's Introduction

drash-markup-language's People

Contributors

ebebbington avatar

Watchers

 avatar

drash-markup-language's Issues

Add CI

  • bumper (updat node deps)
  • master (tests and stuff)

Expand Upon Diagnostics

Figure out any more diagnostics needed, such as maybe errors for when there is just <% %> with no code inside, and implement.

Currently there is diagnostics for tracking if:

  • no space between code and tag
  • invalid char between code and tag (eg should follow <% <code> %>

Automatically Add To User's settings.json

Remove the manual step of a user having to make or edit their settings.json, and do this from within the extension. The part they need to add is the "files.associations" part.

I believe there are two ways to do this:

  1. Update the actual file itself

This is referenced in client/src/extension.ts, in which we manually. add the property, but i can't get it working - the user's settings.json (after opening debug session) is never updated:

// const folderPath = vscode.workspace.workspaceFolders[0].uri.toString().split(":")[1];
// // try make .vscode for user  
// fs.mkdir(path.join(folderPath, '.vscode'), (err) => { 
//     if (err) { 
//       // .vscode already exists
//     } else {
//       vscode.window.showInformationMessage("Created the .vscode directory")
//     }
//     try {
//       if (fs.existsSync(path.join(folderPath, ".vscode/settings.json"))) {
//         // settings do exist
//         const settingsConfig =  workspace.getConfiguration('settings', vscode.workspace.workspaceFolders[0].uri);
//         settingsConfig.update("a", 'hello', vscode.ConfigurationTarget.Workspace) // todo doesnt work
//         vscode.window.showInformationMessage('Updated your settings')
//       } else {
//         // settings don't exist
//         fs.writeFile(path.join(folderPath, ".vscode/settings.json"), JSON.stringify({
//           "files.associations": {
//             "*.dml": "html"
//           }
//         }, null, 2))
//       }
//     } catch(err) {
//       // some error
//     }
// });
  1. Use extension settings

I believe the extension can save settings in the package.json, and this will override any client settings. This is of course the preferred way, as we. only need to add a few lines to a file, but again, i haven't got this to work and unsure on how to

v1.0.0

Prepare and test for releasing/publishing the plugin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.