run webpack in code-dev

This commit is contained in:
Martin Aeschlimann
2020-05-26 18:15:01 +02:00
parent f9bb157b09
commit d1a3e6ede6
7 changed files with 68 additions and 18 deletions

View File

@@ -0,0 +1,15 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { ExtensionContext, window } from 'vscode';
//import { startClient } from '../cssClient';
// this method is called when vs code is activated
export function activate(_context: ExtensionContext) {
window.showInformationMessage('cssClientBrowserMain.ts running');
//startClient(context, {});
}

View File

@@ -0,0 +1,23 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
//@ts-check
'use strict';
const withDefaults = require('../shared.webpack.config');
const path = require('path');
module.exports = withDefaults({
target: 'webworker',
context: path.join(__dirname, 'client'),
entry: {
extension: './src/browser/cssClientBrowserMain.ts',
},
output: {
filename: 'cssClientBrowserMain.js',
path: path.join(__dirname, 'client', 'dist', 'browser')
}
});

View File

@@ -16,6 +16,7 @@
"onCommand:_css.applyCodeAction"
],
"main": "./client/out/node/cssClientMain",
"browser": "./client/dist/browser/cssClientBrowserMain",
"enableProposedApi": true,
"scripts": {
"compile": "gulp compile-extension:css-language-features-client compile-extension:css-language-features-server",

View File

@@ -701,7 +701,7 @@ to-regex-range@^5.0.1:
dependencies:
is-number "^7.0.0"
vscode-css-languageservice@^4.3.0-next.0:
vscode-css-languageservice@4.3.0-next.0:
version "4.3.0-next.0"
resolved "https://registry.yarnpkg.com/vscode-css-languageservice/-/vscode-css-languageservice-4.3.0-next.0.tgz#70ca6e192e1d7fb904867e696851b14401da9573"
integrity sha512-OwYavU+gqocK3YQi484CrGkGMMRRmzJdeNMfgAr/SssKJVJuvkLec7NbAopM42KTE6OPaqU3AFgI5AMERmIJ4A==