atrx / vscode-codscript Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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.
There's quite a few functions missing form /src/defs/defs.ts (eg: iPrintLn).
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)
$
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.