GithubHelp home page GithubHelp logo

mark-wiemer / vscode-auto-select Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lexikos/vscode-auto-select

0.0 1.0 0.0 49 KB

A simple VS Code extension for automatically switching between v1 and v2 AutoHotkey language extensions.

License: The Unlicense

TypeScript 100.00%

vscode-auto-select's Introduction

AutoHotkey Auto-Select

Automatically switches between the "ahk" and "ahk2" languages, when detected.

Features

Automatically switches the document language in the following cases:

  • When #Requires AutoHotkey v is detected after switching to a file for the first time.
  • When the ahk2 extension emits a diagnostic message containing " v1 ".
    • This is generally for a line like MsgBox, or #NoEnv.

This has been tested with the following extensions:

It works best with the v2 extension set as the default for .ahk files, since it handles v1 files much more gracefully than the v1 extensions handle v2 files.

Requirements

Language extensions with ID ahk and ahk2 must be installed and enabled.

Extension Settings

Nothing is configurable yet.

Known Issues

Detection is very basic.

Some language extensions (i.e. NekoHelp) scan all present .ahk files and emit diagnostics even if a different language extension is set as the default and/or selected for those same files. This causes many spurious warnings and errors in files which are written for a different version of AutoHotkey. This would typically only be an issue when the workspace has scripts for multiple AutoHotkey versions, or if the v1 extension is set as the default for .ahk files.

Release Notes

0.0.0

No releases yet.

vscode-auto-select's People

Contributors

lexikos avatar

Watchers

James Cloos avatar

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.