Update monaco editor version and update API.
This commit is contained in:
parent
63070531cd
commit
8bdeb9712e
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"CosmosDBSqlKeywords.js","sourceRoot":"","sources":["../../../src/cosmosdb-sql/grammar/CosmosDBSqlKeywords.ts"],"names":[],"mappings":";;AAAA;IAAA;IA2HA,CAAC;IAzHkB,yCAAqB,GAAY,kBAAkB,CAAC;IAErD,mDAA+B,GAC7C;QACI,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,SAAS;QACpB,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,MAAM;QACd,SAAS,EAAE,SAAS;QACpB,OAAO,EAAE,OAAO;QAChB,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,UAAU;QACtB,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,QAAQ;QAClB,SAAS,EAAE,OAAO;QAClB,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,QAAQ;QAClB,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,MAAM;QAChB,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,OAAO;QAChB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,QAAQ;QAClB,KAA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ACtD,QAAQ,EAAE,mBAAmB,CAAC,qBAAqB,GAAG,QAAQ;KACjE,CAAC;IACN,0BAAC;CAAA,AA3HD,IA2HC;AA3HY,kDAAmB"}
|
|
@ -1,7 +1,7 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
var Q = require("q");
|
var Q = require("q");
|
||||||
var monaco = require("monaco-editor");
|
var monaco_editor_1 = require("monaco-editor");
|
||||||
var ParseReason;
|
var ParseReason;
|
||||||
(function (ParseReason) {
|
(function (ParseReason) {
|
||||||
ParseReason[ParseReason["GetCompletionWords"] = 1] = "GetCompletionWords";
|
ParseReason[ParseReason["GetCompletionWords"] = 1] = "GetCompletionWords";
|
||||||
|
@ -13,7 +13,7 @@ var LanguageServiceFacade = /** @class */ (function () {
|
||||||
LanguageServiceFacade.GetLanguageServiceParseResult = function (str, parseReason) {
|
LanguageServiceFacade.GetLanguageServiceParseResult = function (str, parseReason) {
|
||||||
var timeExceeded = Q.Promise(function (resolve, reject) {
|
var timeExceeded = Q.Promise(function (resolve, reject) {
|
||||||
var wait = setTimeout(function () {
|
var wait = setTimeout(function () {
|
||||||
var words = [];
|
var words = {};
|
||||||
resolve(words);
|
resolve(words);
|
||||||
}, LanguageServiceFacade.timeout);
|
}, LanguageServiceFacade.timeout);
|
||||||
});
|
});
|
||||||
|
@ -30,8 +30,8 @@ var LanguageServiceFacade = /** @class */ (function () {
|
||||||
if (LanguageServiceFacade.workingWorker != null) {
|
if (LanguageServiceFacade.workingWorker != null) {
|
||||||
LanguageServiceFacade.workingWorker.terminate();
|
LanguageServiceFacade.workingWorker.terminate();
|
||||||
}
|
}
|
||||||
var currentUrlWithoutQueryParamsAndHashRoute = "http://" + window.location.host + window.location.pathname;
|
var currentUrlWithoutQueryParamsAndHashRoute = window.location.protocol + "//" + window.location.host + window.location.pathname;
|
||||||
var url = currentUrlWithoutQueryParamsAndHashRoute.replace(/\/[^\/]*$/, '/node_modules/cosmosdb-language-service/dist/worker/dist/LanguageServiceWorker.js');
|
var url = currentUrlWithoutQueryParamsAndHashRoute.replace(/\/[^\/]*$/, '/node_modules/@azure/cosmos-language-service/dist/worker/dist/LanguageServiceWorker.js');
|
||||||
LanguageServiceFacade.workingWorker = new Worker(url);
|
LanguageServiceFacade.workingWorker = new Worker(url);
|
||||||
LanguageServiceFacade.workingWorker.onmessage = function (ev) {
|
LanguageServiceFacade.workingWorker.onmessage = function (ev) {
|
||||||
var processedResults = [];
|
var processedResults = [];
|
||||||
|
@ -41,7 +41,7 @@ var LanguageServiceFacade = /** @class */ (function () {
|
||||||
if (!!label) {
|
if (!!label) {
|
||||||
processedResults.push({
|
processedResults.push({
|
||||||
label: label,
|
label: label,
|
||||||
kind: monaco.languages.CompletionItemKind.Keyword
|
kind: monaco_editor_1.languages.CompletionItemKind.Keyword
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -49,7 +49,7 @@ var LanguageServiceFacade = /** @class */ (function () {
|
||||||
else if (parseReason === ParseReason.GetErrors) {
|
else if (parseReason === ParseReason.GetErrors) {
|
||||||
results.forEach(function (err) {
|
results.forEach(function (err) {
|
||||||
var mark = {
|
var mark = {
|
||||||
severity: monaco.MarkerSeverity.Error,
|
severity: monaco_editor_1.MarkerSeverity.Error,
|
||||||
message: err.Message,
|
message: err.Message,
|
||||||
startLineNumber: err.line,
|
startLineNumber: err.line,
|
||||||
startColumn: err.column,
|
startColumn: err.column,
|
||||||
|
@ -59,7 +59,8 @@ var LanguageServiceFacade = /** @class */ (function () {
|
||||||
processedResults.push(mark);
|
processedResults.push(mark);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
resolve(processedResults);
|
var completionItemList = { suggestions: processedResults };
|
||||||
|
resolve(completionItemList);
|
||||||
};
|
};
|
||||||
var source = {
|
var source = {
|
||||||
code: str,
|
code: str,
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file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,CAAC,CAAC;iBACN;gBAED,IAAI,kBAAkB,GAA8B,EAAC,WAAW,EAAG,gBAAgB,EAAC,CAAC;gBACrF,OAAO,CAAC,kBAAkB,CAAC,CAAC;YAChC,CAAC,CAAA;YAED,IAAM,MAAM,GAAG;gBACX,IAAI,EAAG,GAAG;gBACV,MAAM,EAAG,WAAW;aACvB,CAAC;YACF,qBAAqB,CAAC,aAAa,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;IACP,CAAC,CAAA;IACL,4BAAC;CAAA,AAvED,IAuEC;AAvEY,sDAAqB"}
|
|
@ -27,9 +27,9 @@ var LanguageService = /** @class */ (function () {
|
||||||
this._keywordsDict = null;
|
this._keywordsDict = null;
|
||||||
this.StatesBeforeEof = {};
|
this.StatesBeforeEof = {};
|
||||||
this.SyntaxErrors = [];
|
this.SyntaxErrors = [];
|
||||||
this._eofReached = false;
|
this.EofReached = false;
|
||||||
this.EofReachedInPredict = false;
|
this.EofReachedInPredict = false;
|
||||||
this._exThrownAfterEofReached = false;
|
this.ExThrownAfterEofReached = false;
|
||||||
this.IsInPredict = false;
|
this.IsInPredict = false;
|
||||||
this.GetExpectedTokenStrs = function () {
|
this.GetExpectedTokenStrs = function () {
|
||||||
var intervalSets = new IntervalSet_1.IntervalSet();
|
var intervalSets = new IntervalSet_1.IntervalSet();
|
||||||
|
@ -91,8 +91,8 @@ var LanguageService = /** @class */ (function () {
|
||||||
Message: msg
|
Message: msg
|
||||||
};
|
};
|
||||||
_this.SyntaxErrors.push(error);
|
_this.SyntaxErrors.push(error);
|
||||||
if (_this._eofReached) {
|
if (_this.EofReached) {
|
||||||
_this._exThrownAfterEofReached = true;
|
_this.ExThrownAfterEofReached = true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this._lexerCtr = lexerCtr;
|
this._lexerCtr = lexerCtr;
|
||||||
|
@ -116,9 +116,9 @@ var LanguageService = /** @class */ (function () {
|
||||||
this._parser.root();
|
this._parser.root();
|
||||||
};
|
};
|
||||||
LanguageService.prototype.PrepareParse = function () {
|
LanguageService.prototype.PrepareParse = function () {
|
||||||
this._eofReached = false;
|
this.EofReached = false;
|
||||||
this.EofReachedInPredict = false;
|
this.EofReachedInPredict = false;
|
||||||
this._exThrownAfterEofReached = false;
|
this.ExThrownAfterEofReached = false;
|
||||||
this.StatesBeforeEof = {};
|
this.StatesBeforeEof = {};
|
||||||
this.SyntaxErrors = [];
|
this.SyntaxErrors = [];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"LanguageService.js","sourceRoot":"","sources":["../../src/language-service/LanguageService.ts"],"names":[],"mappings":";AAAA,+EAA+E;AAC/E,6DAA6D;AAC7D,+EAA+E;;AAE/E,+BAAiC;AAEjC,kDAAiD;AACjD,kDAAiD;AAEjD,6DAA4D;AAC5D,qDAAoD;AACpD,+DAA8D;AAE9D,iCAAgC;AAYhC;IASI,sBAAY,KAAc,EAAE,SAAkB,EAAE,cAA4B,EAAE,SAAoB;QAC9F,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IACL,mBAAC;AAAD,CAAC,AAfD,IAeC;AAED;IAoBI,yBAAY,QAAgB,EAAE,SAAkB,EAAE,YAA0C;QAA5F,iBAIC;QArBO,WAAM,GAAW,IAAI,CAAC;QACtB,YAAO,GAAY,IAAI,CAAC;QAExB,kBAAa,GAAgC,IAAI,CAAC;QAEnD,oBAAe,GAAsB,EAAE,CAAC;QAExC,iBAAY,GAAqB,EAAE,CAAC;QAEnC,gBAAW,GAAa,KAAK,CAAC;QAE/B,wBAAmB,GAAa,KAAK,CAAC;QAErC,6BAAwB,GAAa,KAAK,CAAC;QAE5C,gBAAW,GAAa,KAAK,CAAC;QA6B9B,yBAAoB,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AAC;QACjC,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAC;QACrC,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;QAC1B,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IAC3B,CAAC;IAEM,4CAAkB,GAAzB,UAA0B,KAAc;QACpC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACnB,OAAO,IAAI,CAAC,oBAAoB,EAAE,CAAC;IACvC,CAAC;IAEM,yCAAe,GAAtB,UAAuB,KAAc;QACjC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACnB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IACL,sBAAC;AAAD,CAAC,AAxID,IAwIC;AAxIY,0CAAe"}
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"ErrorMarkProvider.js","sourceRoot":"","sources":["../../src/providers/ErrorMarkProvider.ts"],"names":[],"mappings":";;AAAA,yEAAsF;AAItF;IAAA;IAIA,CAAC;IAHiB,8BAAY,GAA1B,UAA2B,KAAa;QACpC,OAAO,6CAAqB,CAAC,6BAA6B,CAAC,KAAK,EAAE,mCAAW,CAAC,SAAS,CAAC,CAAC;IAC7F,CAAC;IACL,wBAAC;AAAD,CAAC,AAJD,IAIC;AAJY,8CAAiB"}
|
{"version":3,"file":"ErrorMarkProvider.js","sourceRoot":"","sources":["../../src/providers/ErrorMarkProvider.ts"],"names":[],"mappings":";;AAEA,yEAAoF;AAEpF;IAAA;IAIA,CAAC;IAHiB,8BAAY,GAA1B,UAA2B,KAAa;QACpC,OAAO,6CAAqB,CAAC,6BAA6B,CAAC,KAAK,EAAE,mCAAW,CAAC,SAAS,CAAC,CAAC;IAC7F,CAAC;IACL,wBAAC;AAAD,CAAC,AAJD,IAIC;AAJY,8CAAiB"}
|
|
@ -5,7 +5,7 @@ var SqlCompletionItemProvider = /** @class */ (function () {
|
||||||
function SqlCompletionItemProvider() {
|
function SqlCompletionItemProvider() {
|
||||||
this.triggerCharacters = [" ", "."];
|
this.triggerCharacters = [" ", "."];
|
||||||
}
|
}
|
||||||
SqlCompletionItemProvider.prototype.provideCompletionItems = function (model, position, token) {
|
SqlCompletionItemProvider.prototype.provideCompletionItems = function (model, position, context, token) {
|
||||||
var range = {
|
var range = {
|
||||||
startLineNumber: 1,
|
startLineNumber: 1,
|
||||||
startColumn: 1,
|
startColumn: 1,
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"SqlCompletionItemProvider.js","sourceRoot":"","sources":["../../src/providers/SqlCompletionItemProvider.ts"],"names":[],"mappings":";;AAAA,yEAAqF;AAGrF;IAAA;QACW,sBAAiB,GAAa,CAAC,GAAG,EAAC,GAAG,CAAC,CAAC;IAcnD,CAAC;IAZG,0DAAsB,GAAtB,UAAuB,KAAmC,EAAE,QAAyB,EAAE,KAA+B;QAClH,IAAM,KAAK,GAAG;YACV,eAAe,EAAE,CAAC;YAClB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,QAAQ,CAAC,UAAU;YAClC,SAAS,EAAE,QAAQ,CAAC,MAAM;SAC7B,CAAA;QAED,IAAI,IAAI,GAAG,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACpH,OAAO,6CAAqB,CAAC,6BAA6B,CAAC,IAAI,EAAE,mCAAW,CAAC,kBAAkB,CAAC,CAAC;IACrG,CAAC;IACL,gCAAC;AAAD,CAAC,AAfD,IAeC;AAfY,8DAAyB"}
|
{"version":3,"file":"SqlCompletionItemProvider.js","sourceRoot":"","sources":["../../src/providers/SqlCompletionItemProvider.ts"],"names":[],"mappings":";;AAAA,yEAAmF;AAGnF;IAAA;QACW,sBAAiB,GAAa,CAAC,GAAG,EAAC,GAAG,CAAC,CAAC;IAcnD,CAAC;IAZG,0DAAsB,GAAtB,UAAuB,KAA4B,EAAE,QAAkB,EAAE,OAAoC,EAAE,KAAwB;QACnI,IAAM,KAAK,GAAG;YACV,eAAe,EAAE,CAAC;YAClB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,QAAQ,CAAC,UAAU;YAClC,SAAS,EAAE,QAAQ,CAAC,MAAM;SAC7B,CAAA;QAED,IAAI,IAAI,GAAG,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACpH,OAAO,6CAAqB,CAAC,6BAA6B,CAAC,IAAI,EAAE,mCAAW,CAAC,kBAAkB,CAAC,CAAC;IACrG,CAAC;IACL,gCAAC;AAAD,CAAC,AAfD,IAeC;AAfY,8DAAyB"}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,8 +1,8 @@
|
||||||
import {editor, Position, CancellationToken} from "monaco-editor";
|
import {editor, Position, CancellationToken, languages} from "monaco-editor";
|
||||||
|
|
||||||
declare class SqlCompletionItemProvider {
|
declare class SqlCompletionItemProvider {
|
||||||
public triggerCharacters: string[];
|
public triggerCharacters: string[];
|
||||||
provideCompletionItems(model: editor.IReadOnlyModel, position: Position, token: CancellationToken);
|
provideCompletionItems(model: editor.ITextModel, position: Position, context: languages.CompletionContext, token: CancellationToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class ErrorMarkProvider {
|
declare class ErrorMarkProvider {
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -5,7 +5,7 @@
|
||||||
"description": "Cosmos DB SQL Language Service for the Monaco editor",
|
"description": "Cosmos DB SQL Language Service for the Monaco editor",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"antlr4": "4.7.1",
|
"antlr4": "4.7.1",
|
||||||
"monaco-editor": "0.14.3",
|
"monaco-editor": "0.15.6",
|
||||||
"q": "1.5.1",
|
"q": "1.5.1",
|
||||||
"react": "16.5.2"
|
"react": "16.5.2"
|
||||||
},
|
},
|
||||||
|
|
|
@ -11,10 +11,10 @@ export class LanguageServiceFacade {
|
||||||
|
|
||||||
private static workingWorker : Worker = null;
|
private static workingWorker : Worker = null;
|
||||||
|
|
||||||
public static GetLanguageServiceParseResult(str : string, parseReason : ParseReason) : Q.Promise<any[]> {
|
public static GetLanguageServiceParseResult(str : string, parseReason : ParseReason) : Q.Promise<any> {
|
||||||
const timeExceeded = Q.Promise<any[]>((resolve : any, reject : any) => {
|
const timeExceeded = Q.Promise<any>((resolve : any, reject : any) => {
|
||||||
const wait = setTimeout(() => {
|
const wait = setTimeout(() => {
|
||||||
const words : any = [];
|
const words : any = {};
|
||||||
resolve(words);
|
resolve(words);
|
||||||
}, LanguageServiceFacade.timeout);
|
}, LanguageServiceFacade.timeout);
|
||||||
});
|
});
|
||||||
|
@ -26,7 +26,7 @@ export class LanguageServiceFacade {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private static GetParseResult = (str : string, parseReason : ParseReason) : Q.Promise<any[]> => {
|
private static GetParseResult = (str : string, parseReason : ParseReason) : Q.Promise<any> => {
|
||||||
return Q.Promise((resolve : any) => {
|
return Q.Promise((resolve : any) => {
|
||||||
|
|
||||||
if (LanguageServiceFacade.workingWorker != null) {
|
if (LanguageServiceFacade.workingWorker != null) {
|
||||||
|
@ -34,7 +34,7 @@ export class LanguageServiceFacade {
|
||||||
}
|
}
|
||||||
|
|
||||||
const currentUrlWithoutQueryParamsAndHashRoute: string = `${window.location.protocol}//${window.location.host}${window.location.pathname}`;
|
const currentUrlWithoutQueryParamsAndHashRoute: string = `${window.location.protocol}//${window.location.host}${window.location.pathname}`;
|
||||||
let url = currentUrlWithoutQueryParamsAndHashRoute.replace(/\/[^\/]*$/, '/node_modules/cosmosdb-language-service/dist/worker/dist/LanguageServiceWorker.js');
|
let url = currentUrlWithoutQueryParamsAndHashRoute.replace(/\/[^\/]*$/, '/node_modules/@azure/cosmos-language-service/dist/worker/dist/LanguageServiceWorker.js');
|
||||||
LanguageServiceFacade.workingWorker = new Worker(url);
|
LanguageServiceFacade.workingWorker = new Worker(url);
|
||||||
|
|
||||||
LanguageServiceFacade.workingWorker.onmessage = (ev : MessageEvent) => {
|
LanguageServiceFacade.workingWorker.onmessage = (ev : MessageEvent) => {
|
||||||
|
@ -66,7 +66,8 @@ export class LanguageServiceFacade {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
resolve(processedResults);
|
let completionItemList : languages.CompletionList = {suggestions : processedResults};
|
||||||
|
resolve(completionItemList);
|
||||||
}
|
}
|
||||||
|
|
||||||
const source = {
|
const source = {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import {LanguageServiceFacade, ParseReason} from "../facade/LanguageServiceFacade";
|
import {LanguageServiceFacade, ParseReason} from "../facade/LanguageServiceFacade";
|
||||||
import {editor, Position, CancellationToken} from "monaco-editor";
|
import {editor, Position, CancellationToken, languages} from "monaco-editor";
|
||||||
|
|
||||||
export class SqlCompletionItemProvider {
|
export class SqlCompletionItemProvider {
|
||||||
public triggerCharacters: string[] = [" ","."];
|
public triggerCharacters: string[] = [" ","."];
|
||||||
|
|
||||||
provideCompletionItems(model: editor.IReadOnlyModel, position: Position, token: CancellationToken) {
|
provideCompletionItems(model: editor.IReadOnlyModel, position: Position, context: languages.CompletionContext, token: CancellationToken) {
|
||||||
const range = {
|
const range = {
|
||||||
startLineNumber: 1,
|
startLineNumber: 1,
|
||||||
startColumn: 1,
|
startColumn: 1,
|
||||||
|
|
File diff suppressed because one or more lines are too long
Reference in New Issue