Add typescript-language-server
This commit is contained in:
parent
dcb665cde4
commit
60d7eec53f
|
@ -16,6 +16,8 @@
|
||||||
in {
|
in {
|
||||||
devShell = pkgs.mkShell {
|
devShell = pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
|
nodePackages.typescript-language-server
|
||||||
|
|
||||||
(python39.withPackages (pypkgs:
|
(python39.withPackages (pypkgs:
|
||||||
with pypkgs; [
|
with pypkgs; [
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
|
|
|
@ -15,17 +15,17 @@
|
||||||
* @param {string} fileName - The filename to give the file
|
* @param {string} fileName - The filename to give the file
|
||||||
*/
|
*/
|
||||||
function downloadString(text, fileType, fileName) {
|
function downloadString(text, fileType, fileName) {
|
||||||
var blob = new Blob([text], { type: fileType });
|
var blob = new Blob([text], { type: fileType });
|
||||||
|
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.download = fileName;
|
a.download = fileName;
|
||||||
a.href = URL.createObjectURL(blob);
|
a.href = URL.createObjectURL(blob);
|
||||||
a.dataset.downloadurl = [fileType, a.download, a.href].join(':');
|
a.dataset.downloadurl = [fileType, a.download, a.href].join(':');
|
||||||
a.style.display = "none";
|
a.style.display = "none";
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
a.click();
|
a.click();
|
||||||
document.body.removeChild(a);
|
document.body.removeChild(a);
|
||||||
setTimeout(function() { URL.revokeObjectURL(a.href); }, 1500);
|
setTimeout(function() { URL.revokeObjectURL(a.href); }, 1500);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue