Update
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "mist-analyzer",
|
"name": "mist-analyzer",
|
||||||
"displayName": "Mist Analyzer",
|
"displayName": "Mist Analyzer",
|
||||||
"description": "The Mist programming language Analyzer LSP",
|
"description": "The Mist programming language Analyzer LSP",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Mist Team"
|
"name": "Mist Team"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -11,20 +11,6 @@ import {
|
|||||||
let client: LanguageClient | undefined;
|
let client: LanguageClient | undefined;
|
||||||
|
|
||||||
export async function activate(context: ExtensionContext) {
|
export async function activate(context: ExtensionContext) {
|
||||||
// If the extension is launched in debug mode then the debug server options are used
|
|
||||||
// Otherwise the run options are used
|
|
||||||
// let serverOptions: ServerOptions = {
|
|
||||||
// run: {
|
|
||||||
// command: "cmd.exe",
|
|
||||||
// args: ["/c", "D:\\projects\\mist\\mist\\analyzer.bat"],
|
|
||||||
// transport: TransportKind.stdio
|
|
||||||
// },
|
|
||||||
// debug: {
|
|
||||||
// command: "cmd.exe",
|
|
||||||
// args: ["/c", "D:\\projects\\mist\\mist\\analyzer.bat"],
|
|
||||||
// transport: TransportKind.stdio
|
|
||||||
// }
|
|
||||||
// };
|
|
||||||
let serverOptions: ServerOptions = {
|
let serverOptions: ServerOptions = {
|
||||||
run: {
|
run: {
|
||||||
command: "mist-analyzer",
|
command: "mist-analyzer",
|
||||||
@@ -40,9 +26,6 @@ export async function activate(context: ExtensionContext) {
|
|||||||
let clientOptions: LanguageClientOptions = {
|
let clientOptions: LanguageClientOptions = {
|
||||||
// Register the server for plain text documents
|
// Register the server for plain text documents
|
||||||
documentSelector: [{ scheme: 'file', language: 'mist' }],
|
documentSelector: [{ scheme: 'file', language: 'mist' }],
|
||||||
synchronize: {
|
|
||||||
fileEvents: workspace.createFileSystemWatcher('**/*.mist')
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Create the language client and start the client.
|
// Create the language client and start the client.
|
||||||
|
|||||||
Reference in New Issue
Block a user