GithubHelp home page GithubHelp logo

atrx / vscode-codscript Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 3.0 115 KB

License: MIT License

Shell 0.06% Makefile 0.41% C++ 15.14% C 1.91% Lex 2.12% Batchfile 0.06% JavaScript 2.56% TypeScript 77.52% GSC 0.21%

vscode-codscript's People

Contributors

atrx avatar muhlex avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

vscode-codscript's Issues

Feature request - Display errors

Would it be possible for this extension to display script errors?
Would be so handy to see script errors, bad syntaxes and stuff without having to launch the game.

Cannot compile

I'm looking to contribute, but compilation doesn't succeed

$ tsc -p ./
node_modules/vscode-languageclient/lib/client.d.ts:2:19 - error TS2305: Module '"vscode-languageserver-protocol"' has no exported member 'RPCMessageType'.

2 import { Message, RPCMessageType, ResponseError, RequestType, RequestType0, RequestHandler, RequestHandler0, GenericRequestHandler, NotificationType, NotificationType0, NotificationHandler, NotificationHandler0, GenericNotificationHandler, MessageReader, MessageWriter, Trace, Event, ClientCapabilities, TextDocumentRegistrationOptions, InitializeParams, InitializeResult, InitializeError, ServerCapabilities, DocumentSelector } from 'vscode-languageserver-protocol';
                    ~~~~~~~~~~~~~~

node_modules/vscode-languageclient/lib/client.d.ts:337:33 - error TS2314: Generic type 'RequestType0<R, E>' requires 2 type argument(s).  

337     sendRequest<R, E, RO>(type: RequestType0<R, E, RO>, token?: CancellationToken): Thenable<R>;
                                    ~~~~~~~~~~~~~~~~~~~~~~

node_modules/vscode-languageclient/lib/client.d.ts:338:36 - error TS2314: Generic type 'RequestType<P, R, E>' requires 3 type argument(s).

338     sendRequest<P, R, E, RO>(type: RequestType<P, R, E, RO>, params: P, token?: CancellationToken): Thenable<R>;
                                       ~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/vscode-languageclient/lib/client.d.ts:341:31 - error TS2314: Generic type 'RequestType0<R, E>' requires 2 type argument(s).  

341     onRequest<R, E, RO>(type: RequestType0<R, E, RO>, handler: RequestHandler0<R, E>): void;
                                  ~~~~~~~~~~~~~~~~~~~~~~

node_modules/vscode-languageclient/lib/client.d.ts:342:34 - error TS2314: Generic type 'RequestType<P, R, E>' requires 3 type argument(s).

342     onRequest<P, R, E, RO>(type: RequestType<P, R, E, RO>, handler: RequestHandler<P, R, E>): void;
                                     ~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/vscode-languageclient/lib/client.d.ts:344:32 - error TS2315: Type 'NotificationType0' is not generic.

344     sendNotification<RO>(type: NotificationType0<RO>): void;
                                   ~~~~~~~~~~~~~~~~~~~~~

node_modules/vscode-languageclient/lib/client.d.ts:345:35 - error TS2314: Generic type 'NotificationType<P>' requires 1 type argument(s).

345     sendNotification<P, RO>(type: NotificationType<P, RO>, params?: P): void;
                                      ~~~~~~~~~~~~~~~~~~~~~~~

node_modules/vscode-languageclient/lib/client.d.ts:348:30 - error TS2315: Type 'NotificationType0' is not generic.

348     onNotification<RO>(type: NotificationType0<RO>, handler: NotificationHandler0): void;
                                 ~~~~~~~~~~~~~~~~~~~~~

node_modules/vscode-languageclient/lib/client.d.ts:349:33 - error TS2314: Generic type 'NotificationType<P>' requires 1 type argument(s).

349     onNotification<P, RO>(type: NotificationType<P, RO>, handler: NotificationHandler<P>): void;
                                    ~~~~~~~~~~~~~~~~~~~~~~~

node_modules/vscode-languageclient/lib/workspaceFolders.d.ts:3:48 - error TS2305: Module '"vscode-languageserver-protocol"' has no exported member 'RPCMessageType'.

3 import { ClientCapabilities, InitializeParams, RPCMessageType, ServerCapabilities, WorkspaceFoldersRequest } from 'vscode-languageserver-protocol';
                                                 ~~~~~~~~~~~~~~

src/request.ts:7:41 - error TS2558: Expected 3 type arguments, but got 4.

7     export const type = new RequestType<string, string, any, any>('codsense/content');
                                          ~~~~~~~~~~~~~~~~~~~~~~~~

src/request.ts:11:41 - error TS2558: Expected 3 type arguments, but got 4.

11     export const type = new RequestType<string, string[], any, any>('codsense/vfs_resolvedirectory')
                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~

src/request.ts:15:41 - error TS2558: Expected 3 type arguments, but got 4.

15     export const type = new RequestType<string, string[], any, any>('codsense/workspace_uris')
                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 13 errors.


MINGW64 /j/Git/vscode-codscript (development)
$

Some keywords highlighting incorrectly

Look into why some keywords don't highlight correctly. For example: if will show up as the keyword colour just fine, until you place parentheses.
Most likely has something to do with the regex string for functions.

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.